repo_name stringlengths 7 111 | __id__ int64 16.6k 19,705B | blob_id stringlengths 40 40 | directory_id stringlengths 40 40 | path stringlengths 5 151 | content_id stringlengths 40 40 | detected_licenses list | license_type stringclasses 2
values | repo_url stringlengths 26 130 | snapshot_id stringlengths 40 40 | revision_id stringlengths 40 40 | branch_name stringlengths 4 42 | visit_date timestamp[ns] | revision_date timestamp[ns] | committer_date timestamp[ns] | github_id int64 14.6k 687M ⌀ | star_events_count int64 0 209k | fork_events_count int64 0 110k | gha_license_id stringclasses 12
values | gha_fork bool 2
classes | gha_event_created_at timestamp[ns] | gha_created_at timestamp[ns] | gha_updated_at timestamp[ns] | gha_pushed_at timestamp[ns] | gha_size int64 0 10.2M ⌀ | gha_stargazers_count int32 0 178k ⌀ | gha_forks_count int32 0 88.9k ⌀ | gha_open_issues_count int32 0 2.72k ⌀ | gha_language stringlengths 1 16 ⌀ | gha_archived bool 1
class | gha_disabled bool 1
class | content stringlengths 10 2.95M | src_encoding stringclasses 5
values | language stringclasses 1
value | is_vendor bool 2
classes | is_generated bool 2
classes | length_bytes int64 10 2.95M | extension stringclasses 19
values | num_repo_files int64 1 202k | filename stringlengths 4 112 | num_lang_files int64 1 202k | alphanum_fraction float64 0.26 0.89 | alpha_fraction float64 0.2 0.89 | hex_fraction float64 0 0.09 | num_lines int32 1 93.6k | avg_line_length float64 4.57 103 | max_line_length int64 7 931 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
rampsy/Signature-Verification-System | 8,907,762,192,931 | 84584cd7b41aaf768f409cf4b9c6f57aa906e7d4 | b9b44c3689cb9e7e74783adb49ff6b10ba470281 | /final_signature.py | 6166d0e5e7deb1050e9aef61184b631380b8e165 | [] | no_license | https://github.com/rampsy/Signature-Verification-System | b2f1cf5caab0eab563a817f3a3999424a2f80566 | f172b9bb07ab994d65bb9ba4a6786d5bd0c9d6ff | refs/heads/master | 2020-04-08T00:13:42.305689 | 2018-11-28T16:51:10 | 2018-11-28T16:51:10 | 158,842,966 | 2 | 0 | null | null | null | null | null | null | null | null | null | null | null | null | null | """
Created on Fri Nov 23 14:02:40 2018
@author: Rudra
"""
###############################################################################
#Importing packages
import numpy as np
import cv2
from sklearn.externals import joblib #For loading saved model
import feature_extract #Python code containi... | UTF-8 | Python | false | false | 10,768 | py | 6 | final_signature.py | 4 | 0.590918 | 0.559807 | 0 | 258 | 39.736434 | 125 |
thewhiteh4t/nexfil | 8,074,538,518,510 | a31a6a10cd6f156a4fdeafcb97ec59683d0157da | 37b99235c3f2311c2eb08c54e68bbf21805e775e | /nexfil.py | ed1659f6e866c0f0ba74fbdfc36c8ef03a11834d | [
"MIT"
] | permissive | https://github.com/thewhiteh4t/nexfil | 27a3ead2eddc5c9dd32524cda9c950ae42000755 | 4d93c577c38e91e352175e36a4872f64d4aeb9d4 | refs/heads/main | 2023-08-26T18:49:56.750783 | 2023-03-26T17:28:34 | 2023-03-26T17:28:34 | 369,583,524 | 1,851 | 192 | MIT | false | 2023-09-04T16:42:22 | 2021-05-21T15:47:13 | 2023-09-03T23:17:02 | 2023-09-04T16:42:20 | 138 | 1,847 | 192 | 15 | Python | false | false | #!/usr/bin/env python3
SCRIPT_V = '1.0.5'
import argparse
parser = argparse.ArgumentParser(description=f'nexfil - Find social media profiles on the web | v{SCRIPT_V}')
parser.add_argument('-u', help='Specify username', type=str)
parser.add_argument('-f', help='Specify a file containing username list', type=str)
pars... | UTF-8 | Python | false | false | 12,229 | py | 15 | nexfil.py | 12 | 0.571756 | 0.565868 | 0 | 373 | 31.785523 | 145 |
Amitchawarekar/College-Projects | 2,241,972,950,532 | ff7ebbce5ae9388f2dd8c0ead6bd01dbee1c8ec2 | 23a5a5819e5facc4d83c64cbbb25e64df8d9ed0a | /Student Management System-1/employee_login.py | 8e3834145f39900830d4ac3a96f089511c4f65ae | [] | no_license | https://github.com/Amitchawarekar/College-Projects | 2e2a3daf25173a478a0556340bce94aa3cef88ec | 3ad3ad1a6580a02aa0e1165e30a85c66281f3fe8 | refs/heads/main | 2023-06-19T13:07:39.728879 | 2021-07-24T14:42:45 | 2021-07-24T14:42:45 | 384,102,907 | 0 | 0 | null | null | null | null | null | null | null | null | null | null | null | null | null | from tkinter import *
import pymysql
from tkinter import messagebox as tsmg
from tkinter import ttk
import os
from PIL import Image, ImageTk
class emp_login_window:
def __init__(self, root):
self.root = root
self.root.title('Login Window')
self.root.geometry("1350x700+0+0")
... | UTF-8 | Python | false | false | 9,597 | py | 15 | employee_login.py | 11 | 0.5186 | 0.490049 | 0 | 182 | 50.730769 | 177 |
lucacrm/fuzzysets | 7,937,099,611,648 | ba5f16e8e0b0c08d3819eb38f0c29c0091ebce59 | 87e9cc7f8ca0d9c08e2bda81197415aaff1ff124 | /muzzifiers.py | c9d8645351698ea5eee2ecf1555d4e068ea5be8a | [] | no_license | https://github.com/lucacrm/fuzzysets | 3bf27557e4ec7610c85a59f21a18496e84a96c57 | 37f255e009fb52cf5e4b378ae59a1bf7a81c8000 | refs/heads/master | 2021-05-25T10:36:05.149226 | 2018-12-03T15:52:16 | 2018-12-03T15:52:16 | 127,121,638 | 0 | 0 | null | null | null | null | null | null | null | null | null | null | null | null | null | import numpy as np
from support_vector_clustering import *
class BaseMuzzifier(object):
def __init__(self):
pass
def get_mus(self, x, clusters, kernel, c, gen):
raise NotImplementedError(
'the base class does not implement get_mus method')
class BinaryMuzzifier... | UTF-8 | Python | false | false | 2,959 | py | 41 | muzzifiers.py | 6 | 0.471105 | 0.467726 | 0 | 107 | 26.663551 | 99 |
zashib/scrapy-generator-gui | 9,698,036,191,210 | 8dcd3110b942f51d6582c3c6a58b749243b6b9fb | c53d855f8fb42528f0d191e5448f4b64f0e2b353 | /scrapy_generator/settings/headers.py | b4e81af6b4bd7abfb64fa445424915675400d172 | [
"MIT"
] | permissive | https://github.com/zashib/scrapy-generator-gui | 11169eb7c634338695fc979484c6774ba3e190aa | ec1465e558971dd3e6748b444577da54e084c279 | refs/heads/master | 2022-08-31T09:05:44.997930 | 2020-09-10T18:44:29 | 2020-09-10T18:44:29 | 202,672,083 | 7 | 0 | MIT | false | 2022-07-29T22:38:06 | 2019-08-16T06:34:19 | 2022-04-28T20:02:08 | 2022-07-29T22:38:03 | 37 | 6 | 0 | 1 | Python | false | false | #########################
#Default request headers#
#########################
# https://github.com/TeamHG-Memex/scrapy-rotating-proxies
DEFAULT_REQUEST_HEADERS = { 'Host': 'www.crunchbase.com',
'User-Agent': 'Mozilla/5.0 (Windows NT 6.1; WOW64; rv:67.0) Gecko/20100101 Firefox/67.0',
'Accept': '*/*',
'Accept-Language':... | UTF-8 | Python | false | false | 458 | py | 16 | headers.py | 14 | 0.60262 | 0.543668 | 0 | 12 | 37.166667 | 89 |
ashutosh108/video-scripts | 3,092,376,480,437 | 0c89bd8ce44be12fea9be4bf13a3206a4ecd5f56 | c5fc562d3ed78c59e4a4eb074fb64d1f76def39b | /tests/test_meta.py | b68787b39e1dffc1a8518b2bb897ff96a624f16f | [] | no_license | https://github.com/ashutosh108/video-scripts | 7c6861069afd654c4f4fe6501bf05180da19663d | 115213280ce4f0c33acdc14a3a2fbeeaf5314181 | refs/heads/master | 2020-04-11T23:44:22.561731 | 2019-10-29T11:03:50 | 2019-10-29T11:03:50 | 162,177,274 | 0 | 1 | null | null | null | null | null | null | null | null | null | null | null | null | null | from unittest import TestCase
import datetime
import meta
import os
class test_meta(TestCase):
def test_get_skip_time_for_file_nonexisting(self):
self.assertEqual(meta.get_skip_time('qwe'), None)
def test_get_skip_time_for_file_existing(self):
filename = self.get_test_filename('2016-10-07 g... | UTF-8 | Python | false | false | 9,625 | py | 39 | test_meta.py | 21 | 0.703636 | 0.668877 | 0 | 186 | 46.021505 | 116 |
JiayingGaoo/lc | 10,385,230,924,390 | 962ee329f4507744ed5e81899fd9f6a35d847e0b | 7ac37581df5e8b6a5b37ac24803933629ce74b8b | /Implement_strStr.py | 276648c151c4b74c052838490cd79edd808c9739 | [] | no_license | https://github.com/JiayingGaoo/lc | d5b13c1336c03281943350e54465a1af0b854517 | ef788c3876a61cc2b7acb98d997273602dc0d865 | refs/heads/master | 2020-06-27T01:33:24.463877 | 2019-09-10T00:53:01 | 2019-09-10T00:53:01 | 199,811,076 | 0 | 0 | null | null | null | null | null | null | null | null | null | null | null | null | null | class Solution:
def strStr(self, haystack: str, needle: str) -> int:
# do not use find function
if needle == '':
return 0
for i in range(0, len(haystack) - len(needle)):
if haystack[i] == needle[0]:
be_a_part = True
for j in range(1, le... | UTF-8 | Python | false | false | 584 | py | 35 | Implement_strStr.py | 35 | 0.440068 | 0.431507 | 0 | 18 | 31.5 | 56 |
fateiswar/ftpserver | 19,447,611,944,405 | 8ece50ae11523444052293f0bc9aa087d6da66aa | 4058dca866ffc936407793ce24e76b8b773448f5 | /ftpserver.py | 4256abbcd33fee3db3a17a06de7946e1fd5e2845 | [] | no_license | https://github.com/fateiswar/ftpserver | 35f9c970b166ec146fe3b79c5d6d141d380f5eb7 | 346c3e84c3a07085936fbb82c30cafd1df1acb94 | refs/heads/master | 2021-01-10T20:20:25.951204 | 2013-08-20T04:36:22 | 2013-08-20T04:36:22 | null | 0 | 0 | null | null | null | null | null | null | null | null | null | null | null | null | null | from pyftpdlib.authorizers import DummyAuthorizer
from pyftpdlib.handlers import FTPHandler
from pyftpdlib.servers import FTPServer
from pyftpdlib.filesystems import AbstractedFS
from filesystem_view import *
from FtpFs import *
from oss_client.oss_api import *
import os
from optparse import OptionParser
def main(use... | UTF-8 | Python | false | false | 2,216 | py | 4 | ftpserver.py | 3 | 0.587545 | 0.581679 | 0 | 64 | 31.046875 | 77 |
mattmacari/opug-blockchain | 1,571,958,044,533 | 2a48ef4bc3cdb359646137a8901034cee2287db0 | d36bd49aabaca83d21f3156c321a4dd5afdf3166 | /tests/blockchain/test_blockchain.py | 47f84c529dd8ba0fa335f08f2fca02b4a5a7b604 | [
"Unlicense"
] | permissive | https://github.com/mattmacari/opug-blockchain | 9c17fa8b9eba336df11b60271e08a7cc44a1433f | 14c7880d9086861f98760bd3e85a5c5b32767189 | refs/heads/develop | 2021-06-06T20:26:31.791957 | 2018-05-25T00:24:56 | 2018-05-25T00:24:56 | 132,812,353 | 0 | 0 | Unlicense | false | 2021-04-20T17:30:53 | 2018-05-09T21:00:47 | 2018-05-25T00:24:58 | 2021-04-20T17:30:52 | 42 | 0 | 0 | 3 | Jupyter Notebook | false | false | import unittest
from unittest import mock
import hashlib
import json
from datetime import datetime
from freezegun import freeze_time
from blockchain.chain import (Block,
BlockChain,
DEFAULT_HASH,
BlockVerificationError)
@freeze... | UTF-8 | Python | false | false | 2,696 | py | 14 | test_blockchain.py | 11 | 0.510015 | 0.491469 | 0 | 82 | 31.878049 | 76 |
uw-it-aca/canvas-sis-provisioner | 584,115,570,899 | 06489ddca5636ecca696e8eba133c2bee377bd23 | df453a7a2ef0d695e35327fa55f73012b28b8c8e | /sis_provisioner/management/commands/generate_user_report.py | 9d4ac3cb9c1c79cb681fba13dc87f1c9788ac6a1 | [
"Apache-2.0"
] | permissive | https://github.com/uw-it-aca/canvas-sis-provisioner | 4b14f5bc60f297e5c497c5e936ab7eb48e2af5cf | d8265b325f54bcd3ee7f13ac2cfac8743545f8af | refs/heads/main | 2023-09-01T19:57:51.268231 | 2023-08-27T16:54:44 | 2023-08-27T16:54:44 | 43,710,673 | 0 | 0 | Apache-2.0 | false | 2023-09-13T19:06:28 | 2015-10-05T20:07:31 | 2021-11-19T17:03:18 | 2023-09-13T15:52:06 | 3,200 | 0 | 0 | 0 | Python | false | false | # Copyright 2023 UW-IT, University of Washington
# SPDX-License-Identifier: Apache-2.0
from django.core.management.base import BaseCommand, CommandError
from django.conf import settings
from sis_provisioner.dao.user import valid_reg_id, valid_gmail_id
from sis_provisioner.exceptions import UserPolicyException
from da... | UTF-8 | Python | false | false | 4,440 | py | 177 | generate_user_report.py | 152 | 0.501802 | 0.492117 | 0 | 115 | 37.608696 | 77 |
cld-emman05/DaPCom.MS | 13,219,909,363,675 | 9c6511d30414e692eaabb262ab058c4501c137ba | 7ffdabd56eb8ca5c9d894175a0be09afdba24dff | /DaPComMS/PDI/admin.py | 6160aa983eec55f70fe5907db223d3401044dd95 | [
"MIT"
] | permissive | https://github.com/cld-emman05/DaPCom.MS | 8db11eacecf5402497d219b40e23468cb0a2a3f6 | 7c2ec03c2c225abbabde978e3a683ce6d52d061e | refs/heads/master | 2020-06-09T11:38:31.967544 | 2019-07-24T09:25:16 | 2019-07-24T09:25:16 | 193,430,970 | 0 | 1 | null | null | null | null | null | null | null | null | null | null | null | null | null | from django.contrib import admin
from .models import DataSubject
from .models import Office
from .models import UserRole
from .models import Activity
from .models import Attachment
from .models import Data
from .models import Source
from .models import Purpose
from .models import Basis
from .models import Location
fr... | UTF-8 | Python | false | false | 900 | py | 101 | admin.py | 50 | 0.812222 | 0.812222 | 0 | 37 | 23.324324 | 129 |
1047351469/ceshibiji | 7,919,919,711,989 | bee122181fbda5470a11f60f6245724e0ff6f25a | ced4abcdf4a104758bfb0d6e30c96fede46e65db | /就业班/第三阶段 Python基础/Python-day007/代码/day07/13-new魔法方法.py | 9d2a4dccf158a1564dc18d4772f00c2b3faed57e | [] | no_license | https://github.com/1047351469/ceshibiji | 1facf98acbf5b587dc7aee20a8d2d555759118e7 | ba798adb253b01495fabd773043e320aace901a8 | refs/heads/master | 2020-04-26T03:06:12.714070 | 2019-03-01T07:28:01 | 2019-03-01T07:28:01 | 173,255,870 | 0 | 2 | null | null | null | null | null | null | null | null | null | null | null | null | null | class Person(object):
# 魔法方法
# def __new__(cls, *args, **kwargs):
# return object.__new__(cls)
def __new__(cls, *args, **kwargs):
obj = object.__new__(cls)
# print(obj)
print(id(obj))
return obj
def __init__(self, name, age, no):
self.name = name
... | UTF-8 | Python | false | false | 537 | py | 608 | 13-new魔法方法.py | 240 | 0.508571 | 0.495238 | 0 | 26 | 19.230769 | 40 |
umass-forensics/IBLT-optimization | 14,645,838,518,320 | 1d49f39e214ec38d2cb2c7771d7857fd06604aec | 0b96987f6ed0952eba36ce0c7a4a08f5579870bc | /parse_csv.py | aaaf680965dc1416e53f5ad6f97368bf520b88a0 | [
"MIT"
] | permissive | https://github.com/umass-forensics/IBLT-optimization | 5c6f84631f781f86ca15c8b6473a0b4a59fef9d8 | 9f31846d3848a07ba2ec52cae4f830db5a2bbec7 | refs/heads/master | 2020-03-22T22:55:24.803320 | 2019-08-17T15:42:17 | 2019-08-17T15:42:17 | 140,778,672 | 7 | 1 | null | null | null | null | null | null | null | null | null | null | null | null | null | import re
param_file = 'param.export.0.995833.2018-07-16.csv'
template_file = 'iblt_params.h.tpl'
h_file = 'iblt_params.h'
with open(param_file) as fd:
rows = [row.rstrip('\n').split(',') for row in fd.readlines()]
header = rows.pop(0)
print(header)
items = []
for row in rows:
n_items = ... | UTF-8 | Python | false | false | 744 | py | 18 | parse_csv.py | 14 | 0.603495 | 0.581989 | 0 | 25 | 28.76 | 84 |
MichaelGhizzi/Python | 11,948,599,055,883 | c330379402f016903fc3297df4987fb347a0e0d8 | e79198e622758cfbe737f4389e775e7a931e1343 | /isValidTime.py | c0590fa90600e45c6ae5dd85f3a453c086e5dd7e | [] | no_license | https://github.com/MichaelGhizzi/Python | e26d2d20607f6f18034344954e93c6ce9904da1f | 9b6586397b45a57df27514bc6c0271700fe5dc23 | refs/heads/master | 2021-01-10T16:22:52.005125 | 2016-08-28T23:01:11 | 2016-08-28T23:01:11 | 51,849,446 | 0 | 0 | null | null | null | null | null | null | null | null | null | null | null | null | null | #!/usr/bin/python3
#---------------------
# Name: Michael Ghizzi
# Lab Project #5
# CPSC 254 8:00pm T/TH
# isValidTime.py
# This program has the user enter in a specific time via arguments, and the program defines if the time is valid or not.
#---------------------
import sys
import re
def main():
# defines main fun... | UTF-8 | Python | false | false | 1,319 | py | 16 | isValidTime.py | 11 | 0.652767 | 0.622441 | 0 | 35 | 36.685714 | 120 |
deepstone/YOHO_Automated_Test | 5,506,148,098,407 | d1b5a0e8478fcc1a2ea3442ba1e4076633ce2489 | bcc9304a620080bc7327388530d490173d1b50bd | /Public/P_Login_out_h5.py | 40db49b855c0983eb99fb3c980f1d2de18c99cf7 | [] | no_license | https://github.com/deepstone/YOHO_Automated_Test | 9566f620bf580e773dbd3c4ba44e22d602e51496 | 20fcabc846f18ae79f116bba92edf5a02720ae29 | refs/heads/master | 2016-08-06T18:59:04.329948 | 2016-01-20T02:46:40 | 2016-01-20T02:46:40 | 41,981,994 | 1 | 1 | null | null | null | null | null | null | null | null | null | null | null | null | null | # -*- coding: utf-8 -*-
from Page import PageImp
from Automan import PublicImp
from time import sleep
from appium import webdriver
class Login_And_out():
@classmethod
def login(cls, account=None, password=None):
"""
if PageImp.Page_HomeGuide.Page_HomeGuide.GoBoys.IsExist():
Page... | UTF-8 | Python | false | false | 2,297 | py | 48 | P_Login_out_h5.py | 42 | 0.63317 | 0.619386 | 0 | 57 | 38.45614 | 101 |
yuanchangwang/cheshi | 14,139,032,366,986 | dd566261ae11ab89cba19e86d170213858c23a76 | a7173a0b9a2294bf3e4f04bfcb92e6fe81842102 | /L05 内置函数、pickle、json、math、random、time、os、zipfile模块/课件/ceshi0512/dange/2.pickle.py | f4896979d5633978763666d3f7f17bb6e20d9f15 | [] | no_license | https://github.com/yuanchangwang/cheshi | e1c01760675fa97415539b2970d68556b1bebdac | 4e101f6b279057aa82d23c5dac61b0c7d1267c23 | refs/heads/master | 2020-09-13T03:35:08.250776 | 2019-11-19T08:57:11 | 2019-11-19T08:57:11 | 222,645,227 | 1 | 0 | null | null | null | null | null | null | null | null | null | null | null | null | null | # ### 序列化模块 pickle
'''
序列化:把不能够直接存储的数据变成可存储的过程就是序列化
反序列化:把储存的数据拿出来恢复成原来的数据类型就是反序列化
php:
serialize
unserialize
'''
# import 引入模块 引入pickle模块
import pickle
#dumps 把任意对象序列化成一个bytes
dic = {"a":1,"b":2}
res = pickle.dumps(dic)
print(res)
#loads 把任意bytes反序列化成原来数据
res = pickle.loads(res)
print(res,type(res))
# 函数可以序列化么?
def... | UTF-8 | Python | false | false | 1,394 | py | 293 | 2.pickle.py | 186 | 0.694 | 0.677 | 0 | 53 | 17.245283 | 48 |
Jacksonleste/exercicios-python-curso-em-video | 4,526,895,563,548 | e358e6f4c6cdde114558f73f19dd6ceb388e1103 | 0966c0630bb3d9824e11c986a825d3bf32af9ab3 | /ex041.py | b32c7e05e0881566cc1dbfd0e58502eb52a65298 | [] | no_license | https://github.com/Jacksonleste/exercicios-python-curso-em-video | b5995216b5cc61dbbd6fdd2ebc87ec40673eb2ac | aad364e440e315df9cd1a1ca661c7d15d07704de | refs/heads/main | 2023-04-10T13:52:44.254157 | 2021-04-13T03:13:51 | 2021-04-13T03:13:51 | 328,409,343 | 0 | 0 | null | null | null | null | null | null | null | null | null | null | null | null | null | from datetime import datetime
ano = int(input('ano de nascimento: '))
idade: int = datetime.now().year - ano
print('o atleta que tem {} anos'.format(idade))
if idade <= 9:
print('catégoria: MIRIM')
elif idade <= 14:
print('catégoria: INFANTIL')
elif idade <= 19:
print('catégoria: JUNIOR')
elif idade <= 25:... | UTF-8 | Python | false | false | 412 | py | 111 | ex041.py | 110 | 0.661728 | 0.639506 | 0 | 15 | 26 | 47 |
HBinhCT/Q-project | 16,509,854,316,979 | bc325363382c057a11471e3142811ac5d63c8925 | d66818f4b951943553826a5f64413e90120e1fae | /hackerrank/Algorithms/Tara's Beautiful Permutations/solution.py | e304b52eadd17730bfbe3dea4fb35a2d043a6ea2 | [
"MIT"
] | permissive | https://github.com/HBinhCT/Q-project | 0f80cd15c9945c43e2e17072416ddb6e4745e7fa | 19923cbaa3c83c670527899ece5c3ad31bcebe65 | refs/heads/master | 2023-08-30T08:59:16.006567 | 2023-08-29T15:30:21 | 2023-08-29T15:30:21 | 247,630,603 | 8 | 1 | MIT | false | 2020-07-22T01:20:23 | 2020-03-16T06:48:02 | 2020-07-21T10:55:44 | 2020-07-22T01:20:22 | 593 | 0 | 0 | 0 | Python | false | false | #!/bin/python3
import os
#
# Complete the beautifulPermutations function below.
#
def beautifulPermutations(arr):
#
# Write your code here.
#
import math
mod = 1000000007 # 10 ** 9 + 7
length = len(arr)
repetitions = length - len(set(arr))
perm = 0
mat = 1
for i in range(rep... | UTF-8 | Python | false | false | 834 | py | 3,248 | solution.py | 1,828 | 0.540767 | 0.515588 | 0 | 41 | 19.341463 | 88 |
Maruf-S/Competitve-programing | 16,209,206,607,354 | 429e8b5bb70d953d75a2210853feaa5592da674d | b20cc37e0b986a0b458f7f446d5025beee01ba7a | /1346-check-if-n-and-its-double-exist/1346-check-if-n-and-its-double-exist.py | 2cc44352ed4bc21b0047dd10c005a40069679226 | [] | no_license | https://github.com/Maruf-S/Competitve-programing | e5e405912a4c2d9a1fad35d66411964ecbc10d00 | 3134d9c1b7e987c6cec3c614512faab4114fe0bd | refs/heads/master | 2023-02-04T08:08:43.374565 | 2023-02-01T17:29:55 | 2023-02-01T17:29:55 | 225,399,606 | 0 | 1 | null | null | null | null | null | null | null | null | null | null | null | null | null | class Solution:
def checkIfExist(self, arr: List[int]) -> bool:
count = Counter()
for i in arr:
if count[i * 2] > 0 or count[i / 2] > 0:
return True
count[i] += 1
return False | UTF-8 | Python | false | false | 243 | py | 335 | 1346-check-if-n-and-its-double-exist.py | 329 | 0.473251 | 0.452675 | 0 | 8 | 29.5 | 52 |
DmitryVGusev/algo_and_structures_python | 12,558,484,376,667 | ce74a100db31a37e60375e22824aa6e12ee03523 | ea51fbd934a412018fe112342ffe51a9de639cee | /Lesson_1/6.py | dc13cfcb9a1414ce6fff53d47e1d6ebb3a724160 | [] | no_license | https://github.com/DmitryVGusev/algo_and_structures_python | f6e2ebc76802646f663e5085a14bfb5b8af55753 | d94ae172dbf02bb6436d31716bfbb4f86d8f7627 | refs/heads/master | 2020-05-05T08:24:22.225547 | 2019-04-27T17:38:31 | 2019-04-27T17:38:31 | 179,862,838 | 0 | 0 | null | true | 2019-04-27T17:38:32 | 2019-04-06T17:09:20 | 2019-04-24T14:46:11 | 2019-04-27T17:38:32 | 59 | 0 | 0 | 0 | Python | false | false | # 6. Пользователь вводит номер буквы в алфавите. Определить, какая это буква.
def ident_letter_by_position():
"""Определяет букву по положению в алфавите"""
position = int(input("Введите номер буквы: "))
print(f"Буква '{chr(96 + position)}' находится под номером {position}")
if __name__ == '__main__':
... | UTF-8 | Python | false | false | 486 | py | 33 | 6.py | 33 | 0.671429 | 0.662857 | 0 | 11 | 30.818182 | 77 |
tue-robotics/action_server | 7,636,451,865,088 | 94e909029733633272afc9456ef37f7ec74a2c6d | ee33729c1b082dd41ea9621953672081268f9ecb | /action_server/src/action_server/actions/util/entities_from_description.py | 968f6385ee71fe33d9fff99f4b532f4d8134d1a9 | [] | no_license | https://github.com/tue-robotics/action_server | 3276cc65048893c3a87f8b772f2420fd64d8efde | 97c53226e6e2c46dfb3fe3ac0689e3bbfaa31452 | refs/heads/master | 2023-08-23T01:22:42.610153 | 2023-05-06T07:17:13 | 2023-05-06T07:17:13 | 26,604,363 | 0 | 0 | null | false | 2023-09-06T07:32:17 | 2014-11-13T19:38:36 | 2022-01-03T15:14:26 | 2023-09-06T07:32:16 | 623 | 0 | 0 | 23 | Python | false | false | from typing import List, Tuple
from pykdl_ros import VectorStamped
from robot_skills.robot import Robot
def length_sq(x, y):
return x * x + y * y
# ----------------------------------------------------------------------------------------------------
def entities_from_description(entity_descr: dict, robot: Rob... | UTF-8 | Python | false | false | 2,229 | py | 43 | entities_from_description.py | 37 | 0.593988 | 0.59354 | 0 | 64 | 33.828125 | 117 |
sisul1204/xq9 | 16,767,552,329,479 | f8b3eda8bffa65691000afa03bff3b3704bbe526 | 53824319c44db2dd68749f124c636544612a146f | /page_object/driver/AndroidClient.py | 385b891f28a37af0fde1482c536db19f2a08ca4c | [] | no_license | https://github.com/sisul1204/xq9 | 43f79b091925f32ba1a47362c7a1b3e10e94c66f | 186a9b87ba50253e835ce408f56fc4cc511e8ebd | refs/heads/master | 2022-11-15T11:51:28.938353 | 2020-07-13T12:23:27 | 2020-07-13T12:23:27 | 279,068,100 | 0 | 0 | null | null | null | null | null | null | null | null | null | null | null | null | null | # * coding:utf-8 *
# Author:sisul
#创建时间:2020/7/12 7:41
from appium.webdriver import webdriver
from appium.webdriver.webdriver import WebDriver
from appium import webdriver
class AndroidClient:
driver:WebDriver
@classmethod
def installApp(cls) -> WebDriver:
caps = {}
caps['platformName'] = ... | UTF-8 | Python | false | false | 1,221 | py | 7 | AndroidClient.py | 7 | 0.624685 | 0.605374 | 0 | 39 | 29.538462 | 75 |
acgeist/wxgonk | 4,157,528,352,284 | d6e46631c12a8a0a9f5e13dcbfe6b22782259d26 | ff8f28e0eb4f4b2acb3610325e6483530cb92294 | /wxgonk.py | ca9d75f6e5467474cc6847e331ac1d7cc404375f | [
"MIT"
] | permissive | https://github.com/acgeist/wxgonk | b37dcb2b599bca987c4dda4514bc2cde9bfc63b5 | 0c78a0273ada7d861853b8995bf636d5cb524796 | refs/heads/master | 2020-03-22T01:05:05.493095 | 2019-01-05T12:10:28 | 2019-01-05T12:10:28 | 139,282,109 | 0 | 1 | null | null | null | null | null | null | null | null | null | null | null | null | null | #!/usr/bin/env python3
# -*- coding: utf-8 -*-
# wxgonk.py
# TODO:
# Eventually, index.html should be used
# to present the data (i.e. build the display table). For troubleshooting
# purposes, can also turn this into an AFI 11-202v3 tutorial.
# -Include an option for using USAF rules vice FAA rules. Under FAA rule... | UTF-8 | Python | false | false | 19,806 | py | 16 | wxgonk.py | 10 | 0.596688 | 0.59073 | 0 | 428 | 45.275701 | 97 |
leocadavalHome/autoRig3 | 14,688,788,163,608 | 6e077c1ac2ba8260ea3d7080ea4158fdbe10014f | f8772539cad84dedcd194c7d3c1aa4af95a39c2b | /modules/twistExtractor.py | 9f29151388c6f2a75c9f74edddd2b83412140b3d | [] | no_license | https://github.com/leocadavalHome/autoRig3 | 9327a2f0be759d29ec42a07a16eb254261f289a8 | 5d6a7503cbdf937fce5f803201f0f9456e603dcc | refs/heads/master | 2021-07-12T14:44:53.383353 | 2020-06-06T16:56:45 | 2020-06-06T16:56:45 | 146,034,252 | 0 | 1 | null | null | null | null | null | null | null | null | null | null | null | null | null | import pymel.core as pm
import logging
logger = logging.getLogger('autoRig')
class twistExtractor:
"""
Cria uma estrutura para calcular o twist de um joint
Parametros:
twistJntIn: joint a ser calculado
"""
def __init__(self, twistJntIn, conn='parentConstraint', flipAxis=False,... | UTF-8 | Python | false | false | 3,375 | py | 88 | twistExtractor.py | 81 | 0.623111 | 0.617778 | 0 | 88 | 37.363636 | 113 |
anikamath1/DjangoPracticeApps | 14,766,097,566,148 | b7ee098fabb9340cc4aef5d1d17e2a05a2652a30 | 20ee2d726f7941aa8bb5687fabbe4e20569e5465 | /home/models.py | 421a362917c039966309e607d4ad35b7d1e5e7c9 | [] | no_license | https://github.com/anikamath1/DjangoPracticeApps | a4007dd41d314b82ebf7d2ebbd6c1b72e635c3f2 | 0e2700fcf4eb71c6fe87011e441798e421646b0e | refs/heads/master | 2020-09-24T06:43:39.479131 | 2019-12-03T18:44:04 | 2019-12-03T18:44:04 | 225,691,315 | 0 | 0 | null | null | null | null | null | null | null | null | null | null | null | null | null | from django.db import models
from django.contrib.auth.models import User
# Create your models here.
class Post(models.Model):
post=models.CharField(max_length=20)
user=models.ForeignKey(User,on_delete=models.CASCADE)
created=models.DateTimeField(auto_now_add=True)
updated=models.DateTimeField(auto_now=... | UTF-8 | Python | false | false | 1,144 | py | 25 | models.py | 15 | 0.713287 | 0.708916 | 0 | 34 | 32.647059 | 87 |
KaltakhchyanD/socrat | 15,272,903,733,561 | 68825967e42c0a6158001cbd6b91ee8dba0e06ad | a5e6bc604193f4e84706ea54fd4775e08b34e676 | /create_db.py | 23a42c894f7a1f4605945b46c534f9888249f5ee | [] | no_license | https://github.com/KaltakhchyanD/socrat | 8787ed6d8716c88bb213f4969d983f2d2e390810 | a59cebcb4cfae1c331190c2bffdc163641b574a1 | refs/heads/master | 2022-11-11T12:44:37.484761 | 2020-06-07T14:49:00 | 2020-06-07T14:49:00 | 248,279,809 | 0 | 0 | null | null | null | null | null | null | null | null | null | null | null | null | null | import subprocess
from flask_sqlalchemy import SQLAlchemy
from sqlalchemy_utils import database_exists, create_database
#from myapp import create_app, db
import myapp
try:
myapp.db.create_all(app = myapp.create_app())
except :#sqlalchemy.exc.OperationalError:
print("That fucking error again!")
create... | UTF-8 | Python | false | false | 495 | py | 30 | create_db.py | 22 | 0.735354 | 0.735354 | 0 | 17 | 27.941176 | 64 |
papertux/AWS_Scripts | 16,200,616,685,334 | 8488f4587513d00052a9334aa2f9ba5eedadc594 | 299fc2b5aab1e6c4ff6f158a8aa0438f79e3603c | /instance-scripts/terminate_instance.py | 3a6487b2b827be162789351a36ba60d32cb0a5af | [] | no_license | https://github.com/papertux/AWS_Scripts | 329aff0d1546784506474a687b9fafef79982630 | bf6415dea90e9b35b50aee3b1480d4f4c7ebdc90 | refs/heads/master | 2023-02-17T12:13:46.717180 | 2022-06-14T18:53:29 | 2022-06-14T18:53:29 | 168,874,013 | 1 | 1 | null | false | 2023-02-08T02:40:36 | 2019-02-02T20:22:42 | 2021-12-31T01:05:23 | 2023-02-08T02:40:35 | 1,444 | 1 | 1 | 5 | Python | false | false | from collections import defaultdict
import boto3
import time
region = 'us-east-1'
ec2 = boto3.resource('ec2', region_name=region)
ec2_filter = [{'Name': 'instance-state-name', 'Values': ['running']}]
ec2.instances.filter(Filters=ec2_filter).terminate()
instance_status = ec2.instances.filter(Filters=[{
'Name': '... | UTF-8 | Python | false | false | 872 | py | 424 | terminate_instance.py | 209 | 0.626147 | 0.608945 | 0 | 32 | 26.25 | 69 |
rodrigocode4/estudo-python | 11,690,901,007,086 | 7471ce3b52cc619d5e818d235c8dee5632ac79bd | 4407e6eff1a32b3df8632cba1c1143922e3b0139 | /funcoes/unpacking_nomeado.py | fba17e045c05cbe97853e6a1653cd7a41d525cc6 | [] | no_license | https://github.com/rodrigocode4/estudo-python | 3cc69bba6261a5821398dc9010b5ab2748c5a94c | 01128e5e1a1d39d2835df51dfe8bbaf4a270aa51 | refs/heads/master | 2022-12-11T01:32:20.920048 | 2020-05-08T00:03:05 | 2020-05-08T00:03:05 | 209,614,844 | 1 | 0 | null | false | 2022-12-08T06:48:15 | 2019-09-19T17:47:07 | 2020-05-08T00:03:20 | 2022-12-08T06:48:15 | 322 | 0 | 0 | 2 | Python | false | false | # **kwargs
def resultado_f1(primeiro, segundo, terceiro):
print(f' 1º {primeiro}')
print(f' 2º {segundo}')
print(f' 3º {terceiro}')
if __name__ == '__main__':
podium = {
'segundo' : 'Rubinho Barriquelo',
'terceiro' : 'F. Massa',
'primeiro' : 'Airton Senna'
}
resultado_... | UTF-8 | Python | false | false | 335 | py | 56 | unpacking_nomeado.py | 54 | 0.542169 | 0.527108 | 0 | 15 | 21.2 | 46 |
1f3lse/p4yl0ad | 9,878,424,820,863 | c5b878be263fd2f9df49a2c658d361fa202b6aba | 0d9639a34a01056255cce41f7833defa72b70217 | /metasploit.py | b6d9baaf0316b9fd14a2d82a147645872f2de6b5 | [] | no_license | https://github.com/1f3lse/p4yl0ad | 60a4fad513e145430db92bd234130a935b81a06c | ab79132c71f0a8daea3f47d05de9860aeb9ae92f | refs/heads/master | 2023-03-17T04:38:59.906286 | 2020-05-24T13:19:33 | 2020-05-24T13:19:33 | null | 0 | 0 | null | null | null | null | null | null | null | null | null | null | null | null | null | #!/usr/bin/python
#-*- coding:utf8-*-
import os,sys,time
import socket
blanco = '\u001b[30m'
rojo = '\u001b[31m'
verde = '\u001b[32m'
amarillo = '\u001b[33m'
azul = '\u001b[34m'
magenta = '\u001b[35m'
cyan = '\u001b[36m'
blanco = '\u001b[37m'
def entrada1():
os.system("clear")
print (rojo+"Tu direccion ip es... | UTF-8 | Python | false | false | 5,162 | py | 3 | metasploit.py | 1 | 0.478912 | 0.455459 | 0 | 198 | 24.631313 | 167 |
valentinelsra/tuto | 14,620,068,702,171 | 7c3ea08ddc238f04e0b01648bc42a3c80fa79b4d | 1eeddcfc302763a54cf9e12c5d032abb09a2ba79 | /Tutorat1/exercice2.py | 54b496a993d28cb5eef50bf0b3fbe7a9c8843823 | [] | no_license | https://github.com/valentinelsra/tuto | 8c53d9f0a6f1484b9a9ebb8e75dfe25673e6a31c | efea16369c25587cd7dfc189b1efa8116078ead5 | refs/heads/master | 2020-08-07T11:32:11.583842 | 2019-10-07T17:26:32 | 2019-10-07T17:26:32 | 213,433,421 | 0 | 0 | null | null | null | null | null | null | null | null | null | null | null | null | null | #grille=[]
#for i in range (10):
#grille.append('o')
#print(grille)
#print(grille)
#print(grille[0])
grille = ["O"]
for i in range (10):
print grille[0][0]
| UTF-8 | Python | false | false | 172 | py | 3 | exercice2.py | 2 | 0.575581 | 0.534884 | 0 | 13 | 12.230769 | 23 |
fnadalt/mundo | 19,645,180,430,063 | 1111b7e1aef2fec6a1ae2180b811c9a9b55bde4e | d23176a4c1abe01c8125e7481141c76df0f810ac | /02/persona.py | 5b90d1a90a07f52a910a3e6962e2758caf1747d4 | [] | no_license | https://github.com/fnadalt/mundo | 5e56e823fa8aeec570558295d473ebe3d27cebe8 | 83c2fb24d47e67f2b268aeb41aa81df0673f8258 | refs/heads/master | 2020-12-02T12:46:40.587469 | 2018-07-15T19:44:48 | 2018-07-15T19:44:48 | 96,592,910 | 0 | 0 | null | null | null | null | null | null | null | null | null | null | null | null | null | # -*- coding: utf-8 -*-
from direct.showbase.DirectObject import DirectObject
from direct.actor.Actor import Actor
from panda3d.core import *
from proveedores import Topografia
# log
import logging
log = logging.getLogger(__name__)
class Persona(DirectObject):
def __init__(self, contexto, _input):
# r... | UTF-8 | Python | false | false | 1,368 | py | 100 | persona.py | 70 | 0.608918 | 0.605263 | 0 | 52 | 25.307692 | 76 |
yaoey/speedclone | 1,133,871,395,088 | 24ab5246385db4443fdbd4c622a688b55434000b | 0655b0229e0069453c22f59150cb25fa7dec1e83 | /main.py | f253adf8ebeccdde08c927fbd32fb805b1cf997e | [] | no_license | https://github.com/yaoey/speedclone | e10ae45eac619feb2b4b90500227eb97900332be | f12a1a8a36c18e0c5c68518d86ed560f589a6b3b | refs/heads/master | 2022-07-30T13:53:32.339398 | 2020-05-20T15:42:09 | 2020-05-20T15:42:09 | null | 0 | 0 | null | null | null | null | null | null | null | null | null | null | null | null | null | import importlib
from speedclone.args import parse_args
from speedclone.manager import TransferManager
TRANSFERS_BASE_IMPORT_PATH = "speedclone.transfers."
BARS_BASE_IMPORT_PATH = "speedclone.bar."
def handle_rest(s):
a = s.split(":/")
return a.pop(0), ":/".join(a)
def main():
args, rest, config, tran... | UTF-8 | Python | false | false | 1,407 | py | 7 | main.py | 6 | 0.632552 | 0.631841 | 0 | 53 | 25.54717 | 88 |
newxjy/bdd-driveratt | 9,818,295,257,182 | 9a1f7d132db52512925bc48b38b293a37c00efd1 | 73e069fd71eb48f7cab4cc43cb6b909cb0e31a58 | /eye_tracking/analysis/code/CALIBRATION.py | 5eea36949800aab3ccd9d708c99973cc62e9bb9d | [] | no_license | https://github.com/newxjy/bdd-driveratt | 7678a48de6bfbabdc1c291f87125759d0f25620d | 22d3acbee3c12bf5decb30eef495064d2a544584 | refs/heads/master | 2020-12-09T00:41:13.872279 | 2019-11-15T02:59:30 | 2019-11-15T02:59:30 | null | 0 | 0 | null | null | null | null | null | null | null | null | null | null | null | null | null | #!/usr/bin/env python3
# -*- coding: utf-8 -*-
"""
Created on Wed Jun 13 13:11:40 2018
@author: behinger
"""
import functions.add_path
import numpy as np
import pandas as pd
import matplotlib.pyplot as plt
import functions.et_preprocess as preprocess
import functions.pl_surface as pl_surface
from functions import et... | UTF-8 | Python | false | false | 4,912 | py | 20 | CALIBRATION.py | 11 | 0.663884 | 0.653298 | 0 | 119 | 40.277311 | 179 |
longhao54/leetcode | 412,316,894,138 | 1839486d04c43d77c217214050c4567b4f6758b6 | f11600b9a256bf6a2b584d127faddc27a0f0b474 | /normal/1209.py | 1a1d434fe16ac98ba1e2549caf76849307bff7b5 | [] | no_license | https://github.com/longhao54/leetcode | 9c1f0ce4ca505ec33640dd9b334bae906acd2db5 | d156c6a13c89727f80ed6244cae40574395ecf34 | refs/heads/master | 2022-10-24T07:40:47.242861 | 2022-10-20T08:50:52 | 2022-10-20T08:50:52 | 196,952,603 | 0 | 0 | null | null | null | null | null | null | null | null | null | null | null | null | null | # 贴边通过
class Solution:
def removeDuplicates(self, s: str, k: int) -> str:
ans = []
lenth = 0
strs = "abcdefghijklmnopqrstuvwxyz"
for i in strs:
t = i*k
while t in s:
s = s.replace(t,"")
for i in s:
ans.append(i)
... | UTF-8 | Python | false | false | 1,274 | py | 548 | 1209.py | 547 | 0.35873 | 0.346825 | 0 | 48 | 25.0625 | 54 |
HungMingWu/CppCloud | 9,921,374,498,864 | 0ea5d4adc10e1ed718328213ad6d487a25ff0ce0 | 5eeed7d553e82439561685ff03d207345813c1e9 | /python_sdk/cppcloud/tcpcli.py | cb7e13059372f6e4147b7dddbc05c61574b53835 | [
"Apache-2.0"
] | permissive | https://github.com/HungMingWu/CppCloud | 1ab9594c6dd43daf34d6d05d1df7b4555cb7a5de | e3ae799d3b137351311a1901fed516942b2e2bc8 | refs/heads/master | 2023-01-28T17:50:36.277101 | 2023-01-14T08:59:31 | 2023-01-15T07:38:16 | 174,890,286 | 0 | 0 | null | true | 2019-03-10T22:44:55 | 2019-03-10T22:44:54 | 2019-03-01T01:25:07 | 2019-02-26T06:53:55 | 2,247 | 0 | 0 | 0 | null | false | null | #! /usr/bin/pytdon
# -*- coding:utf-8 -*-
'''
与cppcloud_serv通信模块,封tcp报文收发
用法比较简单,可参见文件末的__main__处.
'''
import os
import sys
import time
import socket
import struct
import json
from .const import CMD_WHOAMI_REQ,CMD_WHOAMI_RSP,CMD_GETCLI_REQ
#from cliconfig import config as cfg
g_version = 1
g_headl... | UTF-8 | Python | false | false | 6,683 | py | 193 | tcpcli.py | 154 | 0.496983 | 0.481974 | 0 | 221 | 27.226244 | 86 |
sanchitkalra/Classes | 12,876,311,978,186 | 9f224313ce224d949cdadd09050dffba60d78720 | 9dc081c0568b8098d729e1ad070b6720f34f7a6b | /arrays_and_lists/assignment_intersection.py | 17bf66c7d60e835938e65c7247ac81817aa0f635 | [] | no_license | https://github.com/sanchitkalra/Classes | a8a2b59365ea8d1b8d215fd95258e735ba49a240 | a9a88a117ae034dadc791d0cc1f2c370cb27b144 | refs/heads/master | 2023-05-26T08:19:38.396196 | 2021-06-13T14:48:34 | 2021-06-13T14:48:34 | 296,529,382 | 1 | 0 | null | null | null | null | null | null | null | null | null | null | null | null | null | import sys
# alternative solution:
# def intersections(arr1, n, arr2, m) :
# for i in range(n):
# for j in range(m):
# if arr1[i]==arr2[j]:
# print(arr1[i],end=' ')
# arr2[j]=sys.maxsize
# break
def intersections(arr1, n, arr2, m) :
intersectio... | UTF-8 | Python | false | false | 2,959 | py | 127 | assignment_intersection.py | 126 | 0.395066 | 0.372761 | 0 | 120 | 23.666667 | 74 |
VitorEmanuelDev/INF032D | 11,811,160,084,585 | 2e268cd48ec2c4b9dd4c75e66adb4b3110ec1d9f | 364eb8459e315dd50f91ce449856dc952ea1e81e | /Lista002/02_media_ponderada.py | 73848ea71a5d11f0da1d30787d8d5a992898a619 | [] | no_license | https://github.com/VitorEmanuelDev/INF032D | 98cf1f3038f544dd46ed0c36ff9016a3c49a7e1b | 976bdc9f7e742b1f4e31ebf0d40848b9cbc54844 | refs/heads/main | 2023-02-05T17:15:24.807520 | 2020-12-22T15:21:21 | 2020-12-22T15:21:21 | 316,109,533 | 0 | 0 | null | null | null | null | null | null | null | null | null | null | null | null | null | #2. Entrar com quatro números e imprimir a media ponderada, sabendo-se que os pesos são respectivamente 1,2,3,4.
print("Informe as quatro notas:")
nota_01 = float(input())
nota_02 = float(input())
nota_03 = float(input())
nota_04 = float(input())
media_ponderada = (nota_01 + (nota_02 * 2) + (nota_03 * 3) + (nota_04 *... | UTF-8 | Python | false | false | 376 | py | 61 | 02_media_ponderada.py | 60 | 0.678284 | 0.608579 | 0 | 11 | 33 | 112 |
thuvaragak/RRT | 6,631,429,506,454 | 629817b21528f044fc1c4b04676e9e6fa93dca9e | 1121cfb68c86f4d1f67805d4ddf0c969ce77017e | /obstacles.py | e433b366681201fd2494eecf483d49ab3ba31c32 | [] | no_license | https://github.com/thuvaragak/RRT | 3f7911f456b43db1dd1cb6b739643287050a2353 | 67f8078a090bc860557d6581c00883b976d967a3 | refs/heads/main | 2023-08-23T09:48:48.206687 | 2021-10-19T09:36:08 | 2021-10-19T09:36:08 | 418,855,962 | 0 | 0 | null | null | null | null | null | null | null | null | null | null | null | null | null | import numpy as np
import cv2
# Create a black image
img = np.zeros((500,500,3), np.uint8)
img.fill(255)
#Diagonal Blue line
#img = cv2.line(img,(0,0),(511,511),(255,0,0),5)
#Cicle
img = cv2.circle(img,(150,200),10,(0,0,255),-1)
#Ellipse
#cv2.ellipse(image, centerpoint, axes, angle, startAngle, endAngle, color,th... | UTF-8 | Python | false | false | 874 | py | 4 | obstacles.py | 3 | 0.629291 | 0.427918 | 0 | 39 | 21.435897 | 86 |
micro1964/streamnow | 8,392,366,126,759 | 93ee22f2e96e7551f7840e3d3d8bd759fbb956fd | bd226f79c8ca112fefbbd0e9525bdc7f9167cf71 | /usr/share/apport/testsuite/test_python_crashes.py | 51b6f291aaa3026843d05a5aae96632db3de801c | [] | no_license | https://github.com/micro1964/streamnow | e53f1a1b33ad0386978e6c17c878140e9e945d93 | ba2a4f1a5293d91b0279339c3722aecbdc08ca4c | refs/heads/master | 2022-11-30T17:34:48.175628 | 2019-03-30T22:05:48 | 2019-03-30T22:05:48 | 178,615,166 | 0 | 2 | null | false | 2022-11-25T07:46:15 | 2019-03-30T21:52:51 | 2019-03-30T22:13:09 | 2019-03-30T22:11:10 | 522,107 | 0 | 1 | 1 | C | false | false | # Test apport_python_hook.py
#
# Copyright (c) 2006 - 2011 Canonical Ltd.
# Authors: Robert Collins <robert@ubuntu.com>
# Martin Pitt <martin.pitt@ubuntu.com>
#
# This program is free software; you can redistribute it and/or modify it
# under the terms of the GNU General Public License as published by the
# Fr... | UTF-8 | Python | false | false | 19,631 | py | 267 | test_python_crashes.py | 86 | 0.605012 | 0.599307 | 0.000153 | 492 | 38.900407 | 124 |
rezzycavalheiro/SpaceApps-CodeRed | 9,036,611,193,136 | 5d5ec2b1bc8d7d636ec7d687e76cf63d14a8fd9e | 558b3e8e8cbcb39c8b5f1096381487410257de54 | /teste.py | 0858c2d95bb0407676d8513527c71c7cc84c93c7 | [] | no_license | https://github.com/rezzycavalheiro/SpaceApps-CodeRed | 70d53d0e6571e10c8d114486c43546a6054d56d5 | 958242be155b2dbb446dd96ec97e161af903b2ec | refs/heads/master | 2022-02-22T08:02:52.418915 | 2019-10-22T23:40:58 | 2019-10-22T23:40:58 | 216,293,011 | 0 | 0 | null | null | null | null | null | null | null | null | null | null | null | null | null | import requests
month = '01'
name_month = 'janeiro'
for day in range(1,31):
if (day >= 1 and day < 10):
day = '0' + str(day)
url = 'http://viirsfire.geog.umd.edu/web_data/GLOBAL/NOAA/2018' + month + str(day) + '_NOAA.txt'
r = requests.get(url, allow_redirects=True)
open(name_month + str(day) +... | UTF-8 | Python | false | false | 351 | py | 9 | teste.py | 4 | 0.603989 | 0.566952 | 0 | 11 | 31 | 100 |
yuzhouxianzhi/Dynamic-Congestion-Prediction | 8,177,617,742,052 | 6f53d43cf59ff350db26ece9c34c589823543b88 | 1e766f9f33f0f450638c13e4fb580b120dbb4912 | /src/main/python/model_test/run_scenarios.py | fb92f47b08a43137bc671f461afa547f55a2f74b | [] | no_license | https://github.com/yuzhouxianzhi/Dynamic-Congestion-Prediction | 9eb9ee5208c11b5b3f948d42ba86d8361c967ad4 | 65765c19cabc6eb5800abbae6d00abb74cdeb49d | refs/heads/master | 2022-03-29T15:10:07.227083 | 2020-02-01T16:37:39 | 2020-02-01T19:39:42 | null | 0 | 0 | null | null | null | null | null | null | null | null | null | null | null | null | null | from generate_demand import generate_initial_demand
from generate_io_curves import get_links_output_curve, get_congestion_links_input_curve_after_merging,\
get_congestion_links_input_curve_from_demand, get_freeway_links_input_curve_after_diverging, \
get_congestion_links_input_curve_after_toll, get_total_toll_c... | UTF-8 | Python | false | false | 18,951 | py | 31 | run_scenarios.py | 21 | 0.595219 | 0.578175 | 0 | 221 | 84.751131 | 147 |
bely66/data_analysis | 14,766,097,572,093 | 42d4937296f14935f5306bf4d1f5ee1e6cfbcbbc | 276e4b49342a4232cf26870a2fc52a83f3f97dae | /panfun.py | a295aa45a97a75b949d0a0e637fa7323037a9f5e | [] | no_license | https://github.com/bely66/data_analysis | ce51b4c2dae20f874620ce5cf379a23443ecc004 | f6943d42c6177febac8775b868895fc5630404e5 | refs/heads/master | 2020-05-05T00:18:43.035021 | 2019-04-08T13:09:27 | 2019-04-08T13:09:27 | 179,570,576 | 0 | 0 | null | null | null | null | null | null | null | null | null | null | null | null | null | # -*- coding: utf-8 -*-
"""
Created on Thu Apr 4 22:44:25 2019
@author: USER
"""
import pandas as pd
import numpy as np
import matplotlib.pyplot as plt
def return_series(d):
series = pd.Series(d)
return series
def return_series_rng (d ,x , y):
series = pd.Series(d)
series = series [series<y]
... | UTF-8 | Python | false | false | 434 | py | 4 | panfun.py | 3 | 0.631336 | 0.603687 | 0 | 23 | 17.869565 | 35 |
shirblc/FSND-fyyur | 12,592,844,147,146 | 1d084cdac53d9cdecf92b7a26c29e64a57cb658b | 37f58e2076dbc053637e66e47d88ed15bc56d170 | /app.py | da24999f612da141205cb57928ec2005582ee920 | [] | no_license | https://github.com/shirblc/FSND-fyyur | 1b3a33aaba04316fa1903fffde30951afcbf7d80 | d49bf00b0c68e2e75f8f14424b0a17316648b23a | refs/heads/master | 2021-04-02T04:11:50.022826 | 2020-03-21T16:36:48 | 2020-03-21T16:36:48 | 248,242,501 | 0 | 0 | null | null | null | null | null | null | null | null | null | null | null | null | null | #----------------------------------------------------------------------------#
# Imports
#----------------------------------------------------------------------------#
import json
import dateutil.parser
import babel
from flask import Flask, render_template, request, Response, flash, redirect, url_for
from flask_moment... | UTF-8 | Python | false | false | 20,906 | py | 2 | app.py | 2 | 0.642591 | 0.638477 | 0 | 521 | 39.126679 | 177 |
kcarnold/suggestion | 4,681,514,376,088 | 92e3620f92f3ca3fdbe5014bdabca2b599b18bad | 99ef323acf05ae8c76f8ade8d2fe03d455c00302 | /annotation_ui/make_persuasive_data.py | 2310fd0c820366516db2fffa8b5dad3bd5474ba9 | [
"LicenseRef-scancode-warranty-disclaimer",
"MIT"
] | permissive | https://github.com/kcarnold/suggestion | b166fd3d986eace138a9d6c877ee4f71d94a796a | 27650cbf724b77361f8f4e609774ecb9bcf9e3c9 | refs/heads/master | 2021-01-13T15:24:43.195938 | 2018-12-21T23:02:31 | 2018-12-21T23:02:31 | 76,397,078 | 1 | 0 | null | false | 2017-02-21T16:19:02 | 2016-12-13T20:48:02 | 2017-02-06T00:54:41 | 2017-02-21T16:19:02 | 133 | 1 | 0 | 0 | Python | null | null | #!/usr/bin/env python
import json
import pandas as pd
import toolz
todos = json.load(open('../gruntwork/persuade_0_persuasive_anno_todo.json'))
BATCH_SIZE=6
print("Total:", len(todos))
batches = list(toolz.partition_all(BATCH_SIZE, todos))
print(pd.Series([len(batch) for batch in batches]).value_counts())
if len(batche... | UTF-8 | Python | false | false | 1,117 | py | 139 | make_persuasive_data.py | 112 | 0.703671 | 0.691137 | 0 | 26 | 41.961538 | 108 |
rezabanitaba/ACIT2515_ASSIGNMENT4 | 10,290,741,651,625 | 187976775fd00001dfd8f1f9da9d862c7f9ab01d | 756a498df559c170e0cfcc34c7f5938441a3ae04 | /drink.py | be0400719156e98b05f164a692f077be5d13cddf | [] | no_license | https://github.com/rezabanitaba/ACIT2515_ASSIGNMENT4 | 23d03ba4e9f224c7bad008ddd8f609f8c6a1a977 | a4f57d3f54622354f6118d54ccbf9c881b3245ea | refs/heads/master | 2022-12-22T02:15:27.253339 | 2019-12-06T19:54:08 | 2019-12-06T19:54:08 | null | 0 | 0 | null | null | null | null | null | null | null | null | null | null | null | null | null | from abstract_menu_item import AbstractMenuItem
from sqlalchemy import Column, String, Integer, Float, DateTime
class Drink(AbstractMenuItem):
""" creates drink """
MENU_ITEM_TYPE = "drink"
manufacturer = Column(String(100))
size = Column(String(20))
is_fizzy = Column(Integer)
is_h... | UTF-8 | Python | false | false | 2,815 | py | 12 | drink.py | 12 | 0.609591 | 0.607815 | 0 | 57 | 47.280702 | 274 |
MarshallPramukh/TableauWorkshop | 13,357,348,327,154 | 89162dcbcb26216d40cbb74feda967722c2cfd70 | 40e49e9be32a1a8424440d038dc3270b06739885 | /GUI/SixthProj.py | 79282c82d61d361fcf3035975d6777a298e40fef | [] | no_license | https://github.com/MarshallPramukh/TableauWorkshop | 70244bef4b9aaefb925917af67f00779d68e5653 | bf96db755e175c317ea4e091b8e6e91c74b8d99f | refs/heads/master | 2020-04-29T07:23:03.806643 | 2019-03-16T09:36:34 | 2019-03-16T09:36:34 | 175,951,073 | 0 | 0 | null | null | null | null | null | null | null | null | null | null | null | null | null | from tkinter import *
class myBut:
def __init__(self,master):
frame=Frame(master)
frame.pack()
self.printBut = Button(frame,text="Print",command=self.printMsg)
self.printBut.pack(side=LEFT)
self.quitBut = Button(frame,text="Quit",command=frame.quit)
self.quitBut.pa... | UTF-8 | Python | false | false | 437 | py | 12 | SixthProj.py | 11 | 0.629291 | 0.629291 | 0 | 18 | 23.277778 | 72 |
mpatlasov/antlir | 7,413,113,565,428 | 77df95b36cc0f1cdb3f20fd29dd5ec01ff3d1f16 | 166a84dd531cfcee1b0cb9321605661316faf435 | /antlir/bzl/tests/shapes/test_shape_bzl.py | 201d1203baff7d3a136ec7964e0fd8f2d85e8b50 | [
"MIT"
] | permissive | https://github.com/mpatlasov/antlir | 5e1848a32ddc168f43b8aa0575e50c8a9ba36fc0 | 3bdd4731c60e5ee7397f1d2eb3822171c03540a6 | refs/heads/main | 2023-01-03T05:17:09.442210 | 2020-10-28T00:28:51 | 2020-10-28T00:30:28 | 307,865,454 | 0 | 0 | null | true | 2020-10-28T00:43:33 | 2020-10-28T00:43:33 | 2020-10-28T00:30:40 | 2020-10-28T00:30:38 | 15,394 | 0 | 0 | 0 | null | false | false | #!/usr/bin/env python3
# Copyright (c) Facebook, Inc. and its affiliates.
#
# This source code is licensed under the MIT license found in the
# LICENSE file in the root directory of this source tree.
import unittest
from .shape_bzl import Fail, _check_type, _codegen_shape, shape, struct
class TestShapeBzl(unittest.... | UTF-8 | Python | false | false | 6,070 | py | 32 | test_shape_bzl.py | 12 | 0.563097 | 0.546293 | 0 | 165 | 35.787879 | 120 |
weirdname404/async-console-game | 17,463,337,028,076 | cf0f3d5371bbf9d9f8ee23a50e0cebf089c50f5a | 5a778ea59c529b22719339c826585281e02bfa8e | /utils/curses_tools.py | 7b6fe7900a3f3fb66126910cf2545ce136178b80 | [] | no_license | https://github.com/weirdname404/async-console-game | f1bf981b77b834fdd3ea27d263e946e20ea1efb7 | 4e0325040cabf6681823b6b93a24757d375b3172 | refs/heads/master | 2023-01-15T20:38:31.967069 | 2020-11-17T20:23:28 | 2020-11-17T20:23:28 | 266,588,302 | 1 | 0 | null | false | 2020-11-17T20:23:30 | 2020-05-24T17:12:50 | 2020-10-21T16:42:22 | 2020-11-17T20:23:29 | 52 | 1 | 0 | 0 | Python | false | false | import random
import config
from core.types import Coordinate, Size
from typing import Iterator
SPACE_KEY_CODE = 32
LEFT_KEY_CODE = 260
RIGHT_KEY_CODE = 261
UP_KEY_CODE = 259
DOWN_KEY_CODE = 258
def read_controls(canvas):
"""Read keys pressed and returns tuple witl controls state."""
rows_direction = column... | UTF-8 | Python | false | false | 3,136 | py | 18 | curses_tools.py | 17 | 0.563538 | 0.551405 | 0 | 120 | 25.1 | 79 |
lfparis/forge-python-wrapper | 18,811,956,791,151 | 17280df702ee62a9d502be7227fa2b400f9b413b | 6111b5292672efae5b7c8940f8c4721fc74028ff | /forge/extra/decorators.py | fbd2a1bcf6ae9a6c8c548bc6a5b0bfc96c06e360 | [
"MIT"
] | permissive | https://github.com/lfparis/forge-python-wrapper | 22d43ce37e7a1fc0a2141a9d71e1d119cab4d680 | 63ee20a1c1b23676201a23f4fca31c1b30e183b1 | refs/heads/master | 2023-09-04T23:04:33.654977 | 2021-11-23T15:22:36 | 2021-11-23T15:22:36 | 240,263,540 | 14 | 7 | MIT | false | 2021-11-23T15:22:37 | 2020-02-13T13:12:30 | 2021-11-23T15:18:22 | 2021-11-23T15:22:36 | 53,044 | 13 | 4 | 2 | Python | false | false | # -*- coding: utf-8 -*-
"""Validation Decorators"""
from __future__ import absolute_import
from datetime import datetime
from functools import wraps
def _async_validate_token(func):
"""DM & HQ"""
@wraps(func)
async def inner(self, *args, **kwargs):
now = datetime.now()
timedelta = int(... | UTF-8 | Python | false | false | 634 | py | 31 | decorators.py | 25 | 0.615142 | 0.611987 | 0 | 24 | 25.416667 | 76 |
wdwoodee/pyTest | 15,642,270,936,849 | f61df487edd3f04854bd4701842274c5b26907eb | ca8d6b001fb3a2550bba689a97e96194df644abb | /test/make file.py | 1fc6f911861cf6d02c6c5aa102353ce49bf9fc21 | [] | no_license | https://github.com/wdwoodee/pyTest | 3681d60154daeaa96d38a233052b1cda3ec6829e | a7229a9ca97d6346e387ddae5a5b03477df1c0ef | refs/heads/master | 2016-04-13T01:46:57.604493 | 2016-03-03T02:46:17 | 2016-03-03T02:46:17 | 45,385,382 | 0 | 0 | null | null | null | null | null | null | null | null | null | null | null | null | null | import os
path='c:/'
for i in range(1,11):
path=os.path.join(path,str(i))
os.mkdir(path)
#ceate file in file
| UTF-8 | Python | false | false | 119 | py | 192 | make file.py | 124 | 0.630252 | 0.605042 | 0 | 8 | 13.875 | 34 |
OFRIN/PyTorch_Tutorials | 14,139,032,349,566 | 9d6b394d603456f4e31377c9fa9efc3f964b2045 | 5f5abb30d86254a81f55c7837c3ea3fef84a21c9 | /2. DeepLearning Tutorials/2.1. Dataset/2.1.2. DataAugmentation/main.py | 7df9cae664f4aaac84137f08c34dd62beae910e5 | [] | no_license | https://github.com/OFRIN/PyTorch_Tutorials | 01f38342801a9617c3a544c68bcca36b2cd0dffd | e050a416ce408203c546042f032ce554baa72ce2 | refs/heads/master | 2023-01-09T01:27:44.141900 | 2020-11-19T09:34:44 | 2020-11-19T09:34:44 | 296,813,833 | 0 | 0 | null | null | null | null | null | null | null | null | null | null | null | null | null | import os
import cv2
import glob
# from opencv_transforms import transforms
import numpy as np
from PIL import Image
import torchvision
from torchvision import datasets, models, transforms
random_crop_fn = transforms.Compose([
Image.fromarray,
transforms.RandomResizedCrop(224),
np.asarray
])
random_hfl... | UTF-8 | Python | false | false | 850 | py | 61 | main.py | 50 | 0.662353 | 0.650588 | 0 | 38 | 21.368421 | 62 |
aag147/rcnn | 8,607,114,483,659 | 383ec2d1f17cf69e91c76b67265a0f9829cebcf8 | eb1e491378eb5bb68461a38b38a999e4c4495dbe | /detection/scripts/save_hoi_input_recall.py | 239e96188b5b8d4aeb2988fa5fe67d1cda5582da | [] | no_license | https://github.com/aag147/rcnn | 78b5664124d8821574d825b1f27cddc1f40532cb | 8f98b33b11e9c5dd8e1bc1923510c15a8de52354 | refs/heads/master | 2020-03-08T16:25:39.313800 | 2018-08-05T18:34:41 | 2018-08-05T18:34:41 | 128,239,222 | 0 | 0 | null | null | null | null | null | null | null | null | null | null | null | null | null | # -*- coding: utf-8 -*-
"""
Created on Thu May 17 13:48:23 2018
@author: aag14
"""
import sys
sys.path.append('../../../')
sys.path.append('../../')
sys.path.append('../../shared/')
sys.path.append('../models/')
sys.path.append('../filters/')
sys.path.append('../data/')
import extract_data
from rpn_generators import... | UTF-8 | Python | false | false | 4,782 | py | 74 | save_hoi_input_recall.py | 73 | 0.5688 | 0.548097 | 0 | 136 | 34.169118 | 144 |
CoutinhoThiago/Linguagens-Forais-e-Automatos | 4,355,096,841,253 | d87b80c9bd40408492cfb529ea5f19ddf22b0695 | 303403b9b6511a907bf43af0c9eee3bf228a45e6 | /Sistemas Multimida/Atividades/Hello World! (Jude 2.0)/Hello World! (Jude 2.0).py | 388710b4c7547b9ff9546520728c26d0fe679519 | [] | no_license | https://github.com/CoutinhoThiago/Linguagens-Forais-e-Automatos | c0a05603eb188e4566f3a9791ad579a2b66e30e3 | b24a475edcbfcb4af31f53d763c82434ae0bc824 | refs/heads/main | 2023-08-15T01:51:24.302363 | 2023-07-11T21:33:30 | 2023-07-11T21:33:30 | 415,649,185 | 0 | 0 | null | null | null | null | null | null | null | null | null | null | null | null | null | print("Hello World!")
print("Hello Jude 2.0!") | UTF-8 | Python | false | false | 46 | py | 241 | Hello World! (Jude 2.0).py | 189 | 0.673913 | 0.630435 | 0 | 2 | 22.5 | 24 |
ruthraprabhu89/Hiku-tester | 5,162,550,717,450 | 6e9ae94839a7efc0d8ccbeef85970a63ab84916e | c379fedab65fde80d1032c13145248b10ce29040 | /hiker.py | 8c8f244551d45fb1e516079ced2c1df8c0971d3b | [] | no_license | https://github.com/ruthraprabhu89/Hiku-tester | 3b6030632f75a21aa28d9072f30bd369470a52e2 | 87cda8141f14be79a2abcfe9f0de491348d98463 | refs/heads/master | 2022-10-07T00:07:08.300839 | 2020-05-31T23:24:57 | 2020-05-31T23:24:57 | 268,381,602 | 0 | 0 | null | null | null | null | null | null | null | null | null | null | null | null | null | import re
class Hiker:
def haiku(self,line):
if(len(line)>202):
raise ValueError('Haiku cannot be longer than 200 characters.invalid input line')
if(any(x.isupper()for x in line)):
raise ValueError('Haiku can only contain lower case letters. input contains Upper Case letters: invalid input line')
if... | UTF-8 | Python | false | false | 1,581 | py | 5 | hiker.py | 4 | 0.590765 | 0.575585 | 0 | 62 | 24.516129 | 119 |
cagdasaktay/PyQt5-Tutorials | 5,480,378,311,584 | 52396cc0d451bd19a6955e2fee0670e299ac9c42 | e287aa1088a611c19884ea92a54f4f260a5442db | /QCheckBox.py | 49bde6cd5477a81f5f3623d4d5b6babb2e6b2dec | [] | no_license | https://github.com/cagdasaktay/PyQt5-Tutorials | a130fec3711a8c9d41ac1c776cf9a74fafb13daf | baf61f98fc99d1e3fa77599010fa27040e1994d5 | refs/heads/master | 2023-07-17T08:15:26.049739 | 2021-09-08T13:01:07 | 2021-09-08T13:01:07 | 404,348,838 | 0 | 0 | null | null | null | null | null | null | null | null | null | null | null | null | null | #!/usr/bin/env python
import sys
from PyQt5 import QtWidgets
def arayuz():
object = QtWidgets.QApplication(sys.argv)
window = QtWidgets.QWidget()
window.setWindowTitle("Arayüz") # Arayüzü isimlendirme.
window.setGeometry(300,300,600,480) # Arayüzün konumu ve çözünürlüğünü belirleme.
kontrol1 ... | UTF-8 | Python | false | false | 843 | py | 11 | QCheckBox.py | 11 | 0.695122 | 0.645122 | 0 | 35 | 22.428571 | 85 |
alisiahkoohi/survae_flows | 3,521,873,204,127 | 6b9d9afa749ca7f55ad7eafd6d345f695afe13dc | c8a9d66efb29a9a5d5a42b74c252eeb91f20e2f8 | /survae/tests/transforms/bijections/conditional/elementwise_linear.py | 40e759d8647fe0339cbbf16adc41c8de1563eddc | [
"MIT"
] | permissive | https://github.com/alisiahkoohi/survae_flows | 60ebfa86506f4139ce1fd9508e9c1e0dbdd1bdff | e1747b05524c7ab540a211ed360ab3e67bc3e96d | refs/heads/master | 2022-12-19T15:18:42.587276 | 2020-09-17T12:34:51 | 2020-09-17T12:34:51 | 290,247,391 | 1 | 0 | MIT | true | 2020-08-25T15:08:02 | 2020-08-25T15:08:01 | 2020-08-25T14:00:53 | 2020-08-25T14:00:50 | 4,186 | 0 | 0 | 0 | null | false | false | import numpy as np
import torch
import torch.nn as nn
import torchtestcase
import unittest
from survae.transforms import ConditionalAdditiveBijection, ConditionalAffineBijection
from survae.tests.transforms.bijections.conditional import ConditionalBijectionTest
class ConditionalAdditiveBijectionTest(ConditionalBiject... | UTF-8 | Python | false | false | 1,177 | py | 245 | elementwise_linear.py | 238 | 0.697536 | 0.681393 | 0 | 39 | 29.179487 | 98 |
pawbednarz/hash_tools | 15,556,371,576,739 | ee8b2189e9c4f3cd8c6d7409094bdc8de0b16b56 | 1a796c8579d486fc25f2fb1c6afce1dd6d291242 | /crack_hash.py | 05d08389497c924df798667dda58c2e924d9e35a | [] | no_license | https://github.com/pawbednarz/hash_tools | d6bfad59d5349fb1ec11853a19f281591e3cfdf0 | 5faad543b6acadf165dd531a7a4690b8e6971004 | refs/heads/master | 2020-12-12T17:06:34.989303 | 2020-07-11T19:58:44 | 2020-07-11T19:58:44 | 234,180,904 | 0 | 0 | null | null | null | null | null | null | null | null | null | null | null | null | null | #!/usr/bin/python3
import hashlib
import argparse
from functools import partial
# add command line arguments i.e. brutemd5 --md5 /path/to/file <hash_value>
# refactor entire script to better code
def md5(word):
hashMD5 = hashlib.md5()
hashMD5.update(word.encode())
return hashMD5.hexdigest()
... | UTF-8 | Python | false | false | 2,910 | py | 2 | crack_hash.py | 2 | 0.565979 | 0.527835 | 0 | 89 | 31.696629 | 160 |
baquinn4/pdorg | 15,822,659,524,787 | c61a1dcf2d5625246ed1c57d2c629276e7582943 | 5f3f8566bcc16a154da636002301b37f4dc94bd9 | /pdorg/src/pdorg2.py | 73b23c3ae16639ac837e99a255842a6b11fb51b4 | [] | no_license | https://github.com/baquinn4/pdorg | 58b70b587c87e5ffc6accd5ea4db43df5cfe49c5 | 9f8810d4a6cee74cc7b4f6d52ebfca67c8ae553c | refs/heads/master | 2020-05-31T19:29:36.847299 | 2019-06-05T23:31:02 | 2019-06-05T23:31:02 | 190,456,646 | 0 | 0 | null | null | null | null | null | null | null | null | null | null | null | null | null |
import os
os.chdir("../../")
try:
os.mkdir("snapchat")
except FileExistsError:
pass
| UTF-8 | Python | false | false | 91 | py | 4 | pdorg2.py | 3 | 0.637363 | 0.637363 | 0 | 9 | 8.888889 | 23 |
bsafran/proglab | 11,510,512,357,032 | 54f113c811cbab61f73f17583cb9d6771f6d264e | 8ef766ce76a61e927f6a2073704b6ea349611020 | /week2_Sympy/180401038_Ders02.py | 892a300e2b461df0e588df86470f1b1b9a4c6534 | [] | no_license | https://github.com/bsafran/proglab | 622c0789880cb542dc0a6fc0a97cf14b8b0cc9b8 | 9dd5efd522e81796696c39b879f70817106edcb5 | refs/heads/master | 2021-03-08T00:23:25.760639 | 2020-05-15T20:08:11 | 2020-05-15T20:08:11 | 246,306,557 | 0 | 0 | null | null | null | null | null | null | null | null | null | null | null | null | null | import sympy
from sympy import Symbol
from sympy import pprint
import sympy as sym
import sympy.plotting as syp
import sympy as sy
import matplotlib.pyplot as plt
sigma = Symbol('sigma')
mu = Symbol('mu')
x = Symbol('x')
part_1 = 1/(sym.sqrt(2*sym.pi*sigma*sigma))
part_2 = sym.exp(-1*((x-mu)**2)/(2*sigma**2))
my_gauss... | UTF-8 | Python | false | false | 684 | py | 19 | 180401038_Ders02.py | 17 | 0.679825 | 0.646199 | 0 | 27 | 24.333333 | 84 |
mranish592/JOBFAIR | 13,984,413,564,688 | b9ef978c5f4dfccf85a21622b32ebb03d2e81b8a | 939ee8db49d61e212bec5da54660079d4c70eb3b | /jobfair_website/jobfair_app/admin.py | 0bd35e954edce368404cd43a8489f1a96aaa23cf | [] | no_license | https://github.com/mranish592/JOBFAIR | e11218fc52fd5b2c99729e70b4cc103592983ba8 | 81b0b25ab163aca850376401dbef89a6f0d1823a | refs/heads/main | 2023-04-13T23:07:17.802952 | 2021-04-27T13:52:19 | 2021-04-27T13:52:19 | 360,259,871 | 0 | 1 | null | null | null | null | null | null | null | null | null | null | null | null | null | from django.contrib import admin
from jobfair_app.models import Project, UserProfileInfo
# Register your models here.
admin.site.register(Project)
admin.site.register(UserProfileInfo)
| UTF-8 | Python | false | false | 185 | py | 26 | admin.py | 10 | 0.832432 | 0.832432 | 0 | 6 | 29.833333 | 55 |
nicolausboby/Data-Stream-and-Graph-Mining | 17,841,294,155,825 | b6070bb1f891da343815ab267d852f0148a7823a | 7cd80e84362f760bfc88f795ef6bfea9b71bf891 | /twitter_stream.py | 67947ab0a02bcfc97d978dcde5936d3ba681a5f7 | [] | no_license | https://github.com/nicolausboby/Data-Stream-and-Graph-Mining | 2144d01c4a238ade3aee7df14dde62dd2d82d0aa | 1e79b289ca2a9913c15a108624f9ac39fff4b23f | refs/heads/master | 2020-04-10T04:43:53.826569 | 2018-12-16T02:10:15 | 2018-12-16T02:10:15 | 160,807,428 | 0 | 0 | null | null | null | null | null | null | null | null | null | null | null | null | null | import dotenv
import os
import json
import socket
import tweepy
from pathlib import Path
from signal import signal, SIGPIPE, SIG_DFL
from tweepy import OAuthHandler, Stream
from tweepy.streaming import StreamListener
env_path = Path('.') / '.env'
dotenv.load_dotenv(dotenv_path='./.env', verbose=True)
CONSUMER_KEY = ... | UTF-8 | Python | false | false | 1,865 | py | 6 | twitter_stream.py | 2 | 0.629491 | 0.627346 | 0 | 63 | 28.603175 | 106 |
bertocarl/Gjenge-System | 1,640,677,550,672 | b77371cc52da51bb5882a1c10457046f7e6dcd9d | b30b54611b93ed3e0f7e41eb44183ced5e2a2720 | /backend/backend/settings/prod.py | e5b2695676546a660a48ce70aac40ce399221a6c | [
"MIT"
] | permissive | https://github.com/bertocarl/Gjenge-System | cbd42e6cbdd1b702eaa34a4b8521453da3743657 | b5ead6085e5c698b8826704cd551306dc8f5249e | refs/heads/master | 2023-01-08T08:33:32.570637 | 2019-06-13T21:53:40 | 2019-06-13T21:53:40 | 188,376,302 | 0 | 0 | NOASSERTION | false | 2023-01-04T00:39:02 | 2019-05-24T07:41:09 | 2019-06-13T22:12:04 | 2023-01-04T00:39:01 | 6,581 | 0 | 0 | 34 | Python | false | false | from .local import * # noqa
STATIC_ROOT = '/home/berto/backend_static'
| UTF-8 | Python | false | false | 73 | py | 40 | prod.py | 31 | 0.69863 | 0.69863 | 0 | 3 | 23.333333 | 42 |
jbaillie80/code | 11,905,649,369,144 | 83199fe5e4f3598288f29a0d9a5e4d7470641e36 | 33b71af7cd0918997445586aee86c8007ab7d638 | /loops.py | 7a4421cb89b9444e63db15479ca0bc85622c1d1d | [] | no_license | https://github.com/jbaillie80/code | ada79ab0fe882f515a273373c99cba90c3e90a63 | 6245c9762a96dd342d5c16071e8b8775821e4fcd | refs/heads/master | 2020-12-28T11:56:58.436683 | 2020-03-16T01:06:30 | 2020-03-16T01:06:30 | 238,322,287 | 0 | 0 | null | null | null | null | null | null | null | null | null | null | null | null | null | '''
For this assignment you should read the task, then below the task do what it asks you to do
based on what the task tells you do first.
EXAMPLE TASK:
'''
#EX) Declare a variable set to 3. Make a while loop that prints the variable
# you just created and decrements the variable by one each time through
# the l... | UTF-8 | Python | false | false | 2,314 | py | 3 | loops.py | 3 | 0.660328 | 0.645635 | 0 | 78 | 28.679487 | 91 |
daseinpwt/nao-slam-monitor | 472,446,410,214 | 8b30e504ec95bf1c7f73893712501c1adb56efba | b59757fad318a17c496289f1235fe82ddbd237e9 | /control.py | b198c33d04ae9f17f5f342580c622b4896a6373f | [] | no_license | https://github.com/daseinpwt/nao-slam-monitor | f7ffc740c21b7620b0070177c67e942dc2ee6f6f | 4a8edd19b041618d2de697c8a9af214d6d2c1269 | refs/heads/master | 2020-04-02T03:48:57.016255 | 2019-05-08T21:08:20 | 2019-05-08T21:08:20 | 153,985,855 | 2 | 0 | null | null | null | null | null | null | null | null | null | null | null | null | null | import matplotlib.backends.tkagg as tkagg
import matplotlib.image as mpimg
from matplotlib.lines import Line2D
import matplotlib.colors
import numpy as np
import thread
import time
from random import randint, random
import cv2
from naomanager import Nao
from logger import timestamp
im_odo = mpimg.imread('robot_odometr... | UTF-8 | Python | false | false | 11,338 | py | 7 | control.py | 5 | 0.570118 | 0.538543 | 0 | 408 | 26.789216 | 124 |
xhuaustc/cloud-sdk | 19,250,043,450,830 | eaf6c18978ce2be4e693e8a6c7e83f69ae98023d | 99bd15b2fd230a51c7886cd430163d95a0630612 | /cloudsdk/models/__init__.py | 66978d7122da2324c44aef41f4a76aeef16997b2 | [] | no_license | https://github.com/xhuaustc/cloud-sdk | fb29ad4e8ccd94d90a7ef3e48acdfe9b048c762e | 68d0a02887294b413bcc871e7156bd4bcfb5d0c3 | refs/heads/master | 2020-04-16T17:21:42.878478 | 2019-04-09T06:48:49 | 2019-04-09T06:48:49 | 165,773,443 | 0 | 0 | null | null | null | null | null | null | null | null | null | null | null | null | null | # -*- coding: utf-8 -*-
"""
-------------------------------------------------
File Name: __init__.py
Description :
Author : 潘晓华
date: 2019/1/15
-------------------------------------------------
"""
# coding=utf8
"""
-------------------------------------------------
File... | UTF-8 | Python | false | false | 3,802 | py | 28 | __init__.py | 27 | 0.473823 | 0.464569 | 0 | 109 | 32.697248 | 108 |
allisson128/SD | 16,578,573,764,724 | 1d4c4718bba205edd706843f1209f435f8b14728 | 811547fb3341effe286b999f35b69175be45f549 | /backup/client/classes/strHandle.py | 59e04d201a915115893e7fb974e5f201969e5304 | [] | no_license | https://github.com/allisson128/SD | 7a7a0abf7f418c8a85bc3d4cd743f2815faa981d | e853503e6bcd9de6c2ff613db13320753055d058 | refs/heads/master | 2020-05-27T13:15:45.867760 | 2015-05-21T15:05:27 | 2015-05-21T15:05:27 | 35,048,411 | 0 | 0 | null | null | null | null | null | null | null | null | null | null | null | null | null | #----------------------------------------------------
# METODOS PARA TRATAMENTO DE STRING
#----------------------------------------------------
class StringHandle:
#----------------------------------
# METODOS ESTATICOS
#----------------------------------
"""
Se uma string inicia com string de... | UTF-8 | Python | false | false | 909 | py | 23 | strHandle.py | 15 | 0.381738 | 0.378438 | 0 | 33 | 26.545455 | 56 |
cuongpiger/CSC_Machine_Learning_with_Python | 13,297,218,796,447 | 27fb1b6eff3c9d8cbfbb24579414788b10ba07da | 9b7ce4d4e1012401420548f8e2eb21a69898a982 | /Chapter 4. Supervised Learning - Naive Bayes/modules/text_transform.py | c57c7ea1784b18b8f447be0ef5a10c20ec48b185 | [] | no_license | https://github.com/cuongpiger/CSC_Machine_Learning_with_Python | 7fcf9c557d51802a6c750ed9da9c75bf6a986e58 | c063e8216affe276bb915bf12389b821137ba3d2 | refs/heads/main | 2023-05-13T21:51:59.614937 | 2021-06-03T04:05:46 | 2021-06-03T04:05:46 | 347,799,324 | 1 | 0 | null | null | null | null | null | null | null | null | null | null | null | null | null | import numpy as np
from sklearn.feature_extraction.text import CountVectorizer
class CTextHandler:
def __init__(self, data):
self.data = data
def createBagOfWords(self):
self.handler = CountVectorizer()
self.handler.fit(self.data)
return self.handler.transform(... | UTF-8 | Python | false | false | 430 | py | 73 | text_transform.py | 31 | 0.653488 | 0.653488 | 0 | 15 | 27.733333 | 59 |
giginet/django-generic-tagging | 7,378,753,820,747 | a1fe6dbed8760ffe6d508ac38dcde42605c00a27 | 4b0537dafd392ecf4139ceb1b472465e87c3f4a3 | /generic_tagging/migrations/0001_initial.py | 3b300f8ec6b76cc480db02227838d21ec9cab87d | [
"MIT"
] | permissive | https://github.com/giginet/django-generic-tagging | a4ab8f0397de912d6afc85f85b663954189a5033 | adf5b28caad8ef51759cf57b3b03b6592d11eae5 | refs/heads/master | 2021-07-02T13:01:57.951098 | 2016-04-03T09:06:20 | 2016-04-03T10:59:55 | 54,305,869 | 0 | 0 | MIT | false | 2021-06-10T18:40:24 | 2016-03-20T07:29:25 | 2016-04-03T09:27:15 | 2021-06-10T18:40:22 | 70 | 0 | 0 | 3 | Python | false | false | # -*- coding: utf-8 -*-
# Generated by Django 1.9.4 on 2016-03-22 08:48
from __future__ import unicode_literals
from django.conf import settings
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
initial = True
dependencies = [
migration... | UTF-8 | Python | false | false | 2,509 | py | 35 | 0001_initial.py | 25 | 0.582304 | 0.572738 | 0 | 55 | 44.618182 | 188 |
twrightsman/REPET | 8,890,582,352,636 | 979c9947c8c817f17c06f19f688bb61feb08d1f7 | 12f84f41ad64334734f6466a8e843703ce7bf7d1 | /bin/Gff3Writer.py | fbf20fabf54c3b796bb32b368b93ea6a02a37892 | [] | no_license | https://github.com/twrightsman/REPET | d68bbc9487d791d9382a65d11137d0cd93ec0942 | a6662f20532f4c98f126dd2181b544c75a08df51 | refs/heads/master | 2018-04-01T07:37:13.929687 | 2017-05-19T20:30:35 | 2017-05-19T20:30:35 | 88,304,015 | 0 | 0 | null | null | null | null | null | null | null | null | null | null | null | null | null | ../commons/core/writer/Gff3Writer.py | UTF-8 | Python | false | false | 36 | py | 1,018 | Gff3Writer.py | 994 | 0.805556 | 0.777778 | 0 | 1 | 36 | 36 |
fernandobac03/evaluation-backend | 3,556,232,963,488 | fb415ab71d0087e2be7b49faaa416efc5e61592d | 708655e449320db12c1a37e9f082fe967319f8ce | /evaluationSameAs/index.py | ce6790440014ff7b091affffc2b0acfb97c39af2 | [] | no_license | https://github.com/fernandobac03/evaluation-backend | c858feed4ad159ce2ef829ce08686967c662b4cf | 375eeaa9f11e005da96acd08754dbc45dd2d0499 | refs/heads/master | 2020-06-11T13:42:47.095025 | 2019-06-28T17:18:56 | 2019-06-28T17:18:56 | 193,985,632 | 0 | 0 | null | false | 2019-10-30T11:17:58 | 2019-06-26T22:27:37 | 2019-06-28T17:19:10 | 2019-10-30T11:17:57 | 19 | 0 | 0 | 1 | Python | false | false | #!flask/bin/python
# -*- coding: utf-8 -*-
from flask import Flask, jsonify, request
from flask_cors import CORS
from evaluationSameAs.evaluationSameAs.inter import insert_person, get_pairs_data, insert_evaluation
app = Flask(__name__)
CORS(app)
@app.route('/geolinkeddata/service/storage/add', methods=['POST'])
def ... | UTF-8 | Python | false | false | 1,064 | py | 13 | index.py | 10 | 0.677632 | 0.676692 | 0 | 39 | 26.102564 | 100 |
PrachiP23/CSE611 | 10,411,000,728,915 | f1da1b8af1272575f8e217afe075a39dc752ee80 | d9e9d6c97f60406e1f88ac00412c8a696500e477 | /process/urbanlegend.py | 1387e223451b035bf8f158727b8fc18257cc39cf | [] | no_license | https://github.com/PrachiP23/CSE611 | efe9d55b605218ed9c9ab2233f23dd4e3db7793a | 5006632daf5c31d72892ae906642e4ee231387d2 | refs/heads/master | 2021-03-27T09:14:37.706006 | 2018-04-11T10:39:07 | 2018-04-11T10:39:07 | 123,155,434 | 0 | 0 | null | null | null | null | null | null | null | null | null | null | null | null | null | from process.process import Process
from datetime import datetime
import re
class UrbanLegendProcess(Process):
def process(self):
document = super().process()
document["innerTitle"] = ''.join(document["innerTitle"]).strip()
if document["description"] is not None:
document["des... | UTF-8 | Python | false | false | 1,231 | py | 33 | urbanlegend.py | 21 | 0.600325 | 0.599513 | 0 | 35 | 34.171429 | 104 |
elamperti/max7219 | 9,019,431,324,700 | d3e354bacb6f0446f006c1406a0ec3b02d339dd8 | 7fb5d789a06ca1070ce3bb287638554632999dd6 | /demo-clock.py | 21fe8625c69dc33001522c2ace02e00b3645ad78 | [
"MIT"
] | permissive | https://github.com/elamperti/max7219 | f5c64e7f1872ae7f69213239e8fb351c6a2de42f | 3a36fccd5524d93d15fd874373b25e8084c4a14a | refs/heads/master | 2021-01-20T11:06:18.421948 | 2014-05-11T19:00:52 | 2014-05-11T19:00:52 | 16,159,546 | 0 | 0 | null | null | null | null | null | null | null | null | null | null | null | null | null | #!/usr/sbin/python
from datetime import datetime
from time import sleep
from maxdraw import MaxDraw
from fonts import tiems_new_broman
a = MaxDraw(4)
a.init()
c = a.prepareString(datetime.now().strftime('%H:%M:%S'), tiems_new_broman.Font())
while(True):
c = a.prepareString(datetime.now().strftime('%H:%M: %S'),... | UTF-8 | Python | false | false | 417 | py | 15 | demo-clock.py | 14 | 0.690647 | 0.683453 | 0 | 18 | 22.166667 | 86 |
plumtree87/trophyCaseDatabase | 16,045,997,837,636 | 5ac68da56dba18fd38e82a49e1d2335b68db93d7 | 9ce56fd81c580921df3d233a25ae1e3689e13bd5 | /hunter_project/fish/admin.py | df225efd6ad32adae61872a5f8063fd00158edd4 | [] | no_license | https://github.com/plumtree87/trophyCaseDatabase | c6f966b48bd8c6d0290ed188c813a404e001d4c4 | c9ede6813a6d42540a6471a0cf06379501765940 | refs/heads/main | 2023-05-15T01:56:27.619910 | 2021-06-11T02:23:55 | 2021-06-11T02:23:55 | 371,199,735 | 0 | 0 | null | null | null | null | null | null | null | null | null | null | null | null | null | from django.contrib import admin
from .models import Bass
# Register your models here.
admin.site.register(Bass) | UTF-8 | Python | false | false | 112 | py | 29 | admin.py | 28 | 0.8125 | 0.8125 | 0 | 4 | 27.25 | 32 |
zhangsikai123/history-stocks | 2,937,757,673,159 | 2a3e483c56bc42287290727a6c20cf10de47781f | bcde16eece2e47273271362ecb3c25aafc7baa64 | /skystocks/items/history_item.py | 56744a14b111dfbdaf8fdbcd1eea7b78df519cd6 | [] | no_license | https://github.com/zhangsikai123/history-stocks | 945663905034991891e423ed781278e3a7fff271 | 91ed7f152062506305c1286588fa153010410f6d | refs/heads/master | 2022-10-08T15:00:54.579320 | 2020-06-06T14:51:10 | 2020-06-06T14:51:10 | 254,043,480 | 0 | 0 | null | null | null | null | null | null | null | null | null | null | null | null | null | # -*- coding: utf-8 -*-
# Define here the models for your scraped items
# See documentation in:
# https://docs.scrapy.org/en/latest/topics/items.html
from scrapy import Field
from scrapy.loader import ItemLoader, Identity
from skystocks.items.base_item import BaseItem
class StockItem(BaseItem):
code = Field()
... | UTF-8 | Python | false | false | 1,063 | py | 21 | history_item.py | 14 | 0.625621 | 0.623635 | 0 | 38 | 25.5 | 68 |
shidanxu/mengvfinal | 13,649,406,106,707 | f9f14555c96d4dc0d80e804e19bf041d08ebc9bb | 594347c573dc5468a1bcac1944ac4e287b12d460 | /IPLookup/ipToWirelessLTE.py | f5ae83be8321277272b947f3f23c67aa51f69ff6 | [] | no_license | https://github.com/shidanxu/mengvfinal | cd7c1d8935679a4bee7b7ce97050a3b642d647fe | 903aeea798d49c61c557c827ef28f177b3eaa17c | refs/heads/master | 2021-01-01T04:18:21.952006 | 2016-05-26T16:11:00 | 2016-05-26T16:11:00 | 58,878,805 | 0 | 0 | null | null | null | null | null | null | null | null | null | null | null | null | null | import pandas as pd
import numpy as np
data = pd.read_csv("ipToISP.csv", names = ['ip', 'city', 'state', 'isp', 'lat', 'lon', 'country'])
print data.head(50)
np.set_printoptions(threshold='nan')
print data['isp'].unique()
print data.groupby('isp').count().sort('ip')
print data.groupby('city').count().sort('ip')
# T... | UTF-8 | Python | false | false | 1,033 | py | 25 | ipToWirelessLTE.py | 9 | 0.728945 | 0.727009 | 0 | 27 | 37.296296 | 157 |
zXin1112/Python-Practice | 4,105,988,785,508 | d3764e5a3a818e451c2ab48d6565b75dae7809a9 | cfc373eb6e1e3e800d9de9d86cc606698ed08cf3 | /DataVisualization/DataVisualization/matplotliob/scatter_squares.py | 3ad8d391a6fd6983bca6fa803a640b30d7e6aa12 | [] | no_license | https://github.com/zXin1112/Python-Practice | c57705514fd4970cf78c09e49721054ad24745a0 | c624aaae2d47e3c9171b0f1dbdc7ca87ef440811 | refs/heads/master | 2020-04-13T14:30:40.863766 | 2019-01-17T05:57:51 | 2019-01-17T05:57:51 | 161,575,113 | 0 | 0 | null | null | null | null | null | null | null | null | null | null | null | null | null | import matplotlib.pyplot as plt
#散点图
#设置画面大小,12相当于1200 5.5相当于550 宽1200高550
plt.figure(figsize=(12, 5.5))
#数据源
#x_values=[1,2,3,4,5]
#y_values=[1,4,9,16,25]
x_values=list(range(1,1001))
y_values=[x**2 for x in x_values]
#s为点的尺寸,c为点的颜色 也可指定rgb
#plt.scatter(x_values,y_values,c='red',s=40)
#颜色映射 c设置为y值列表,cmap使用那个颜色映射
plt.s... | UTF-8 | Python | false | false | 854 | py | 51 | scatter_squares.py | 42 | 0.738024 | 0.640719 | 0 | 23 | 28.086957 | 64 |
bushitan/history_is_relation | 4,879,082,873,512 | f2f2c5220ca95167c64843ca02dfaff5858c21b1 | aca6c5120ef93fa109c0cf0c8720d2e22d329fb0 | /gd/gd_dispatch/migrations/0005_auto_20160621_1810.py | 2d8c692c8d8cda4f67c566e97fd238f3976ab286 | [] | no_license | https://github.com/bushitan/history_is_relation | 0580b1b343bc1142969e52003a48fee13713fd82 | b667142aa02cf67bfa4e1d678cb06d73d37f0747 | refs/heads/master | 2021-01-21T14:08:17.427033 | 2016-07-30T04:05:04 | 2016-07-30T04:05:04 | 58,323,275 | 1 | 0 | null | null | null | null | null | null | null | null | null | null | null | null | null | # -*- coding: utf-8 -*-
from __future__ import unicode_literals
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('gd_dispatch', '0004_relmonitor'),
]
operations = [
migrations.CreateModel(
name='RelPhone',
fields=[... | UTF-8 | Python | false | false | 1,660 | py | 49 | 0005_auto_20160621_1810.py | 33 | 0.561446 | 0.481325 | 0 | 46 | 35.086957 | 130 |
karthikpappu/pyc_source | 1,932,735,305,407 | 397ae8a3285ec98c590888f6c28a249c08716521 | 91fa095f423a3bf47eba7178a355aab3ca22cf7f | /pycfiles/sake-0.9.0-py2.7/process.py | da6c3b4a16f50a917248eaf10f16a3a333eca7a4 | [] | no_license | https://github.com/karthikpappu/pyc_source | 0ff4d03e6d7f88c1aca7263cc294d3fa17145c9f | 739e7e73180f2c3da5fd25bd1304a3fecfff8d6e | refs/heads/master | 2023-02-04T11:27:19.098827 | 2020-12-27T04:51:17 | 2020-12-27T04:51:17 | null | 0 | 0 | null | null | null | null | null | null | null | null | null | null | null | null | null | # uncompyle6 version 3.7.4
# Python bytecode 2.7 (62211)
# Decompiled from: Python 3.6.9 (default, Apr 18 2020, 01:56:04)
# [GCC 8.4.0]
# Embedded file name: build\bdist.win32\egg\sake\process.py
# Compiled at: 2011-02-21 21:55:26
"""
process module - implements process concepts. yessirre.
"""
from collections import ... | UTF-8 | Python | false | false | 9,264 | py | 114,545 | process.py | 111,506 | 0.585276 | 0.578152 | 0 | 284 | 31.623239 | 149 |
yazeedtaweel/appumSample | 1,743,756,746,366 | 345a58bccf722b55127793197bf548fc2d14c7a0 | fe71c86322912342062b0557f8167a80c2c82488 | /WebAppAutomationTests/Pages/createInspectionPage.py | fcb93df49f85437644129f9d77b68672c1416e9e | [] | no_license | https://github.com/yazeedtaweel/appumSample | 51f35459361b63c783683b3d9e61f86f634a0f60 | 4a14c84f7d4611576fdeb01fd7d58d483224cc28 | refs/heads/main | 2023-05-01T12:37:08.947048 | 2021-05-12T15:07:51 | 2021-05-12T15:07:51 | 366,756,360 | 0 | 0 | null | null | null | null | null | null | null | null | null | null | null | null | null | from selenium.webdriver.common.by import By
from selenium.webdriver.support import expected_conditions as EC
from selenium.webdriver.support.ui import WebDriverWait
from Locators.createInspectionPageLocators import *
from conftest import *
class CreateInspectionPage:
def __init__(self, driver):
self.dri... | UTF-8 | Python | false | false | 1,075 | py | 24 | createInspectionPage.py | 22 | 0.730233 | 0.729302 | 0 | 27 | 38.814815 | 105 |
wchao403/flask-project | 17,695,265,288,741 | bc4707f9689c3317ed7e6e6a1fe2bbc2a8cf22e6 | 060e6da873a00318c58bbe4d99a3d2f9ab16ea55 | /config.py | ba8c8951e79246129f7a4706bd448030f95cb697 | [] | no_license | https://github.com/wchao403/flask-project | e36956da259de0d174e166e9d737f314485dbcec | 3d4cebaf503131221326c0dda2e90d91d8228978 | refs/heads/master | 2023-02-04T21:33:54.187632 | 2020-12-25T01:52:19 | 2020-12-25T01:52:19 | 321,391,572 | 2 | 1 | null | null | null | null | null | null | null | null | null | null | null | null | null | import redis
class Config():
"""mysq的配置信息"""
USERNAME = 'root'
PASSWORD = 'root'
HOST = '127.0.0.1'
PORT = '3306'
DATABASE = 'home'
DB_URL = 'mysql+pymysql://{}:{}@{}:{}/{}?charset=utf8'.format(USERNAME, PASSWORD, HOST, PORT, DATABASE)
SQLALCHEMY_DATABASE_URI = DB_URL
SQLALCHEMY_TR... | UTF-8 | Python | false | false | 1,051 | py | 18 | config.py | 17 | 0.627986 | 0.599545 | 0 | 39 | 21.538462 | 107 |
bettyzry/leetcode | 10,642,928,981,356 | f4646537195fbf5dd021e9520c2cc805465fd86e | 50b67aa6afc92184661dbd2807c24a78e08e88db | /2分式化简.py | 5345f6c8644458c9b9c307dfcf7c3dcafce01db3 | [] | no_license | https://github.com/bettyzry/leetcode | 88d4a4091b1edd5473d80d402a2674916bb9ac7d | 89f44b711ea1788f1a25fcd07a974a22539587ef | refs/heads/master | 2021-07-12T09:02:59.850266 | 2020-10-12T10:50:44 | 2020-10-12T10:50:44 | 214,312,068 | 0 | 0 | null | null | null | null | null | null | null | null | null | null | null | null | null | class Solution:
def fraction(self, cont: List[int]) -> List[int]:
down = cont[-1]
up = 1
for i in reversed(cont[:-1]):
up = i*down + up
re = down
down = up
up = re
hcf = self.hcf(down, up)
down = down/hcf
up = up/hcf
... | UTF-8 | Python | false | false | 618 | py | 31 | 2分式化简.py | 31 | 0.398058 | 0.386731 | 0 | 25 | 23.72 | 53 |
medvedeffalexandr/algorithms_and_data_structures | 8,787,503,110,913 | f2fae6cb0e4b2614f6d0536996a6a7f54280e92b | 56fdd2d98f01f4abc431372e20e1330d241c4707 | /stack.py | 15211ac48b6e0271247ddb026cd8208face1bb8c | [] | no_license | https://github.com/medvedeffalexandr/algorithms_and_data_structures | 5845d70b85d3c7ce81ec53edfd627c2c0b8c5e8f | 6a36e2a76f4f9fe004ef21a004bc3359465809d4 | refs/heads/master | 2017-11-11T15:35:20.541735 | 2017-03-07T05:30:17 | 2017-03-07T05:30:17 | 83,986,206 | 0 | 0 | null | null | null | null | null | null | null | null | null | null | null | null | null | class Stack:
def __init__(self):
self.items = []
#проверяет стек на пустоту. Параметры не требуются, возвращает булево значение.
def isEmpty(self):
return self.items == []
#добавляет новый элемент на вершину стека. В качестве параметра выступает элемент; функция ничего не возвращае... | UTF-8 | Python | false | false | 2,543 | py | 1 | stack.py | 1 | 0.632778 | 0.63 | 0 | 51 | 34.294118 | 123 |
BlueGranite/tpc-ds-dataset-generator | 11,192,684,805,409 | e6dd63bbce38aaeeb262823f5ba12959d25aa39c | 07f82964ddb84acef1e9c2f98cc4a20811822601 | /notebooks/TPC-DS-GenerateData.py | 5eb78ff5f0ec295fd8356aa934676e76c9833b83 | [] | no_license | https://github.com/BlueGranite/tpc-ds-dataset-generator | 6efd7eb494a16ebf338426ec1455667d24d9e135 | 180e511b25e866d7994d1a1a1be752d4bb98648e | refs/heads/master | 2022-01-09T23:25:24.847744 | 2022-01-03T19:15:55 | 2022-01-03T19:15:55 | 245,227,348 | 15 | 14 | null | false | 2022-01-03T19:15:56 | 2020-03-05T17:33:01 | 2021-11-18T21:57:49 | 2022-01-03T19:15:55 | 2,270 | 8 | 5 | 1 | HTML | false | false | # Databricks notebook source
# DBTITLE 1,Generate TPC-DS data
# MAGIC %md
# MAGIC Generating data at larger scales can take hours to run, and you may want to run the notebook as a job.
# MAGIC
# MAGIC The cell below generates the data. Read the code carefully, as it contains many parameters to control the process. See... | UTF-8 | Python | false | false | 4,097 | py | 3 | TPC-DS-GenerateData.py | 2 | 0.666829 | 0.648279 | 0 | 80 | 50.2125 | 271 |
sp-fm/python-lifecycle-training | 1,494,648,660,125 | 0ae753c6d7c48b5bd934217bc38ed4f27e93e4b8 | 45f532b5f1fd6c075a56fa50b864748ff826d123 | /tests/calculator/test_cli.py | 0eece463c5a4fbbafd55545b27730ec45fe8e08c | [
"MIT"
] | permissive | https://github.com/sp-fm/python-lifecycle-training | 7b85558d72472af14752cfbcc6a3961dfba963a3 | 27e6d0d7c0da9d98813e3eb8ca7dd9f3b645956c | refs/heads/master | 2023-01-03T01:30:34.721725 | 2022-07-22T06:46:54 | 2022-07-22T06:46:54 | 301,319,612 | 1 | 2 | null | null | null | null | null | null | null | null | null | null | null | null | null | import pytest
import python_lifecycle_training
from python_lifecycle_training.calculator.cli import Main
class TestCalculatorCLI:
@staticmethod
@pytest.mark.parametrize(
"env",
[
"development",
"production",
],
)
def test_log(caplog, env):
pytho... | UTF-8 | Python | false | false | 408 | py | 40 | test_cli.py | 8 | 0.610294 | 0.610294 | 0 | 20 | 19.4 | 57 |
divanoLetto/Multi_Agents_Control_System_Formation | 6,244,882,489,089 | 649a433e566f8f0fe24ef9b700f761c763b12895 | 74da557b1da6b91b5df3a7414fa1c235abeba695 | /LineBuilder.py | 57277a9b940cc23621a537dcee968520451a9e77 | [] | no_license | https://github.com/divanoLetto/Multi_Agents_Control_System_Formation | c2c7d9020a0ddf865d18655ad203e1a2f0b4a92a | 8d2153addbd0a5d8afa8a6a556bd26230d35ca65 | refs/heads/master | 2023-03-26T12:44:14.915643 | 2021-03-26T22:48:00 | 2021-03-26T22:48:00 | 224,838,713 | 1 | 0 | null | null | null | null | null | null | null | null | null | null | null | null | null | from matplotlib import pyplot as plt
from matplotlib.widgets import TextBox
import time
import numpy as np
from Formation import *
from Formation import FreeFormationDisplacementSingleIntegrator
from FormationNote import *
from utils import *
class LineBuilderPoint:
def __init__(self, line, num_robots):
s... | UTF-8 | Python | false | false | 4,202 | py | 20 | LineBuilder.py | 19 | 0.617563 | 0.613279 | 0 | 114 | 35.859649 | 110 |
anyahayda/course_project | 16,999,480,598,961 | ac77fc445d6cac9941515584daedcc5c55af7c94 | adeeadf81ff77bb2c12b81f4779b9cf7a2d11d83 | /trains/train_searcher.py | 63a0cb1190be0f729bab35413c1e8c7026b4dafc | [] | no_license | https://github.com/anyahayda/course_project | 096b693dfeb5ff61c63f14a4327959826d19f7ce | 6a7b2c809ef98fd87cfebb3fd4b7040144aebaf2 | refs/heads/master | 2021-01-24T03:19:47.914403 | 2018-05-27T15:35:20 | 2018-05-27T15:35:20 | 122,884,808 | 0 | 0 | null | null | null | null | null | null | null | null | null | null | null | null | null | from flask import Flask, render_template, url_for, request
from search.analizer import Searcher
app = Flask(__name__, static_url_path='/static')
DEFAULT_FORM_DATA = {'from': '',
'to': '',
'price_up_to': 'Any',
'fixed_date': '',
'from_d... | UTF-8 | Python | false | false | 1,049 | py | 7 | train_searcher.py | 5 | 0.524309 | 0.524309 | 0 | 38 | 26.605263 | 77 |
JetBrains/intellij-community | 11,914,239,318,987 | 91ba8a662631fc02ad164029058a9d4fe3591af4 | eb9f655206c43c12b497c667ba56a0d358b6bc3a | /python/testData/postfix/editable/editableTemplateConcreteTypeInapplicable.py | c5d5152aef9f083e1385449cadfe6c8b9d68ff74 | [
"Apache-2.0"
] | permissive | https://github.com/JetBrains/intellij-community | 2ed226e200ecc17c037dcddd4a006de56cd43941 | 05dbd4575d01a213f3f4d69aa4968473f2536142 | refs/heads/master | 2023-09-03T17:06:37.560889 | 2023-09-03T11:51:00 | 2023-09-03T12:12:27 | 2,489,216 | 16,288 | 6,635 | Apache-2.0 | false | 2023-09-12T07:41:58 | 2011-09-30T13:33:05 | 2023-09-12T03:37:30 | 2023-09-12T06:46:46 | 4,523,919 | 15,754 | 4,972 | 237 | null | false | false | def _():
x = set()
x.foo<caret>
| UTF-8 | Python | false | false | 40 | py | 127,182 | editableTemplateConcreteTypeInapplicable.py | 70,394 | 0.4 | 0.4 | 0 | 3 | 12.333333 | 16 |
kyurchenko/IDAPythonForUEFI | 11,175,504,939,641 | c485d137c5b460adb23f9320a9deb5e57b69eeb9 | b2a7e92054d37ef3e4454096864e2910d2e243d3 | /GUIDFinder/Structures.py | 96ed05e1c93002ce3fabe918da926f33d7a8f50b | [] | no_license | https://github.com/kyurchenko/IDAPythonForUEFI | f3fa57a0ace2ef9d49f4fc9bc41c0dbadcfe0bb1 | 6ca4e3d07d2a97bc58b2a02314f507ab24a38088 | refs/heads/master | 2020-03-09T17:02:23.537631 | 2018-07-19T07:54:06 | 2018-07-19T07:54:06 | 128,900,073 | 1 | 0 | null | null | null | null | null | null | null | null | null | null | null | null | null | # coding: cp866
from idaapi import add_struc, get_struc_id
from idc import AddStrucMember
# Добавляет все структуры в базу IdaPro разбираемого модуля
def _build_struc():
add_struc(-1,'GUID',0)
guid_id = get_struc_id('GUID')
AddStrucMember(guid_id,"Data1", 0, 0x20000400, -1, 4)
AddStrucMember(guid_id,"Data2", ... | UTF-8 | Python | false | false | 511 | py | 5 | Structures.py | 2 | 0.695931 | 0.571734 | 0 | 12 | 37.916667 | 59 |
linhx13/leetcode-code | 16,999,480,581,218 | 2e7c96ee5673b8f5f12871dfd0ad0c82ef630685 | afdeedfb743fbb149d36c14cfad65feaf03acd21 | /code/834-sum-of-distances-in-tree.py | 7ba464b22b93a2456474b4b4466b35db4b78405b | [] | no_license | https://github.com/linhx13/leetcode-code | f16cd4a0d35be34c41b86715fc9f3e8ec4b0a577 | c71574acfc68174a091c1751f10985b8f5737a1f | refs/heads/master | 2021-07-04T03:45:20.030275 | 2021-06-09T13:55:18 | 2021-06-09T13:55:18 | 70,423,464 | 0 | 1 | null | false | 2019-08-01T09:37:49 | 2016-10-09T18:48:33 | 2016-10-09T18:48:33 | 2019-08-01T09:36:16 | 8 | 0 | 1 | 0 | null | false | false | from typing import List
from collections import defaultdict
class Solution:
def sumOfDistancesInTree(self, N: int,
edges: List[List[int]]) -> List[int]:
graph = defaultdict(set)
for e in edges:
graph[e[0]].add(e[1])
graph[e[1]].add(e[0])
... | UTF-8 | Python | false | false | 1,293 | py | 883 | 834-sum-of-distances-in-tree.py | 856 | 0.41686 | 0.397525 | 0 | 49 | 25.387755 | 72 |
lightstrike/culination | 9,835,475,139,090 | 065e1029d5ac1014804e1c4decb76a1726aec1b1 | 9b2dc6b3b44caf53b6f5d3c2333df824a01294fe | /conf/staging.py | 8a1306d84a1539471e42a6dff6f1d8b8c54f70f6 | [] | no_license | https://github.com/lightstrike/culination | 5243cdd32ecf1ee8a9df88c510fbbff3b273ac66 | a36bafdba5f730de9096be88f4ac314b899159f4 | refs/heads/master | 2021-01-18T02:53:49.899309 | 2014-03-06T23:21:57 | 2014-03-06T23:21:57 | null | 0 | 0 | null | null | null | null | null | null | null | null | null | null | null | null | null | from production import *
DEBUG = True
| UTF-8 | Python | false | false | 39 | py | 110 | staging.py | 27 | 0.74359 | 0.74359 | 0 | 3 | 12 | 24 |
SpCrazy/crazy | 5,231,270,216,167 | 748ceca0b09f1655054cc066ac1fa2e0d36fed37 | 8c89354f77e55e4006392864660f675aa58586ad | /code/SpiderDay02_process/urllib_learn/urlopen_demo.py | fae9d06c63c529099b0445686bb62ff51ac6ecf6 | [] | no_license | https://github.com/SpCrazy/crazy | d77510d8b67c53b156e628d6a26cd34d72d4e00a | 7d088007b21d3167e689ab92084f6f44f0fb951e | refs/heads/master | 2021-06-21T10:41:48.547291 | 2019-12-06T16:20:23 | 2019-12-06T16:20:23 | 190,356,526 | 5 | 0 | null | null | null | null | null | null | null | null | null | null | null | null | null | from urllib.request import urlopen
url = "http://sohu.com"
response = urlopen(url)
print("响应状态码是:",response.status)
print("响应内容是:",response.read().decode())
| UTF-8 | Python | false | false | 187 | py | 210 | urlopen_demo.py | 182 | 0.714286 | 0.714286 | 0 | 7 | 21.714286 | 40 |
dancergraham/csv_parsing | 4,922,032,523,170 | 33b3989e4474c10cdbac68bc278650565c52d4ec | 8aacd6383fe83844e45a176e53cdc6da2dd2bc57 | /main.py | 2f9d91f4724d38d385b2c5906bc3af4724942a64 | [] | no_license | https://github.com/dancergraham/csv_parsing | 0188cca18e411cc74ad5ed89435edc794c49f79d | 208072ba0d16c11cb569a8bf21f52795d8fcdb29 | refs/heads/master | 2020-12-08T20:38:54.541617 | 2020-01-10T11:21:29 | 2020-01-10T11:21:29 | 233,089,327 | 0 | 0 | null | true | 2020-01-10T16:42:42 | 2020-01-10T16:42:41 | 2020-01-10T11:21:57 | 2020-01-10T11:21:55 | 97 | 0 | 0 | 0 | null | false | false | import csv
from models.pitot_measure import PitotMeasureModel
from tkinter import filedialog
from lib.csv_parser import CSVParser
from os import path
from functools import reduce
#########################################################################
## PROGRAM PARAMETERS ... | UTF-8 | Python | false | false | 2,749 | py | 1 | main.py | 1 | 0.530932 | 0.522198 | 0 | 86 | 29.953488 | 101 |
terratenff/math-tools | 16,965,120,847,623 | 4f0f178e820475e195296ab908d9a2236aed8070 | 4c7c1e7cf19398f193171b1ebcb38daacadbafcc | /unit_testing.py | a725722d32c2db2682f23387172456ef9835cd15 | [
"MIT"
] | permissive | https://github.com/terratenff/math-tools | d2fc9d3c22a650723e68fc768ee8cf271c974918 | c55e68319f78800e4d206b385e09629c3c2196eb | refs/heads/master | 2020-06-23T14:56:34.869070 | 2019-09-15T15:28:10 | 2019-09-15T15:28:10 | 198,656,003 | 0 | 0 | null | null | null | null | null | null | null | null | null | null | null | null | null | #!/usr/bin/env python
"""
unit_testing.py:
Contains unit tests for the application.
"""
import unittest
from os import getcwd
import numpy as np
import math_modules.module_selector as selector
import utilities.arithmetics.arithmetics as ar
__author__ = "terratenff"
__credits__ = ["terratenff"]
__license__ = "MIT... | UTF-8 | Python | false | false | 3,198 | py | 37 | unit_testing.py | 19 | 0.595997 | 0.595059 | 0 | 119 | 25.87395 | 107 |
Arraiz/sgvls | 11,836,929,881,035 | c15a8d4f3974e5522c2051ac7a9be5bfb6afc0b6 | d91f66137c426387288fc2748fabcd30d60e9d23 | /src/main/python/dialogs/pure/NewPureSignal.py | fc8a2f806c5c43d5cd5de99cac14482e7d074549 | [] | no_license | https://github.com/Arraiz/sgvls | 815b689ffae03398000610073efe1960f3fdcd9b | 2278dac715a2870ff476c8200d2d0166d7a84998 | refs/heads/master | 2020-04-07T22:06:29.439491 | 2018-12-11T19:11:21 | 2018-12-11T19:11:21 | 158,755,051 | 0 | 0 | null | null | null | null | null | null | null | null | null | null | null | null | null | # -*- coding: utf-8 -*-
# Form implementation generated from reading ui file 'ui/NewPureSignal.ui'
#
# Created by: PyQt5 UI code generator 5.10.1
#
# WARNING! All changes made in this file will be lost!
from PyQt5 import QtCore, QtGui, QtWidgets
class Ui_PureSginalDialog(object):
def setupUi(self, PureSginalDial... | UTF-8 | Python | false | false | 4,780 | py | 22 | NewPureSignal.py | 15 | 0.735774 | 0.71569 | 0 | 89 | 52.707865 | 106 |
Karor9/wd | 1,219,770,758,965 | 7e3d239eccb7ef1b20943e7dcc21bc5dfe19661a | 711fc94707ce2a95aacacf70ca01b835075a0139 | /labo7/w7z6.py | f0cb5eb98c1ff38472c52c34dab29d19825593c0 | [] | no_license | https://github.com/Karor9/wd | ab5fb7315eac2d986ddef034956164d4d0420052 | 35910c6f60281331a946f2e32828234042f1cc0c | refs/heads/master | 2021-01-25T23:52:01.830154 | 2020-05-31T19:39:21 | 2020-05-31T19:39:21 | 243,231,065 | 0 | 0 | null | null | null | null | null | null | null | null | null | null | null | null | null | import numpy as numpy
import math as m
def obliczCosinus(tab):
size = tab.size
copyTab = tab.ravel()
copyTab = copyTab.astype('float64')
result = tab * 0
result = result.astype('float64')
for i in range (0, size):
copyTab[i] = m.cos(copyTab[i])
result = numpy.reshape(copyTab, (2, 3)... | UTF-8 | Python | false | false | 423 | py | 107 | w7z6.py | 104 | 0.609929 | 0.560284 | 0 | 18 | 22.5 | 46 |
daniaguirre/python | 8,572,754,734,085 | ce690585efcec2141bbdf13824add530169a8622 | c32fafa72fed47ea53e5d3bb293b6733100b6795 | /edit-files/edit_files.py | 614a0648dd3fd8122bf5065896f22177ca3f4694 | [] | no_license | https://github.com/daniaguirre/python | 263bda0269cf29640f091284c08a439a90073c8f | 938c8dd8fa7d32357fe4037058d419f849cbd93e | refs/heads/master | 2021-01-19T21:27:51.298620 | 2015-03-24T16:27:45 | 2015-03-24T16:27:45 | 29,432,211 | 0 | 0 | null | null | null | null | null | null | null | null | null | null | null | null | null | import os
template = 'example'
f = open('example', 'w')
f.writelines(['_RWS := rec(\n',\
'isRWS := true,'])
f.close()
os.c
os.rename('example', 'example1') | UTF-8 | Python | false | false | 173 | py | 6 | edit_files.py | 4 | 0.549133 | 0.543353 | 0 | 12 | 13.5 | 32 |
SaitoTsutomu/leetcode | 6,975,026,917,840 | 252f90300c67aa58fbe9e77f4f499fef8c99cae8 | 85b8a52f1be2c4838f885f0e5a4d6963f4109dfe | /codes_/0941_Valid_Mountain_Array.py | eded6637df72ad013807cbcc12f8e575727a2743 | [
"MIT"
] | permissive | https://github.com/SaitoTsutomu/leetcode | 4cc5bac4f983b287ec1540d188589ce3dd6e409a | 4656d66ab721a5c7bc59890db9a2331c6823b2bf | refs/heads/master | 2023-03-12T11:37:29.051395 | 2021-02-27T06:11:34 | 2021-02-27T06:11:34 | 281,815,531 | 0 | 0 | null | null | null | null | null | null | null | null | null | null | null | null | null | # %% [941. Valid Mountain Array](https://leetcode.com/problems/valid-mountain-array/)
# 問題:前半単調増加して後半単調減少しているかを返せ
# 解法:itertools.takewhileを用いる
class Solution:
def validMountainArray(self, A: List[int]) -> bool:
df = [j - i for i, j in zip(A, A[1:])]
n = len(list(itertools.takewhile(lambda x: x > 0, ... | UTF-8 | Python | false | false | 458 | py | 331 | 0941_Valid_Mountain_Array.py | 325 | 0.63198 | 0.614213 | 0 | 8 | 48.25 | 85 |
TatianaFilimonova/labs | 3,667,902,106,327 | 19e025c76898619db99ce8309dc42e66a96eb341 | ed00be4dd43338c39cc713247b3f7d7c04e132ee | /Laba6.Newton/Laba6.Part1.py | 37ada284bedbdf2fe28f4f6df822c20061523bb6 | [] | no_license | https://github.com/TatianaFilimonova/labs | dfdbbdbca8c7dd54c9db7605e7030db26458f82d | 2f887f1aad0b2e1d64b0f8f6124d1a263a2f2929 | refs/heads/main | 2023-06-04T06:57:36.096443 | 2021-06-24T17:49:19 | 2021-06-24T17:49:19 | 353,875,472 | 0 | 0 | null | null | null | null | null | null | null | null | null | null | null | null | null | from math import *
from sympy import *
x, y = symbols('x y')
def fun(x):
return log10(x) - 7 / (2 * x + 6)
def der(x):
return 14 / (2 * x + 6)**2 + 1/(x*(log(10)))
# return diff(fun(x))
N = 2
def localisation(a, b, N):
x0 = a
x1 = a + (b - a) / N
while fun(x0) * fun(x1) >= 0:
x0 = x1
... | UTF-8 | Python | false | false | 814 | py | 14 | Laba6.Part1.py | 9 | 0.445946 | 0.380835 | 0 | 41 | 18.878049 | 49 |
kiwiheretic/logos-v2 | 8,057,358,683,278 | a10e3a9b3db1aedb26e9b4b0fe2e4c8e0428d20d | b9f3beba935a41029b1cd8d8a495f25df270c697 | /cloud_memos/bot_plugin.py | 08e854634a22133334f736fdf7452a7a6f233d4b | [
"Apache-2.0"
] | permissive | https://github.com/kiwiheretic/logos-v2 | f656c6295b018109e5ddf4c8b230414dd2395f3a | 91a02d69d40d07289130de48f5e4ad9751d678ed | refs/heads/master | 2023-07-20T08:34:47.897925 | 2023-07-16T03:24:32 | 2023-07-16T03:24:32 | 27,844,572 | 4 | 1 | Apache-2.0 | false | 2022-12-08T01:54:59 | 2014-12-10T23:20:10 | 2022-03-20T01:10:14 | 2022-12-08T01:54:58 | 9,096 | 4 | 1 | 41 | JavaScript | false | false | # test plugin
from bot.pluginDespatch import Plugin
import re
from datetime import datetime
import pytz
from django.contrib.auth.models import User
import logging
from logos.settings import LOGGING
logger = logging.getLogger(__name__)
logging.config.dictConfig(LOGGING)
from cloud_memos.models import Memo, Folder
from... | UTF-8 | Python | false | false | 6,966 | py | 216 | bot_plugin.py | 149 | 0.537037 | 0.535314 | 0 | 185 | 36.654054 | 106 |
mhowsmon/pyclass | 4,964,982,203,588 | 8db92a053d4d738198c4542622d703ef5e93f6b8 | a9f413939bdd8e888c2a98e2c76c39916775e4ac | /WK1/cisco_con.py | 8d836002445ea5b15ee39b0b9b61b9b581f7a865 | [] | no_license | https://github.com/mhowsmon/pyclass | 80101fcc4d6cbac5b1ad46fa6f868117bc807a2e | 89e7b9b021b9ebee818be11598b9302792fa80ba | refs/heads/master | 2022-11-22T14:01:46.295772 | 2020-07-22T02:47:35 | 2020-07-22T02:47:35 | 262,201,295 | 0 | 0 | null | false | 2020-05-08T02:23:47 | 2020-05-08T01:51:47 | 2020-05-08T02:07:59 | 2020-05-08T02:23:47 | 0 | 0 | 0 | 0 | Python | false | false | #!/usr/bin/env python
from netmiko import ConnectHandler
from getpass import getpass
device1 = {
'host':'nxos1.lasthop.io',
'username':'pyclass',
'password':'88newclass',
'device_type':'cisco_nxos',
'session_log':'my_session.txt'
}
net_connect = (ConnectHandler(**device1))
print(net_connect.find_p... | UTF-8 | Python | false | false | 744 | py | 24 | cisco_con.py | 21 | 0.698925 | 0.69086 | 0 | 35 | 20.228571 | 84 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.