blob_id stringlengths 40 40 | directory_id stringlengths 40 40 | path stringlengths 3 281 | content_id stringlengths 40 40 | detected_licenses listlengths 0 57 | license_type stringclasses 2
values | repo_name stringlengths 6 116 | snapshot_id stringlengths 40 40 | revision_id stringlengths 40 40 | branch_name stringclasses 313
values | visit_date timestamp[us] | revision_date timestamp[us] | committer_date timestamp[us] | github_id int64 18.2k 668M ⌀ | star_events_count int64 0 102k | fork_events_count int64 0 38.2k | gha_license_id stringclasses 17
values | gha_event_created_at timestamp[us] | gha_created_at timestamp[us] | gha_language stringclasses 107
values | src_encoding stringclasses 20
values | language stringclasses 1
value | is_vendor bool 2
classes | is_generated bool 2
classes | length_bytes int64 4 6.02M | extension stringclasses 78
values | content stringlengths 2 6.02M | authors listlengths 1 1 | author stringlengths 0 175 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
6ad09a397dbf97061f4cd275e6cdec8164a5b654 | eaefe256e8c0efc349fb898d43221732952e5d2c | /python/ex40.py | 50eb6fd4d125d4a41b27dacc77649ade5a62c771 | [] | no_license | ceye1992/learn | 95ed111f60c53a516f82714125726c4fb7ff8e0d | 119d071342bd415fcc71e6f4809ebbfc0783ba8d | refs/heads/master | 2021-01-17T10:33:13.506212 | 2017-03-02T13:19:21 | 2017-03-02T13:19:21 | 56,953,409 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 636 | py | class TheThing(object):
def __init__(self):
self.number = 0
def some_function(self):
print "I got called."
def add_me_up(self, more):
self.number += more
return self.number
# two different things
a = TheThing()
b = TheThing()
a.some_function()
b.some_function()
print a.add_me_up(20)
print b.ad... | [
"691092546@qq.com"
] | 691092546@qq.com |
97c011cd9c34cb7da98987f95a2385fb589540d1 | ef1ae1e96b58e3b897074f793bcf2dada166b9e3 | /charlie_delarosa/login-reg/apps/login_reg_app/models.py | 9ef623ddac4cbea22062d01a57108574a62fa7b3 | [] | no_license | charlie320/python_july_2017 | 21340f2d1bcaedb317dfda4270fbf7cb31369b21 | 80097768b681ff7225cc128455ba71bc62a41b35 | refs/heads/master | 2020-06-24T12:48:20.563259 | 2017-08-01T02:12:08 | 2017-08-01T02:12:08 | 96,936,879 | 0 | 0 | null | 2017-07-11T21:01:34 | 2017-07-11T21:01:34 | null | UTF-8 | Python | false | false | 2,408 | py | from __future__ import unicode_literals
from django.db import models
from validate_email import validate_email
#Our new manager!
#No methods in our new manager should ever catch the whole request object with a
#parameter!!! (just parts, like request.POST)
class UserManager(models.Manager):
def validate(self, form... | [
"Charlie@Charlies-MacBook-Pro.local"
] | Charlie@Charlies-MacBook-Pro.local |
8d2c21505360bcf04946ffb32990bb81ae0089c6 | 85f5655c77a7acc801a92e7f1914af8a8a9f5e2b | /__manifest__.py | d43ec123797885e7f47fe5b51ed195788d264d7f | [] | no_license | dipendra-karki/odoo-debrand-title-master-edu | 4f7a138768a0cedacc84c0f1b483237e60226270 | fee65ac17fc1812f4dee89ca110b592e4f5899ff | refs/heads/main | 2023-06-27T11:31:42.270369 | 2021-07-25T04:54:51 | 2021-07-25T04:54:51 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 475 | py | # -*- coding: utf-8 -*-
{
'name': "odoo-debrand-title-master-edu",
'summary': """
Little Debrand""",
'description': """
PDebrand
""",
'author': "yoga listianto",
'website': "",
'category': 'Tools',
'version': '0.2',
'depends': ['base'],
'data': [
'vi... | [
"yogalistianto7@gmail.com"
] | yogalistianto7@gmail.com |
9bd5ee1d6e0152437a47144f7408a008e451fc2e | d1b4b7f974912051c8a72c17f5365cffc11bc385 | /home/sbin/screentool | 00033b2bc8812bc8cd8a8b8661f6dd068772c158 | [
"Apache-2.0"
] | permissive | Rufflewind/config | aba0aeb256845434faeb26fc1a976bd18cb22304 | da7c13b4d7bebad7212576bd0a4458a35a0804d3 | refs/heads/master | 2023-08-18T20:07:22.506312 | 2023-08-14T07:12:31 | 2023-08-14T08:28:43 | 19,192,642 | 16 | 4 | null | null | null | null | UTF-8 | Python | false | false | 7,811 | #!/usr/bin/env python
#
# Ninji's ScreenTool for taking and munging screenshots
#
# Dependencies:
#
# pacman -S imagemagick maim python-gobject slop xclip
#
# Note: 'slop+maim' works better than 'import' because 'slop' doesn't leave
# behind graphical artifacts during the cropping step.
EDITOR = "gimp"
import base6... | [
"rf@rufflewind.com"
] | rf@rufflewind.com | |
3cfe0cdef569e2e41d6ef6fc56ed2ce3d29a3075 | d0f06e561a10fc7d5792ac9d6d3f2884854148f5 | /graphics.py | d295be5d95894aa78ef3dfaa5a05fce5343b82a2 | [] | no_license | miguelf6022e23/Game | 268856f7d3cce8ada3f8281677cf95770ffbb05a | b68da41327d226f2f74d9a4d282dd4e4f23c95fb | refs/heads/master | 2021-01-19T08:16:32.629794 | 2017-07-09T23:41:16 | 2017-07-09T23:41:16 | 82,078,931 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,661 | py | import pygame
#-------set colors-----------------------------------------
black = (0,0,0)
white = (255,255,255)
red = (255,0,0)
green = (0,250,0)
blue = (0,0,250)
gray = (255/2,255/2,255/2)
class graphics:
def __init__(self,gdisp,dispW=1200,dispH=675):
self.gdisp = gdisp
self.imgs = []
sel... | [
"miguelf6.022e23@gmail.com"
] | miguelf6.022e23@gmail.com |
54ff96ab34c33c8f01b1916ca42287abe1003e46 | 353def93fa77384ee3a5e3de98cfed318c480634 | /.history/week01/hoework01/gettop10frommaoyam01_20200626092144.py | 117a3cb23b43109ab0bbd9c834519eb7bb082518 | [] | no_license | ydbB/Python001-class01 | d680abc3ea1ccaeb610751e3488421417d381156 | ad80037ccfc68d39125fa94d2747ab7394ac1be8 | refs/heads/master | 2022-11-25T11:27:45.077139 | 2020-07-19T12:35:12 | 2020-07-19T12:35:12 | 272,783,233 | 0 | 0 | null | 2020-06-16T18:28:15 | 2020-06-16T18:28:15 | null | UTF-8 | Python | false | false | 2,464 | py | # 使用requests,bs4库,爬取猫眼电影top10的电影名称、电影类型、上映时间,并以utf-8的字符集保存到csv文件中
import requests
from bs4 import BeautifulSoup as bs
maoyanUrl = "https://maoyan.com/board/4";
user_agent = 'Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/74.0.3729.169 Safari/537.36'
header = {
'Conten... | [
"31039587+ydbB@users.noreply.github.com"
] | 31039587+ydbB@users.noreply.github.com |
568b6b3fb346131d30e415272fa58786c1e62fe9 | b0d5a4f2238efcd48926aaa5d367b2222a63578f | /src/models/test_generic_model.py | aebcb8f2eb1d4da3024114eb61c622a5c48b7fdb | [] | no_license | UpStride/classification-api | b830673745fd3d7ee38c2bc0c7d12d9196bb9d0d | 2b08b90ed8af9c2f006118a19f4ef95df010a83e | refs/heads/master | 2023-04-20T06:20:49.140532 | 2021-05-10T09:31:36 | 2021-05-10T09:31:36 | 300,656,391 | 26 | 9 | null | 2021-05-04T17:24:36 | 2020-10-02T15:21:55 | Python | UTF-8 | Python | false | false | 1,903 | py | import sys
import unittest
import tensorflow as tf
from unittest.mock import MagicMock, patch
from .generic_model import Layer, GenericModel
# sys.modules['upstride.type2.tf.keras.layers'] = MagicMock()
# sys.modules['upstride'] = MagicMock()
class TestLayer(unittest.TestCase):
def test_n_layers_before_tf(self):
... | [
"archimist.linux@gmail.com"
] | archimist.linux@gmail.com |
51e2ccdf5c07a3e00b107b7672bbdd45d36d822d | 4a9c962176eff7e66b1a65f917ddeb14ecfd678e | /src/model.py | c0b1db298ede2abfe5f16848d739d24f9663b1eb | [] | no_license | bdrad/report_categorization | 5da6be1e58c06f5fd8ba3c04bb44c91268b92706 | d51629e8a956316ccf627ab380abb620ae0443d7 | refs/heads/master | 2021-05-03T13:00:25.756899 | 2018-10-29T03:36:30 | 2018-10-29T03:36:30 | 120,506,922 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,348 | py | import fastText
import os
import pickle
from random import shuffle
HARD_NEG_DEFAULT = ["NEGEX_acute NEGEX_intracranial NEGEX_hemorrhage NEGEX_hernia NEGEX_hydrocephalus",
"NEGEX_acute NEGEX_abnormality NEGEX_abdomen",
"NEGEX_acute NEGEX_abnormality NEGEX_abdomen NEGEX_pelvis",
... | [
"swerwath@berkeley.edu"
] | swerwath@berkeley.edu |
528544d2649f9bc2cd2f05105c09bd53adea5883 | 72c3a92b9734cecb2c6386e6d5ec82f29b1795d7 | /Code/BaselineAlgorithms/tests/test_summarizers/test_luhn.py | a9ab4238ebfea3de4255ab6e74269730d510b12f | [
"MIT"
] | permissive | kobi-2/BengaliSummarization | 116c486dc9b243682b10fb1f2f15e52d3ae9db04 | 31334d12bd6bbd2db92f4b0ecc436e006cb96fd8 | refs/heads/main | 2023-04-17T07:53:11.858514 | 2021-04-26T12:32:27 | 2021-04-26T12:32:27 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,222 | py | # -*- coding: utf-8 -*-
from __future__ import absolute_import, division, print_function, unicode_literals
from Python.baselineAlgorithm.sumy._compat import to_unicode
from Python.baselineAlgorithm.sumy.nlp.stemmers.czech import stem_word
from Python.baselineAlgorithm.sumy.nlp.tokenizers import Tokenizer
from Python.... | [
"51800270+tafseer-nayeem@users.noreply.github.com"
] | 51800270+tafseer-nayeem@users.noreply.github.com |
905fdc71f9d57a3944c408c8c6ff2b9aa0fcde08 | a3a26ec5d5ac4aa034484f1652ed212ec7464baf | /MyEnv/lib/python3.7/random.py | a94db2a2b88f25a473923b96f4522ea4859cae3c | [
"MIT"
] | permissive | pratikagarwal2203/manim_simulations | b3aabe8eb0491dba0f0061b46387da4d6ad259c0 | 9d7820b894914afcb40e7f859387d9120110fa2b | refs/heads/master | 2020-05-06T12:30:29.916096 | 2019-04-21T13:18:11 | 2019-04-21T13:18:11 | 180,126,215 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 46 | py | /home/pratik/anaconda3/lib/python3.7/random.py | [
"pratikagarwal2203@gmail.com"
] | pratikagarwal2203@gmail.com |
f6b02ecc9e7dbc5d17a3c89e9e531acee9296b59 | 22ba0a26de1b281ddb66e8e665d611c5d1384092 | /utils/celery_model/celery_task/auto_check.py | 52608773a1aff44fe68729f3becb65e1ccdf8a3e | [] | no_license | zy6103/opstool | a049e43e22dedbea80abdaddd15f9e2064aa1bf1 | 646834e350affb0cf95fe233ab9d7033c32fd0ef | refs/heads/master | 2021-02-15T17:44:50.665969 | 2020-03-07T15:13:03 | 2020-03-07T15:13:03 | 244,917,017 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 456 | py | #!/opt/python3/bin/python3
# _*_ coding:utf-8 _*_
# Author: Yong
from celery_task.celery import cel
import os,sys
# ROOT_DIR = os.path.dirname(os.path.dirname(os.path.dirname(os.path.abspath(__file__))))
# sys.path.append(ROOT_DIR)
from utils.celery_model.remote_running import RemoteHost
@cel.task
def task_celery(ip... | [
"zhaoyong@abc.123"
] | zhaoyong@abc.123 |
5e8efb0f540d3c1f1368da655d6f19849506487b | 0a3f1290d1df0c0dcdbb1ff6e6f6c0c4fb05461e | /xsqlmb/src/dao/Xdb.py | 7bd833a62254635b426a19bdf959ce8ea6812417 | [] | no_license | xx-sec/tengine-mosecruity-logdev | 8f64ca26bd75c660910294e3c87b064652ea1423 | af9c3e28a738fe8a610bb8f837f56ac01f84fa55 | refs/heads/master | 2021-06-23T12:43:10.791552 | 2019-09-02T08:26:11 | 2019-09-02T08:26:11 | 192,167,234 | 2 | 1 | null | 2021-06-10T21:35:40 | 2019-06-16T08:22:22 | Python | UTF-8 | Python | false | false | 610 | py | from xsqlmb.src.cfgs.basicConfig import DATABASES
class XdbManager():
def __init__(self, db_name=DATABASES["default"]["NAME"]):
self.db_name = db_name
def _create(self):
from xsqlmb.src.ltool.sqlconn import sql_action
sql_action("""CREATE DATABASE {db_name} DEFAULT CHARACTE... | [
"sing2x@example.com"
] | sing2x@example.com |
66aecc6bd32f630fc02a0fb64b878c5ec48930ca | e23e3f645c640691c6150cbf19c76ed3dbd20abd | /Graphs/bfs.py | 1d0979ff7972f0cb2023681c0535792ad8e9fbba | [] | no_license | ravikumarvj/DS-and-algorithms | 178c97ed5ad98d9611b3e457c8af5879afd2f78d | 7eecc383c206d38bbc0e566a9c45f75aa147e9c2 | refs/heads/master | 2021-04-15T09:03:07.327210 | 2018-10-21T06:17:11 | 2018-10-21T06:17:11 | 126,145,982 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,679 | py | ### COPIED ### VERIFIED
from digraph import DiGraph
from queue import Queue
from queue import LifoQueue
from graph import NGraph
from time import time
vis = set()
def dfs_rec_alt_r(graph, start, visited):
print(start, end=' ')
for neigh in sorted(graph.vert_list[start].get_neighs()):
if neigh not in... | [
"ravikumarvj@gmail.com"
] | ravikumarvj@gmail.com |
cff3977d4479674d5ad613e5cf07ee5c36761581 | 58afefdde86346760bea40690b1675c6639c8b84 | /leetcode/knight-dialer/403821504.py | fe51e2c85fa1fd0b3cc504be5cf71dc4954c155d | [] | no_license | ausaki/data_structures_and_algorithms | aaa563f713cbab3c34a9465039d52b853f95548e | 4f5f5124534bd4423356a5f5572b8a39b7828d80 | refs/heads/master | 2021-06-21T10:44:44.549601 | 2021-04-06T11:30:21 | 2021-04-06T11:30:21 | 201,942,771 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 613 | py | # title: knight-dialer
# detail: https://leetcode.com/submissions/detail/403821504/
# datetime: Sat Oct 3 15:34:15 2020
# runtime: 2428 ms
# memory: 45.6 MB
class Solution:
def knightDialer(self, n: int) -> int:
@lru_cache(None)
def dp(i, k):
if k == 0:
return 1
... | [
"ljm51689@gmail.com"
] | ljm51689@gmail.com |
92f4baaf68b75d4190c8f61e3040ac41cea3c0ac | 2b1a812e9da56dbdd4f067a7046da0db5ab924a1 | /api.py | 0035858130d1b6fd3b8df96cfbc0aaf794ecb5b5 | [] | no_license | johnmave126/filmsoc-website-backend | be94be6b704a265ece9d58b9c3dc8ca42076092a | a52aabe3958e02f173bd4e4f9469464c4ce8060f | refs/heads/master | 2020-03-28T18:30:51.824939 | 2014-03-16T16:41:33 | 2014-03-16T16:41:33 | 7,338,872 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 34,417 | py | import uuid
from datetime import datetime, timedelta
from flask import g, jsonify, render_template, request, json, Response
from peewee import DoesNotExist, fn
from flask_peewee.rest import Authentication
from flask_peewee.utils import get_object_or_404
from app import app
from auth import auth
from models import *
f... | [
"johnmave126@gmail.com"
] | johnmave126@gmail.com |
9dd78de987467b25f55fa5a03f8194ba29b5762a | 22ca7f36830e41b016c75ade39839a9f601cda79 | /cwiczenia/l5/build_automata.py | 6ba6b07f48ba0f01835f029dfcbfb6f50249251f | [] | no_license | huntekah/PTX | bc4fd5a0aef853b8fc561a3ff1f4696f33fd2c8a | 6fd2b1a3aeaecab7ce380bc4fadc026ded53338c | refs/heads/master | 2022-04-01T09:50:21.211603 | 2020-01-22T09:52:54 | 2020-01-22T09:52:54 | 212,548,289 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 678 | py | #!/usr/bin/env python
"""
Zbuduj automat z liczby słów
cat words | ./basename $0 > output
Author:
Krzysztof J.
"""
import sys
import argparse
def build_automata(words):
max_state = 0
words = [ x.strip() for x in words ]
for word in words:
max_state += 1
print(f"0\t{max_state}\t{word[0]}"... | [
"huntekah@gmail.com"
] | huntekah@gmail.com |
9b319b16245499c1e69d6723bd3bee7e380917d4 | 3efc840ece75aaabab8bca8362da782ac9367f31 | /watchlist/watchlist/views.py | 77a366d046d9afa050e6e3297d8e879facadf29d | [] | no_license | yao-yong-kang/flaskweb | dd6decacc63b65b1b294364cb5446de7c9c7700b | 5531c7f27db9d71d5efef584590c071d3130d4d3 | refs/heads/master | 2023-01-21T15:23:39.735178 | 2020-04-19T09:58:16 | 2020-04-19T09:58:16 | 252,342,990 | 1 | 0 | null | 2020-04-08T07:44:40 | 2020-04-02T03:09:53 | Python | UTF-8 | Python | false | false | 3,210 | py | from watchlist import app,db
from flask import Flask,url_for,render_template,request,flash,redirect
from flask_login import login_user,logout_user,login_required,current_user
from watchlist.models import User,Movie
# views 视图函数
@app.route('/',methods=['GET','POST'])
def index():
if request.method == 'POST':
... | [
"2670211238@qq.com"
] | 2670211238@qq.com |
b8124bf03ffbbd893618818acacf5f2824ca41c7 | b548dd065df175b3bf2e49d8be84ae284382ba7d | /curvature/hyper.py | b8ce109a0afa1dad0a0bfa59bbbf5a66c7b5d04b | [] | no_license | thudzj/BayesAdapter | 29b77dc4a66b68cc53ea8785d548a252739aab67 | 6f34f739a89b4d7d6442433a9587d7d7414143a8 | refs/heads/master | 2023-03-25T21:56:43.934240 | 2020-09-30T15:00:14 | 2020-09-30T15:00:14 | 299,942,395 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 10,654 | py | import os
import warnings
import numpy as np
import skopt
import torch
import torchvision
import tabulate
import datasets
from lenet5 import lenet5
from resnet import resnet18
from evaluate import eval_bnn
from sampling import invert_factors
from utils import (accuracy, setup, expected_calibration_error, predictive_e... | [
"dengzhijiethu@gmail.com"
] | dengzhijiethu@gmail.com |
9ce90c907be62041616668e0e0bf7cb0a7aac60f | 4b0e06ba4a68c17d0d6c36f33de7be3ea33132a1 | /p1_aula5/63.py | aeb270d2053f7d6f02f80512c446cded9eff2cbd | [] | no_license | lucasmsantini/lucasmsantini | bdba7b6802d8b915cec1c40a2dc1b7c6e80ec48b | 647fc41a85bb301a00aaaf5a39a84402ba021993 | refs/heads/master | 2023-05-15T04:00:44.779245 | 2020-08-03T17:57:16 | 2020-08-03T17:57:16 | 259,648,959 | 0 | 0 | null | 2021-06-02T02:44:27 | 2020-04-28T13:44:55 | Python | UTF-8 | Python | false | false | 281 | py | print('Sequência Fibonacci')
print('-='*20)
n = int(input('Quantos nºs deseja mostrar? '))
t1 = 0
t2 = 1
print('{} - {} - '.format(t1, t2), end='')
cont = 3
while cont <= n:
t3 = t1 + t2
print('{} - '.format(t3), end='')
t1 = t2
t2 = t3
cont += 1
print('Fim') | [
"lucas.santini@nddigital.com.br"
] | lucas.santini@nddigital.com.br |
0f36b6bdb8493ca2f323b7a397d0a97376b2c11a | 1029fb700c0237cfb15d123150ab36ebd896f036 | /py3/SitcpRbcp.py | 451275972e9a2cd83e349dbfef96157da0be9677 | [
"MIT"
] | permissive | h-sendai/SitcpRbcp | cfae7659b6081053b7f82f9a4449d2f4f0e21d8f | df4d5fd09be0af5f03367d0cb600e2342e3e2719 | refs/heads/master | 2022-07-06T03:19:48.146119 | 2022-06-21T07:56:24 | 2022-06-21T07:56:24 | 177,493,906 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 9,847 | py | #!/usr/bin/env python
r"""Slow control module for SiTCP
This module allows you to use SiTCP RBCP (Remote Bus Control Protocol).
The specification of the SiTCP RBCP is available at
https://www.sitcp.net/
Sample code for read:
#!/usr/bin/env python
import sys
import socket
import SitcpRbcp
def main():
rbcp = Si... | [
"hiroshi.sendai@kek.jp"
] | hiroshi.sendai@kek.jp |
7089ce2997caa0906fdb6ca385e862bf3d1ffb8e | a5f95d0564f03191b75171b00bfbaf25a86e57f1 | /hathi-0-match-registrations.py | 2eb85d6f28d5bf3537dc9ec9cfc9db82e90c9d9d | [
"LicenseRef-scancode-public-domain",
"MIT"
] | permissive | leonardr/cce-python | ec9b96f13c59abfa44b050be6762727f924b7ffc | 4240ad3f175c7b74ca160e260fa71d624b7681ca | refs/heads/master | 2020-06-28T18:47:47.078133 | 2019-09-12T20:39:50 | 2019-09-12T20:39:50 | 200,312,152 | 36 | 2 | MIT | 2019-08-22T12:46:40 | 2019-08-03T00:10:55 | Python | UTF-8 | Python | false | false | 13,396 | py | import sys
import Levenshtein as lev
from pdb import set_trace
from model import Registration
import datetime
import re
import json
from collections import defaultdict
# Ignore CCE entries if they have more than this many matches on the
# IA side.
MATCH_CUTOFF = 50
# Only output potential matches if the quality score... | [
"leonardr@segfault.org"
] | leonardr@segfault.org |
ed0421d536864243149bdf2d9791422d4d87cb1f | b0377db122ede07c751df50b8db03bfd4ea1cce5 | /26.py | fa142e8e50f776956d120031b0e36c9e536d95de | [] | no_license | pokerSeven/leetcode | 766227aea17dacc1b99edeba7171543be5732895 | 7e8fc8ca679e9d16fc7c14b32b169f2a2b8cfa1c | refs/heads/master | 2020-12-02T18:01:44.998540 | 2017-10-31T07:13:50 | 2017-10-31T07:13:50 | 59,923,594 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 765 | py | # -*- coding: utf-8 -*-
"""
26. Remove Duplicates from Sorted Array
Given a sorted array, remove the duplicates in place such that each element appear only once and return the new length.
Do not allocate extra space for another array, you must do this in place with constant memory.
For example,
Given input array num... | [
"cxlhjwow@163.com"
] | cxlhjwow@163.com |
19ec5d0d72904469323ba8e72d35df6a8cff605c | 496af99718087aaff328539ad773eea177acc388 | /buy_and_sell_stocks.py | d32db15b4cf26d3571cd87801086e78ef83141eb | [] | no_license | ReemmaMP/interview_questions | e440b6cc9c56f7f38ef852126a5a43ddd98d9a28 | 8051ed9f9d57d2a6e0688faf1129ba59011489ee | refs/heads/master | 2021-01-12T16:01:47.493316 | 2016-10-25T17:23:51 | 2016-10-25T17:23:51 | 71,921,332 | 0 | 0 | null | 2016-10-25T17:22:11 | 2016-10-25T17:22:10 | null | UTF-8 | Python | false | false | 1,085 | py | """
Say you have an array for which the ith element is the price of a given stock on day i.
If you were only permitted to complete at most one transaction (ie, buy one and sell one share of the stock), design an algorithm to find the maximum profit.
Example 1:
Input: [7, 1, 5, 3, 6, 4]
Output: 5
max. difference = 6-... | [
"abdulfaizp@gmail.com"
] | abdulfaizp@gmail.com |
cfa52e3568626146e12d1f7e13a70e2c3b5ad93a | a269c579f38218c2447ef920113a1ee1f01decee | /main.py | 5c74d979958a7b33f723bf180612879644120a4d | [] | no_license | woosteelz/CrawlingwithPython | dd1d03c5266b9867111b67db99e8cb3ab4281989 | 4fd46611e028ce2010684fc19f087a69c5a75c19 | refs/heads/master | 2023-02-09T15:04:41.832101 | 2020-12-17T23:28:05 | 2020-12-17T23:28:05 | 322,437,824 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 388 | py | from indeed import get_jobs as get_indeed_jobs
from stackoverflow import get_jobs as get_so_jobs
from jobkorea import get_jobs as get_jobkorea_jobs
from save import save_to_file
indeed_jobs = get_indeed_jobs()
so_jobs = get_so_jobs()
jobkorea_jobs = get_jobkorea_jobs()
jobkorea_jobs = list(filter(None, jobkorea_jobs))... | [
"woosteelz@naver.com"
] | woosteelz@naver.com |
cb119d28008471d35242b717de1bb8caade3bf26 | 1919e45e9e3dadc9f449804671991a4cec7d5790 | /webapp/app/logs/__init__.py | 4a07a21ad1b43836427de7e97f96a4df4c5c6e19 | [
"MIT"
] | permissive | rmward61/CROP | 55d6c250b5abc8bf01d94c89d6a078409a5af089 | d46522338ab35f9a80d40950403387e553a35d29 | refs/heads/master | 2023-04-22T23:12:09.041373 | 2021-05-10T11:41:08 | 2021-05-10T11:41:08 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 174 | py | from flask import Blueprint
blueprint = Blueprint(
'logs_blueprint',
__name__,
url_prefix='/logs',
template_folder='templates',
static_folder='static'
)
| [
"12182911+tomaslaz@users.noreply.github.com"
] | 12182911+tomaslaz@users.noreply.github.com |
84efd48c3dca8e62d86b033751b766bdc57958c5 | e8c8d203eb0107799f213c896fdc9d596afa72ef | /sparseConv/multitask/semseg/libs/cls_data_loader.py | b872b7fdfd660be41e5daacda389f70ac0d54ce8 | [
"MIT"
] | permissive | REAL-LAB/Scene-Recognition-in-3D | 021bc85620294572502d7b37d2337f65fa8f8459 | 8fb869e1f8e8ff48c6f1082bb75f60a562875fc5 | refs/heads/master | 2023-01-21T11:08:42.837348 | 2020-11-26T13:42:52 | 2020-11-26T13:42:52 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,536 | py | import torch, numpy as np, glob, math, torch.utils.data, scipy.ndimage, multiprocessing as mp
import math
import MinkowskiEngine as ME
from torch.utils.data.sampler import Sampler
import os,sys
from libs.pc_transform import get_transform
import copy
# scene type remapper
TYPE_CLASS_LABELS=('aparment','bathroom','bedro... | [
"shenhuan@student.ethz.ch"
] | shenhuan@student.ethz.ch |
a2f6f4bc17af8705d6be9946aaa92419fedca1a7 | 944c5ac6562e43826bb7738b95fe2f1221a5a130 | /machine/slack.py | 9543c42d9c46b5aecd8f25b4f3420459dbc2abdc | [
"MIT"
] | permissive | bvujnovac/breakbot | 7f8839be21572c565cddc4a0da55b612c8dc028e | 0e7f55fe22f74074395fb2c656c573fada7f57a9 | refs/heads/master | 2022-08-31T06:57:03.334249 | 2022-08-07T21:49:30 | 2022-08-07T21:49:30 | 202,620,752 | 0 | 0 | MIT | 2022-08-07T21:49:31 | 2019-08-15T22:42:30 | Python | UTF-8 | Python | false | false | 4,993 | py | from machine.singletons import Slack, Scheduler
class MessagingClient:
@property
def users(self):
return Slack.get_instance().server.users
@property
def channels(self):
return Slack.get_instance().server.channels
def retrieve_bot_info(self):
return Slack.get_instance().se... | [
"bvujnovac@gmail.com"
] | bvujnovac@gmail.com |
d908e5a9831b6cc33901c9951bf1ef18e5645522 | 874ad023c7084e7f364fd2406ac15691fa92ac19 | /resume.py | aea98ea71e8a7ece62ccf8de7543328429a857cf | [] | no_license | mejedi/py-ssl-test-gen | 649ac60809a17200682a8aa15424b061c211883c | 897505b0056b2a817f3ebca280af02a5474fcbe1 | refs/heads/master | 2021-01-17T15:11:21.992878 | 2016-05-31T12:54:34 | 2016-05-31T12:54:34 | 33,561,458 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,335 | py | from OpenSSL import SSL
import simulation as xsim
def sim_session_resumption(sim, with_ticket = False):
"""Simulate SSL connections utilizing SSL session resumption feature.
The first connection executes the full SSL handshake. The second
connection performs SSL session resumption via a session ID
... | [
"mejedi@gmail.com"
] | mejedi@gmail.com |
cf6302ee5592af07ff96cf030e450f95ba11e510 | 1c0aacf428073c01ac996d4d40898f1a13ae20c8 | /files/views.py | 009dab88ceea6a238a176bbd055fe3dc70c6ecd0 | [] | no_license | terryg/bearded-hipster | 76c53c85b20f5082fbcacc5c2c27e118acffebdf | bf8fa290c9ff93b9ebcebc14e0505b10d3217742 | refs/heads/master | 2020-06-03T20:10:49.717312 | 2007-03-28T01:33:55 | 2007-03-28T01:33:55 | 9,801,451 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,466 | py | from django.shortcuts import render_to_response
from django.http import HttpResponse
from django.http import HttpResponseRedirect
from foodproject.files.models import Entry
from time import gmtime, strftime, localtime, mktime, time
import os
import string
import re
import array
PATH_SERVER = '/Users/tgl'
PATH_WWW = ... | [
"tgl@rideside.net"
] | tgl@rideside.net |
826eb492ee47d65cd4bb95310e2864e6e0c53457 | 052655365e33b3f90fc44a2736cd5b9d4e273505 | /djangoformproj/djangoformapp/apps.py | 46c0bee74a6c5fb23c84afd7577df51abf9a207e | [] | no_license | Sayan172018/Codebase | 82b083f46460073d345e5850f4f39644c0ce4b02 | f308b856dddefc664137cdda25df77a62d85d471 | refs/heads/master | 2020-09-14T16:51:41.296989 | 2019-11-29T16:01:34 | 2019-11-29T16:01:34 | 223,190,855 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 106 | py | from django.apps import AppConfig
class DjangoformappConfig(AppConfig):
name = 'djangoformapp'
| [
"noreply@github.com"
] | noreply@github.com |
8b2d5d531bd1ce61f410ddb5515f23a706d71dec | 5e48c652d4ac0fe5735c4a43761de6c557f4fcc0 | /6 kyu/song_decoder.py | 4c15342648ec984de53883c060042be865a0d35d | [] | no_license | Medsabkhi21/codewars.com | 1e9f4ab0d2fc859b738023c43aefb07ddc33826c | af0e0d61c3a47fade0de58f9766079622c906b34 | refs/heads/main | 2023-04-23T06:54:32.636320 | 2021-05-10T23:01:51 | 2021-05-10T23:01:51 | 366,192,064 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 99 | py | def song_decoder(song):
wublessSong=song.replace('WUB', ' ')
return " ".join(wublessSong.split()) | [
"medsabkhi@gmail.com"
] | medsabkhi@gmail.com |
2380fab03abd3648f88932ddb49710953cd4e09a | 38c38cd78dd2d9b15cb0f96323873da5d32a8c2c | /ee/clickhouse/models/test/test_cohort.py | 3e109aa5e2d31f1d998358df4f55c6d44191dbf0 | [
"LicenseRef-scancode-warranty-disclaimer",
"LicenseRef-scancode-unknown-license-reference",
"MIT"
] | permissive | tirkarthi/posthog | dfe29039c1113255066733e7b78c9677e1a2eebb | 99b2f5aea195fb505d671ef74ce0f616631783bd | refs/heads/master | 2023-08-12T13:30:25.225936 | 2021-06-08T08:35:47 | 2021-06-08T08:35:47 | 242,179,872 | 0 | 0 | MIT | 2020-02-21T16:12:00 | 2020-02-21T16:11:59 | null | UTF-8 | Python | false | false | 17,020 | py | from datetime import datetime
from uuid import uuid4
import pytest
from freezegun import freeze_time
from ee.clickhouse.client import sync_execute
from ee.clickhouse.models.cohort import get_person_ids_by_cohort_id, recalculate_cohortpeople
from ee.clickhouse.models.event import create_event
from ee.clickhouse.models... | [
"noreply@github.com"
] | noreply@github.com |
03184a2f469e1ce27641847dc30183d3a658359d | f2a5680231e205dc49a083578d9bd90e4603036c | /Grokking-Coding-Interview-Patterns/14. Top K Numbers/KpointsClosestTwoOrigin.py | ef7a6e0c1f638611eb0b6307af2de741ced1381e | [] | no_license | flogothetis/Technical-Coding-Interviews-Algorithms-LeetCode | d592451f7d297fd52395e33dc67686e9990a663c | 7c8473fce4b5b5affbfde5ed8c39fdb89cbc77d4 | refs/heads/master | 2023-01-13T15:56:07.706164 | 2020-11-18T18:54:52 | 2020-11-18T18:54:52 | 281,101,823 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,047 | py | '''
Problem Statement #
Given an array of points in the a 2D2D2D plane, find ‘K’ closest points to the origin.
'''
from heapq import *
# Time Comp : O(NlogK)
# Space Comp : O(K)
class Point:
def __init__(self, x, y):
self.x = x
self.y = y
def __lt__(self, other):
self.euclidean_dist() > other.eu... | [
"flogothetis95@gmail.com"
] | flogothetis95@gmail.com |
9091c850df1cd68b0d5dd859a95410a8b0efdf37 | 2017fcdabddbdde71f70c3ee87fb8f71a74a6b7c | /test_snp.py | 2298fc076d2c82aee44be58375496f02433dec39 | [
"MIT"
] | permissive | Noobn00b/LSSTM | 4b182d82bd83d9b92eb79c17005316d51a0ce9c4 | d6e7da2d4c92537f2ea1ccbcac7b96d00e59a9e0 | refs/heads/master | 2021-01-03T04:56:41.872598 | 2019-06-12T19:54:17 | 2019-06-12T19:54:17 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 639 | py | import pandas as pd
from aiding_functions import load_obj
from Strategy import Strategy
import matplotlib.pyplot as plt
raw_data = pd.read_csv('./finance_data/raw_data.csv')
data_svm = pd.read_csv('./finance_data/raw_data_svm.csv')
data_stm = load_obj('data_stm')
C = 30
sig2 = 100
strat = Strategy(raw_data = raw_dat... | [
"ggc115@ic.ac.uk"
] | ggc115@ic.ac.uk |
f73f479e605321b60ed24838163882b728e952fb | 488dfea1687152188bb0a6ca38a9bd24594f7010 | /qiskit/transpiler/passes/calibration/builders.py | ee53551265388b2789dface04f34b9f347ba3ece | [
"Apache-2.0"
] | permissive | CoolProgrammerX/qiskit-terra | e5b00a8efd5aae8c2de4ff52836640c70f09729a | 6262127f9f18e4c01846ec23a757bf1c97624fd9 | refs/heads/main | 2023-07-19T07:49:07.296112 | 2021-09-07T16:32:01 | 2021-09-07T16:32:01 | 404,226,586 | 1 | 0 | Apache-2.0 | 2021-09-08T05:49:23 | 2021-09-08T05:49:23 | null | UTF-8 | Python | false | false | 18,071 | py | # This code is part of Qiskit.
#
# (C) Copyright IBM 2021.
#
# This code is licensed under the Apache License, Version 2.0. You may
# obtain a copy of this license in the LICENSE.txt file in the root directory
# of this source tree or at http://www.apache.org/licenses/LICENSE-2.0.
#
# Any modifications or derivative wo... | [
"noreply@github.com"
] | noreply@github.com |
3a82f21e1cee7978df599fc71b14f30cda101412 | 2505971657addeea4f2cf8bc78178d10503230b8 | /web_graph_house/urls.py | 1fc5b5778d0ef88cbe56c997943854d57d354be4 | [] | no_license | toroumm/web_graph_house | 2910bca01308ba7c62ebddc89da8999b2326a4b3 | dbf8009826b6367234e8d88ec2a04e001569e87b | refs/heads/master | 2021-01-25T09:09:07.167940 | 2017-06-09T23:42:05 | 2017-06-09T23:42:05 | 93,785,814 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 841 | py | """web_graph_house URL Configuration
The `urlpatterns` list routes URLs to views. For more information please see:
https://docs.djangoproject.com/en/1.11/topics/http/urls/
Examples:
Function views
1. Add an import: from my_app import views
2. Add a URL to urlpatterns: url(r'^$', views.home, name='home')
... | [
"toroumm@toroumm.local"
] | toroumm@toroumm.local |
98339983b1e4307347e91ea5bd70d06acc138f94 | bb26f1a453591503f29b50fec203d239a34ad9a3 | /Programs/Python/area_of_circle.py | 5f722866bbd3b7f806efb63582bd5e408fae9e74 | [] | no_license | tejas4m/All_Programs_and_algorithms | 95111a2775b2f6d5c86c863180fc25c033619491 | 3dfb7ed352e1730613efb9a321082adc53006f1c | refs/heads/main | 2023-08-02T17:39:56.315276 | 2021-10-07T10:55:20 | 2021-10-07T10:55:20 | 414,315,589 | 1 | 0 | null | 2021-10-06T17:51:13 | 2021-10-06T17:51:12 | null | UTF-8 | Python | false | false | 62 | py | r = 10.45
a = 3.14 * r * r
print("r =",r," Areaof Circle =",a) | [
"worldhacker2430@gmail.com"
] | worldhacker2430@gmail.com |
75051d09b67149f3380eaf69db28304e417cc616 | 13569261f1f7808aa2f9424a957358da77a7a949 | /Monet_Harkin/Bike/server.py | 755633b8d945d7b8a725af4c53ff9e9d3b02838b | [] | no_license | CodingDojoDallas/python-nov-2016 | 75049d114116330c1898ae5e3d1fd202a999da5d | a6a50cc7cd4f50b59459d995d2df4707417b8f1c | refs/heads/master | 2021-01-12T12:21:18.972855 | 2016-11-23T21:24:53 | 2016-11-23T21:24:53 | 72,453,587 | 0 | 13 | null | 2016-11-23T21:24:54 | 2016-10-31T16:07:05 | Python | UTF-8 | Python | false | false | 792 | py | # Monet Harkin - Bike OOP test
class Bike(object):
def __init__(self, price, max_speed):
self.price = price
self.max_speed = max_speed
self.miles= 0
def displayInfo(self):
print "Price: "+ str(self.price )
print "Max speed: "+ str(self.max_speed)
print "Miles: "+ str(self.miles)
def ride(self):
self.... | [
"mpxluv@msn.com"
] | mpxluv@msn.com |
04d85229140105d80808751baa8a53c7abcfbc20 | 8ff51cce23c87cb4e0452abf41b84881924e26eb | /BackUp/DG_Project_BoB_OnetoMany(ParametrizAmount)/manage.py | 321f33b43f1efad20834bf073156319151d25150 | [] | no_license | bodianli/Generat_Fake_Data | 1052f13b469ff576650598f221cb849112de742a | 7ef884ac2042fb92c1b59597355abd956a0eaaee | refs/heads/master | 2023-03-08T01:16:24.343485 | 2021-02-23T20:10:13 | 2021-02-23T20:10:13 | 341,676,777 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 556 | py | #!/usr/bin/env python
import os
import sys
if __name__ == '__main__':
os.environ.setdefault('DJANGO_SETTINGS_MODULE', 'DG_Project_BoB_OnetoMany.settings')
try:
from django.core.management import execute_from_command_line
except ImportError as exc:
raise ImportError(
"Couldn't im... | [
"lbd941223@gmail.com"
] | lbd941223@gmail.com |
d9644ab2aef2df384bac70eef10e261897063007 | 2a58bd754831cc6535d4ecc429514d46dc2d961a | /contours_detection_arduino_control.py | d1d6b8e60823e2916701945b6bfa856fe92e3208 | [] | no_license | sampritip/Shape_Detector | 61e5b387e58d53aa2bceabe0a5055138bfb5c690 | 26eafb581e9398eaf67b10c7ded0b9f5af8433ac | refs/heads/main | 2023-06-24T06:48:13.630704 | 2021-07-24T02:59:25 | 2021-07-24T02:59:25 | 388,883,165 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,062 | py | import cv2
import numpy as np
from pyfirmata import Arduino, util
import time
board = Arduino('COM5')
frameWidth = 300
frameHeight = 300
cap = cv2.VideoCapture(1)
cap.set(3,frameWidth)
cap.set(4,frameHeight)
def empty(a):
pass
cv2.namedWindow("Parameters")
cv2.resizeWindow("Parameters",300,300)... | [
"noreply@github.com"
] | noreply@github.com |
92caf26cec36f1b861f02eecb01b7e2651228cf0 | 52b812e8da01367511d98debcd338986bce8aada | /Mathmatha/mathmatha.py | 8552de2bb86017e85db58a4f82347793e89b879c | [] | no_license | Paul-Michaud/BreizhCTF-2k16 | 47d0029c4e5bcfd3f62cae6c79d57a756e48f106 | 84184ae0427e5840b68e8ebe6866dbd9eaa58271 | refs/heads/master | 2021-06-01T04:31:43.737751 | 2016-05-03T16:38:50 | 2016-05-03T16:38:50 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,638 | py | #IT'S WORKING SO I DON'T CARE !
import urllib2
import hashlib
import itertools
import socket
import numpy as np
if __name__ == '__main__':
s = socket.socket(socket.AF_INET, socket.SOCK_STREAM)
s.connect(("10.19.127.222",41000))
s.settimeout(600)
#s.sendall("0")
data = s.recv(9999)
for num in ... | [
"paul.du56@gmail.com"
] | paul.du56@gmail.com |
81f06a3c3d2539e16c495fe0ba2b0486850a8aca | 7d7a3553729fcedad45cdd6fd77865ccbb245f23 | /将excel导出成dll/Run.py | ee77a52700d3f850146f213254f33ae18a7507d8 | [] | no_license | paoshuipao/exportDll | 40838f5d837adf848d87f01254c0f7c3abcbe96b | 68ee7f74726421cb4bfe33da256122f2215dd715 | refs/heads/master | 2020-03-12T14:49:20.898290 | 2018-04-23T16:21:19 | 2018-04-23T16:21:19 | 130,676,985 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 7,490 | py | #coding:utf8
import os
import sys
import xlrd
import json
import shutil
print 'platform', sys.platform
platname = sys.platform
encodeType = 'gbk'
if platname == 'darwin':
encodeType = 'utf8'
xlsfile = u"配置表"
iconfig = '''
using System.Collections;
namespace PSPUtil
{
public class IConfig
{
public int id;
... | [
"1016837056@qq.com"
] | 1016837056@qq.com |
256daba98bb5fd3243c913d51345d43bbe19b75a | 9214736766cce5399cf0d178b1398438fc40357d | /examples/reconfigurable_radio_power/fitness_script.py | b0de944cef7cf06c61ef7588267d230e52ec7d20 | [] | no_license | CustomComputingGroup/MLO | daaa391984a7b795354e518563733c98692b460c | 3af52321da6a5bfb3b3cc04df714eb04250e157c | refs/heads/master | 2021-01-01T19:34:15.891410 | 2013-05-21T16:23:26 | 2013-05-21T16:23:26 | 7,650,010 | 0 | 1 | null | 2019-01-21T19:53:47 | 2013-01-16T17:12:56 | Python | UTF-8 | Python | false | false | 8,467 | py | import math
import operator
import csv
from deap import base
from deap import creator
from deap import tools
from numpy import *
from copy import deepcopy
from numpy.random import uniform, seed,rand
cost_maxVal = 1.0
cost_minVal = 0.0
initMin = -1
initMax = 1
global reconfiguration_time_set
rotate = False
#aecc ... | [
"liutianchi@yahoo.com"
] | liutianchi@yahoo.com |
15ed73aa9d59827398ca3d5f8fe89d7baaf23d8d | f5645f685c8be36711f71c3a6763d6a4f93788b5 | /sandbox/settings/test.py | 9ef14ae7a9e7f1cd9b73a4a8de05e269cc2be55b | [
"MIT"
] | permissive | pincoin/rakmai | ef034c6b6d5501cd433869446275f4f3b622a73b | fe41fd0ab88bf143e65b450ceb798741d0f80330 | refs/heads/master | 2023-03-02T13:24:10.885714 | 2023-02-27T14:37:10 | 2023-02-27T14:37:10 | 112,416,258 | 13 | 4 | MIT | 2023-02-15T18:54:11 | 2017-11-29T02:34:15 | JavaScript | UTF-8 | Python | false | false | 2,098 | py | SECRET_KEY = 'rakmai_fake_key'
INSTALLED_APPS = [
'django.contrib.admin',
'django.contrib.auth',
'django.contrib.contenttypes',
'django.contrib.sessions',
'django.contrib.messages',
'django.contrib.staticfiles',
]
INSTALLED_APPS += [
'mptt',
'taggit',
'django.contrib.sites',
'a... | [
"pincoins@gmail.com"
] | pincoins@gmail.com |
e9692a13fdee83b0b0144047bd00cff5f3640179 | 2df463afc8c1dad80b5e3132c8e945d0b2d606e3 | /exploratory_data_analysis/utils.py | de0811c6c413ecdc5dbcb79d6acfc5cb6632692b | [] | no_license | DaviRamos/ml-utils | 791de59ea8ee2f99629185f39d34a000e48fa4ec | de812c0a6eaaca79b1b582a9daba84cd66b42180 | refs/heads/master | 2022-11-22T19:56:37.471355 | 2020-07-25T19:14:16 | 2020-07-25T19:14:16 | 295,758,490 | 1 | 0 | null | 2020-09-15T14:43:47 | 2020-09-15T14:43:47 | null | UTF-8 | Python | false | false | 1,678 | py | # -*- coding: utf-8 -*-
"""
Created on Sat Sep 28 19:42:30 2019
@author: Jessica Cabral
"""
############################################################################
# TOOLS SCRIPT #
#########################################################################... | [
"jessica_5548@hotmail.com"
] | jessica_5548@hotmail.com |
c5758e2074eda4a844f6e212dc956b083fe001e8 | 5e6c27a68ccabe0f8b1981536cd1a23de6ae3522 | /fixed_queue_test.py | 988f2f1d8aa6eb7fb22f5c099a13d7036b8d6dbc | [] | no_license | fedecaccia/data_structures | 14513d0fad07a195ae69dc0a8cb11087c5fc0200 | 74aa9c553712b0f18a255940495ed6e3ff2c76e0 | refs/heads/master | 2020-10-01T05:07:51.420008 | 2019-12-17T00:30:45 | 2019-12-17T00:30:45 | 227,465,085 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,193 | py | import pytest
from fixed_queue import FixedQueue, FixedQueueLinkedList
@pytest.fixture
def empty_queue():
q = FixedQueue(0)
return q
@pytest.fixture
def new_queue():
q = FixedQueue(2)
return q
def test_size(empty_queue, new_queue):
assert(len(new_queue) == 0)
assert(len(empty_queue) =... | [
"federicoagustincaccia@gmail.com"
] | federicoagustincaccia@gmail.com |
d19aa8bff94b8449918f14546fde67f6fd21762a | a76cd3e9e90cc835e5937d66e5e6ec9a2e64b9c9 | /main.py | 811b99f09fe3fb1f7ce8a58d3683473365f5d618 | [
"MIT"
] | permissive | cgmv123/CS-534 | 0b7e0b3a81ca370cb5169b7fad3470f241be62b0 | 32c13454eb8b7fc7b5c733eae5d4144805671544 | refs/heads/master | 2020-03-29T07:45:05.165180 | 2018-12-13T18:39:50 | 2018-12-13T18:39:50 | 149,677,466 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,493 | py | import cv2
import sys
from src import extract
from src import match
from src import stitch
import numpy as np
from src import input
from src import frames
from cv2 import createStitcher
import time
OUTPUT = "output/"
SCALE = .5
WARP_PARAM = 1650
def drawMatches(imageA, imageB, kpsA, kpsB, matches, status):
# ini... | [
"jasonmohoney@gmail.com"
] | jasonmohoney@gmail.com |
025db735a8bb10085e682efa3925f9e3af939983 | 3d44f334acdee27ce14e5c78d2ac82c11ffd27da | /resources/percuiro_lib/percuiro/util.py | 6da92e1de45852c7e9c134cbc8099fc21484ee76 | [] | no_license | dbsr/plugin.video.percuiro.tacobell | ea94bd56f3ebf2a1b2957b243634feaec52da01e | f30af66f1388008e7c11e836361e42a27dc6835a | refs/heads/master | 2020-03-29T18:14:13.105914 | 2014-04-11T10:39:12 | 2014-04-11T10:39:12 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,119 | py | # -*- coding: utf-8 -*-
# dydrmntion@gmail.com
import os
import re
import subprocess
from urlparse import urlparse
import urllib
from common import REAL_DEBRID_REGEX, PROVIDERS_THUMBNAIL_PATH, FILTER_EXTENSIONS
def clipboard_paste():
ret = ''
try:
prc = subprocess.Popen(['xclip', '-o'], stdout=subpr... | [
"daanmathot@gmail.com"
] | daanmathot@gmail.com |
dcd82fd2a59803baeb191e7c636fb4021b62689e | 56f5b2ea36a2258b8ca21e2a3af9a5c7a9df3c6e | /CMGTools/H2TauTau/prod/25aug_corrMC/up/mc/DY3JetsToLL_M-50_TuneZ2Star_8TeV-madgraph/Summer12_DR53X-PU_S10_START53_V7A-v1/AODSIM/V5_B/PAT_CMG_V5_16_0_1377544839/HTT_24Jul_newTES_manzoni_Up_Jobs/Job_46/run_cfg.py | d0f4e8c6b8e8c8ce3a1c19aadea1c9c7a03b7ca4 | [] | no_license | rmanzoni/HTT | 18e6b583f04c0a6ca10142d9da3dd4c850cddabc | a03b227073b2d4d8a2abe95367c014694588bf98 | refs/heads/master | 2016-09-06T05:55:52.602604 | 2014-02-20T16:35:34 | 2014-02-20T16:35:34 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,495 | py | import FWCore.ParameterSet.Config as cms
import os,sys
sys.path.append('/afs/cern.ch/user/m/manzoni/summer13/CMGTools/CMSSW_5_3_9/src/CMGTools/H2TauTau/prod/25aug_corrMC/up/mc/DY3JetsToLL_M-50_TuneZ2Star_8TeV-madgraph/Summer12_DR53X-PU_S10_START53_V7A-v1/AODSIM/V5_B/PAT_CMG_V5_16_0_1377544839/HTT_24Jul_newTES_manzoni_... | [
"riccardo.manzoni@cern.ch"
] | riccardo.manzoni@cern.ch |
6917050299f1823f1d2ee59d315284a2893e5b65 | 5775aad5976aa7c41db3631dfe081a0f295cd079 | /IntersectionOfTwoLinkedLists/solution.py | a52dae303c796a1786176d4656784566d380309e | [] | no_license | x2mercy/Leetcode_Solution | 6de44c065053cc2704595a2630bd6357d8611417 | 1063b075858978788990c67ac2542e9899ff0358 | refs/heads/master | 2021-08-28T11:41:51.497211 | 2017-12-12T04:19:37 | 2017-12-12T04:19:37 | 103,789,837 | 3 | 1 | null | null | null | null | UTF-8 | Python | false | false | 628 | py | # Definition for singly-linked list.
# class ListNode(object):
# def __init__(self, x):
# self.val = x
# self.next = None
class Solution(object):
def getIntersectionNode(self, headA, headB):
"""
:type head1, head1: ListNode
:rtype: ListNode
"""
a=headA
... | [
"noreply@github.com"
] | noreply@github.com |
50f57cdf741ff10781381d4764ff69474278b5b8 | 124b9b3aa4d6c4e1014e2119a32b711c9bfe3b78 | /Problem Solving/Birthday cake candles.py | b40d1a9bc11bff36ff280ded0ffb1d7af6ec3d14 | [] | no_license | Devendra33/HackerRank | 5f4929c1161fade3ed1a593b847403943e757bdb | 980f8577677e24da654627b35fbfccb69b17f218 | refs/heads/master | 2022-12-14T05:13:30.405197 | 2020-09-12T09:24:31 | 2020-09-12T09:24:31 | 264,129,537 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 554 | py | #!/bin/python3
import math
import os
import random
import re
import sys
# Complete the birthdayCakeCandles function below.
def birthdayCakeCandles(ar, ar_count):
cnt = 0
num = max(ar)
for i in ar:
if i == num:
cnt += 1
return cnt
if __name__ == '__main__':
fp... | [
"noreply@github.com"
] | noreply@github.com |
d82ef6bbea01a30b187c3429d68858efdbac650b | a8264d7a20880722ff42e8195e500e451dd24902 | /first_project/settings.py | 14c452e168bcf069a8d499fab61ebcee42c019ff | [] | no_license | suraj-kanbarkar/UserRegistration | c6e1784568202250207188f84a9ea057bc4c4952 | d7db419c1167dfd32fe6540639278830ef58d46b | refs/heads/master | 2022-09-07T15:36:18.353731 | 2020-05-29T08:50:57 | 2020-05-29T08:50:57 | 267,568,891 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,113 | py | """
Django settings for first_project project.
Generated by 'django-admin startproject' using Django 3.0.2.
For more information on this file, see
https://docs.djangoproject.com/en/3.0/topics/settings/
For the full list of settings and their values, see
https://docs.djangoproject.com/en/3.0/ref/settings/
"""
import... | [
"suraj.kanbarkar@grssl.uk"
] | suraj.kanbarkar@grssl.uk |
908221d3c6b4f0613a9fba45fa811bc1671512b0 | d8d8bcae3199c75907450e86e4a966e6ee385957 | /network/models.py | 1c1fc69f2ed2190266738de89cd17a89b246dc14 | [] | no_license | MigueSnow20/Django-Tutorial | 19ef178148e2a895e81c0b338fee02fdeb9d65e3 | 21471e81ad2afd305366eb05d1428a1df079b9e3 | refs/heads/main | 2023-08-22T10:59:37.471119 | 2021-09-15T03:12:27 | 2021-09-15T03:12:27 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 762 | py | from django.db import models
from django.contrib.auth.models import User
from django.utils import timezone
from django.conf import settings
import uuid
class Post(models.Model):
identifier = models.UUIDField(primary_key=True, default=uuid.uuid4)
slug = models.SlugField(max_length=250)
description = models.... | [
"lucianolivares.lo@gmail.com"
] | lucianolivares.lo@gmail.com |
ca93204a00373b06690345a47392831fa59520db | 477ddbb411b0b9d7431eed8e1d5be155f4940e05 | /feedly/serializers/base.py | 06687c2c8bd6ca74134fb5225350beb2598cde3b | [
"BSD-3-Clause"
] | permissive | atefzed/Feedly | 9ba531d183637e9d42bfdade4c831825f549e2d1 | f3824b95cefc360ebbfc2d2166b53a5505f49fbc | refs/heads/master | 2021-01-15T17:07:40.795228 | 2013-05-07T22:17:15 | 2013-05-07T22:17:15 | 10,055,814 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 41 | py |
class BaseSerializer(object):
pass
| [
"thierryschellenbach@gmail.com"
] | thierryschellenbach@gmail.com |
48177a5e8be0a8e6387f1dfd7aa3912c48396476 | 6e3b3a56e44c33155d59638bb015be9c15e5e7ce | /product/apps.py | ec534bd803a09a6f4614f9fcb000f0931613c0e3 | [] | no_license | maurxeugenio/cardapioz | 86658aea82e4899106f73ae16e09cc6b1a969751 | 7a4f79e3dfa532664e78066d5edef0a3c973f86d | refs/heads/master | 2021-05-02T07:26:25.035312 | 2018-01-27T01:44:28 | 2018-01-27T01:44:28 | 120,828,516 | 0 | 0 | null | 2018-02-08T22:59:39 | 2018-02-08T22:59:39 | null | UTF-8 | Python | false | false | 174 | py | from django.apps import AppConfig
class ProductConfig(AppConfig):
name = 'product'
verbose_name = 'Setor de produto'
verbose_name_plural = 'Setor de produtos'
| [
"maurx.dev@gmail.com"
] | maurx.dev@gmail.com |
2a9ff450f3c482b34eb8687346f3c7e4801cec7c | 50ba981bc65efea92f61c698cecfbbe3214a724e | /Django_Forms_Demo/Django_Forms_Demo/urls.py | 819f017ce66d33152fbe7e2a4d1447170c5cd234 | [] | no_license | shubhamjain31/demorepo | ff0a4283fc866ea94df1c340da430271daf93cb6 | 90639b8622e68155ff19bfec0bb6925b421f04cf | refs/heads/master | 2023-04-27T03:42:10.057387 | 2022-06-28T06:14:44 | 2022-06-28T06:14:44 | 229,792,545 | 1 | 0 | null | 2023-04-21T21:36:24 | 2019-12-23T17:04:22 | Python | UTF-8 | Python | false | false | 803 | py | """Django_Forms_Demo URL Configuration
The `urlpatterns` list routes URLs to views. For more information please see:
https://docs.djangoproject.com/en/3.2/topics/http/urls/
Examples:
Function views
1. Add an import: from my_app import views
2. Add a URL to urlpatterns: path('', views.home, name='home')
C... | [
"sj27754@gmail.com"
] | sj27754@gmail.com |
546a4af39360350465c0ca3bda6e5dabafad1e0c | 3208f15876e5ae0275366763f57380f383eae55b | /manage.py | baef8477b5382806b9d2514ca37998eb21f3ff95 | [
"MIT"
] | permissive | jpadilla/feedleap | 05d4abbd21408ec2c4d1f2a99aaba0fe22a7e3f7 | 06d87a680a4bd2ead550b3540e58a8c520a733ba | refs/heads/master | 2023-05-31T19:22:14.143515 | 2014-06-27T13:02:52 | 2014-06-27T13:02:52 | 9,079,296 | 1 | 1 | null | 2013-05-05T17:05:29 | 2013-03-28T14:53:25 | Python | UTF-8 | Python | false | false | 1,004 | py | #!/usr/bin/env python
import os
import sys
import re
def read_env():
"""Pulled from Honcho code with minor updates, reads local default
environment variables from a .env file located in the project root
directory.
"""
try:
with open('.env') as f:
content = f.read()
except ... | [
"jpadilla@webapplicate.com"
] | jpadilla@webapplicate.com |
69ab8318d7d56591fb47b9a3477baf39cf069ee7 | 882db26b6567feffc7f859eec2c57b2273b40c43 | /flaskwithwebsite(heroku)/otherfiles/scrapenamepic.py | b9cfd474b6bad2116a97b6cb5eb2de59e3dd544f | [] | no_license | gokulp01/student-management-system | 694d6060e29163ab9a009ecbffcf45750dc8ae76 | a923580eb1345b1ddf6358e79de754d80f65d102 | refs/heads/master | 2023-01-13T14:26:45.698222 | 2020-11-18T14:39:43 | 2020-11-18T14:39:43 | 290,752,201 | 1 | 1 | null | null | null | null | UTF-8 | Python | false | false | 345 | py | import requests
from bs4 import BeautifulSoup
from json import dumps
import urllib.request
url = r'D:\WEBDEV\SLCM API\homepage.html'
soup = BeautifulSoup(open(url).read(),features='lxml')
name = soup.find('span',{'id':'lblUserName'})
image = soup.find('img',{'id':'Repeater1_Image2_0'})
urlfinal = image['src']
print(n... | [
"karthikramakrishnan14@gmail.com"
] | karthikramakrishnan14@gmail.com |
d5b52b8524245f61acd2d4b18944962cbd6d4090 | 0ea9876ea7335899297bad0b85b1d75d636846a8 | /quickapp/models.py | 771a0f2675860e40e18e088dde1d63362473eee5 | [] | no_license | muhmmadAffan/Shopper | 77af31a0fba031669e3217298650a44cdac2aa90 | 3cd32b8528941b71e858e30cec6427a454b925ec | refs/heads/main | 2023-06-01T01:03:36.152023 | 2021-07-02T12:21:31 | 2021-07-02T12:21:31 | 382,255,328 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 845 | py | from django.db import models
# Create your models here.
class customer(models.Model):
customer_name = models.CharField(max_length=100)
postal_code = models.IntegerField()
email = models.EmailField(max_length=100)
def __str__(self):
return self.customer_name
class salesperson(models.Model):
... | [
"maffan@codexnow.com"
] | maffan@codexnow.com |
81cb94dc9dcae1e5ee3e377700a0e9eca4bb5cc3 | 3c8661eee71a7e0f264599d574f927e9b7d55e54 | /code/extrinsic_sphere_opt.py | 553df654a33b0f52c8f944c75ca5431da3caaf46 | [] | no_license | michaelzhang01/manifold_opt | b15139a8126983c3e8a3d393c3d5525d7402e7f0 | 057350595f1b0b6f5fd9b136cb87aa9723b56bc6 | refs/heads/master | 2022-12-19T19:18:02.429436 | 2020-10-17T09:59:32 | 2020-10-17T09:59:32 | 147,734,793 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,478 | py | # -*- coding: utf-8 -*-
"""
Created on Thu Jul 2 02:16:19 2020
Extrinsic Sphere Code
@author: Michael Zhang
"""
import numpy as np
from manifold_opt import ManifoldOpt
class ExtrinsicSphereOpt(ManifoldOpt):
def __init__(self, X, theta_init, lambda_init, iters=500,
filename="extrinsic_sphe... | [
"michaelzhang01@gmail.com"
] | michaelzhang01@gmail.com |
ac3f681ff49d500b4fa57354e421919c40815772 | d1bcd1a55221d52cab88f397183ee6492fc7f5a5 | /workmail-translate-email/src/translate_helper.py | 3fb6cccbe58ab4aa99341ff7ff29997ad198d655 | [
"Apache-2.0"
] | permissive | aws-samples/amazon-workmail-lambda-templates | fccd1b490d69a08b512e2e666d4a85000745b793 | d7b83d7f4499768f60fd115f5f995e1d8daccf89 | refs/heads/master | 2022-06-30T22:22:43.030710 | 2022-06-30T19:05:15 | 2022-06-30T19:05:15 | 168,240,710 | 39 | 18 | Apache-2.0 | 2022-06-30T19:05:16 | 2019-01-29T22:38:50 | Python | UTF-8 | Python | false | false | 1,323 | py | import boto3
comprehend = boto3.client(service_name='comprehend')
translate = boto3.client(service_name='translate')
def detect_language(text):
"""
Detects the dominant language in a text
Parameters
----------
text: string, required
Input text
Returns
-------
string
Rep... | [
"noreply@github.com"
] | noreply@github.com |
ee5becf7cc0e2b4eb31ae9929294f296e882bc85 | e75c9e26c181098c22a992a79ab4f4072ab50b57 | /tests/analyses/reaching_definitions/test_dep_graph.py | e01a74884b6d8f726af892ade127e90fdf6ac298 | [
"BSD-2-Clause"
] | permissive | mehrdad-shokri/angr | 3d93a830a909099a6899c2d7dac8f935f75c6f3a | 878dbec77260261c144df0bf3364606fd862141b | refs/heads/master | 2021-07-03T21:49:28.746502 | 2020-08-22T04:57:15 | 2020-08-22T04:57:15 | 150,834,717 | 0 | 0 | BSD-2-Clause | 2020-08-19T22:30:01 | 2018-09-29T06:56:02 | Python | UTF-8 | Python | false | false | 5,821 | py | # pylint: disable=no-self-use
from random import randrange
from unittest import mock, TestCase
import networkx
from angr.code_location import CodeLocation
from angr.knowledge_plugins.key_definitions.dataset import DataSet
from angr.knowledge_plugins.key_definitions.atoms import Atom, Register
from angr.knowledge_plug... | [
"noreply@github.com"
] | noreply@github.com |
d983c1aff3d7d0d86bb0014cdfdc082c9bdd1cc9 | c35067034cff76ccd5568abc15d745fc480f02cc | /config_db.py | ecfe65f53e92806bd69194ba99ae584eeb035c08 | [] | no_license | eneasmarques/item-catalog | 9c82c8374c7ba8f394a60bcd9cd049638e30731f | 088523f8fed50c691df867a225f1a76c0fe0d6c4 | refs/heads/master | 2020-07-10T18:24:31.666866 | 2019-08-26T21:53:13 | 2019-08-26T21:53:13 | 204,334,130 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 65 | py | # urls for database
DATABASE_URL = 'sqlite:///restaurantmenu.db'
| [
"eneasmarques@outlook.com.br"
] | eneasmarques@outlook.com.br |
6646cc717a3f4998c9ce1ffd9d3410843ee7e950 | cc657a33b4463d5651a780a24108757988f38146 | /todo.py | ff5ecec92faf6b684ddd113e79293135d26744de | [] | no_license | darcymeyer/command-line-todo-list | 7f8ed51e43f946461d2017c4a2de4a16eaeba788 | 54e751c1e265482a85defef235f93697f0f5803c | refs/heads/master | 2020-07-25T00:28:58.310069 | 2019-09-12T17:00:54 | 2019-09-12T17:00:54 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,917 | py | #!/usr/bin/env python3
import click
import json
import os
TODO_LOC = os.path.expanduser("~") + "/.todo/todo.json"
cli = click.Group()
@cli.command(name="init")
def initialize():
"""Initialize list, only run this once"""
home = os.path.expanduser("~")
try:
os.makedirs(home+"/.todo/")
except:
pass
if not os.... | [
"darcy2252755@gmail.com"
] | darcy2252755@gmail.com |
6d35dc56063d37130d751ccb5eac14538dc2bad1 | 044be0cb69c94bb2ce5dba4bc582f567ef6d979a | /Lib/site-packages/daphne/tests/test_http.py | 73c63404459b9715dc7f2bf549325687dea19df9 | [] | no_license | Dnnsmoyo/myenv | 3733e2c92cf8f04400cb947468ef28fd361acdcb | 4362d4c969eca71a9c73acc956489c54db477ea7 | refs/heads/master | 2020-03-21T08:27:15.724582 | 2018-06-22T20:07:47 | 2018-06-22T20:07:47 | 138,344,606 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,834 | py | from __future__ import unicode_literals
from unittest import TestCase
from asgiref.inmemory import ChannelLayer
from twisted.test import proto_helpers
from ..http_protocol import HTTPFactory
class TestHTTPProtocol(TestCase):
"""
Tests that the HTTP protocol class correctly generates and parses messages.
... | [
"dnnsmoyo@gmail.com"
] | dnnsmoyo@gmail.com |
8a300c2e51962fe9f209c488a57201f4b476e3f5 | 65ac8b463c09e7acf7d64b293cf169ef9674a38f | /classification_micro/binary_classifier.py | dec2939de1e8083aba3333df7bcefef2c8f28950 | [] | no_license | tatieliseeva/nuclei-classification | a129c881252c666cb5556fe37d3528b702e9c0d0 | 6ed9255f56b6242bde326f00a52e783df494bd20 | refs/heads/master | 2023-01-04T09:44:45.243212 | 2020-10-22T13:53:55 | 2020-10-22T13:53:55 | 225,068,183 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,334 | py | #!/usr/bin/env python3
# -*- coding: utf-8 -*-
"""
Created on Mon Dec 16 13:45:10 2019
@author: tati
"""
# uncomment if checkpoints are needed
#from keras.callbacks import EarlyStopping, ReduceLROnPlateau, ModelCheckpoint
import binary_utils as ub
#%% input generators & model skeleton
train, test = ub.create_generator... | [
"noreply@github.com"
] | noreply@github.com |
88e05384c3366b553d65a5bfe96227230b8a712e | 4c5e830bf63be15ec98a0445663fc3b573efde24 | /app/cart/admin.py | 4e0014dcb1c753a2001bcd52f463a07feea7c107 | [] | no_license | Eslamhathout/pm_task | 4e6072bdbd93a2ca8041d3b70e3f16e5e9ce547d | ad0c8edb95b97235a8a0123b88afe751e4a6ddf5 | refs/heads/master | 2023-07-21T10:22:13.429529 | 2021-09-05T21:06:27 | 2021-09-05T21:06:27 | 399,228,171 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 92 | py | from django.contrib import admin
from cart import models
admin.site.register(models.Cart)
| [
"i.a.hathout@gmail.com"
] | i.a.hathout@gmail.com |
03d5325ec088f2701d3826c732407eeba995016a | 6fa7f99d3d3d9b177ef01ebf9a9da4982813b7d4 | /g7sh7oLoArRLmM2ky_6.py | d4615fa5b39a2c4ba13bdd9812cce19b2372f521 | [] | no_license | daniel-reich/ubiquitous-fiesta | 26e80f0082f8589e51d359ce7953117a3da7d38c | 9af2700dbe59284f5697e612491499841a6c126f | refs/heads/master | 2023-04-05T06:40:37.328213 | 2021-04-06T20:17:44 | 2021-04-06T20:17:44 | 355,318,759 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,875 | py |
import re
def baconify(msg, mask=""):
d_key={
"uuuuu" :"a" ,
"uuuul" :"b" ,
"uuulu" :"c" ,
"uuull" :"d" ,
"uuluu" :"e" ,
"uulul" :"f" ,
"uullu" :"g" ,
"uulll" :"h" ,
"uluuu" :"i" ,
"uluul" :"j" ,
"ululu" :"k" ,
"ulull" :"l" ,
"ulluu" :"m" ,
"ullul" :"n" ,
"ulllu" :"o"... | [
"daniel.reich@danielreichs-MacBook-Pro.local"
] | daniel.reich@danielreichs-MacBook-Pro.local |
ee9753e59a4ee13fae080d5e3effa1f292f8f705 | ba63febebde629d72de66f71378ef0b589cb9c35 | /API's/mtg_api.py | 8aad716cf7468ec43e168ef617fe9c48967ae8bb | [] | no_license | 0king01243/CIT-129 | e456bc62815a6471521d8f435696016e5c398fe7 | f4dc6d49c60264bc10bf16a2ab52d7d7136f6432 | refs/heads/master | 2020-04-25T19:18:15.718552 | 2019-05-08T22:35:06 | 2019-05-08T22:35:06 | 173,014,928 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 423 | py | import os
path = input("What is the path you would like to go to: ")
while True:
os.chdir(path)
os.makedirs(input("What directory would you like to make"))
if input("Would you like to make another directory (yes/no): ") == "yes":
if input("Would you like to change the path (yes/no): ") == "y... | [
"owen.king273@ccac.edu"
] | owen.king273@ccac.edu |
a239106cef8442b230dac2f06621bbc87229ae02 | 70dfd771c9505bb225ac77eb9becf491c72630c9 | /RadiButtonsAndCheckboxes.py | 59668fc99f8b7714b47947a604aab6ed4a634e7b | [] | no_license | MLPriyareddy/AutomationWithPython | 39aa07951d0c5cde13dcfa90db3c92ef9811ea63 | 4f9af6b020aaadc27606ac689aa6421736eefe27 | refs/heads/main | 2023-01-03T18:11:30.693226 | 2020-11-02T22:09:36 | 2020-11-02T22:09:36 | 307,513,047 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 917 | py | from selenium import webdriver
from selenium.webdriver.common.by import By
import time
driver=webdriver.Chrome(executable_path="C:\ChromeDriver\chromedriver_win32\chromedriver")
driver.maximize_window()
driver.get("https://fs2.formsite.com/meherpavan/form2/index.html?1537702596407")
# Working with the Radio Buttons
s... | [
"sreejareddy.mandapati@gmail.com"
] | sreejareddy.mandapati@gmail.com |
15168dec4626c3febf115566723fbfa419c9adc1 | 609b28919f94af3b3dd7ede76d7fad659c0ca363 | /hangman.py | cebf8182373b865cad7996ee2a98806f04be1d0b | [] | no_license | susmithavegesna/Hangman | 810e9439e694e962b720c8ac129fded7fbe015a0 | 1ce238fa8c6f54472268032540d58bec008bd4ce | refs/heads/master | 2020-05-07T19:57:03.774036 | 2019-05-13T16:52:55 | 2019-05-13T16:52:55 | 180,837,854 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,588 | py | import random
import flask
from flask_sqlalchemy import SQLAlchemy
app = flask.Flask(__name__)
# Database
app.config['SQLALCHEMY_DATABASE_URI'] = 'sqlite:///hangman.db'
db = SQLAlchemy(app)
# Model
def random_pk():
return random.randint(1e9, 1e10)
def random_word():
words = [line.strip(... | [
"noreply@github.com"
] | noreply@github.com |
c2b0b0a629b76f22b52ad0579751e6e0d6e33ace | 0ec57fb1986512c8bff214658529df9f42d52fda | /origin/bonds/serializers.py | 0889a0a1e517b028cceb92b0efc07dd22302442b | [] | no_license | Etenil/PythonTechnicalTest | 0aecb85686589b7c2a8e22e0aec41f0cc93645c8 | e4958b815176dd73f4a56c70de696a01be170c13 | refs/heads/master | 2020-11-24T07:28:09.327851 | 2019-12-14T20:15:35 | 2019-12-14T20:15:35 | 228,029,353 | 0 | 0 | null | 2019-12-14T13:41:58 | 2019-12-14T13:41:57 | null | UTF-8 | Python | false | false | 1,267 | py | from rest_framework import serializers
from .models import Bond, LegalEntity
from django.contrib.auth.models import User
class UserSerializer(serializers.HyperlinkedModelSerializer):
class Meta:
model = User
fields = [
'username'
]
class BondSerializer(serializers.Hyperlinked... | [
"dev@etenil.net"
] | dev@etenil.net |
f6798ebfad5c33af8f1ba50e464abb3f065494b9 | 9b2772b377608d5d2ac104a54bbb107bf3f269e3 | /rewind/client/test/test_code.py | 08fc95e27d009f312dc1c094cd3f79b6bb4fe3c3 | [
"MIT"
] | permissive | JensRantil/rewind-client | fa4f995261c9c38a63f1362963c02a5eea87bbf4 | 3177f3fc1595678a093e03aca13cc92721c58330 | refs/heads/master | 2021-03-12T20:41:11.037641 | 2012-12-17T00:00:48 | 2012-12-17T00:00:48 | 6,010,472 | 2 | 0 | null | 2012-10-21T22:59:59 | 2012-09-29T15:56:52 | Python | UTF-8 | Python | false | false | 2,698 | py | # rewind-client talks to rewind, an event store server.
#
# Copyright (C) 2012 Jens Rantil
#
# This program is distributed under the MIT License. See the file LICENSE.txt
# for details.
"""Test code format and coding standards."""
from __future__ import print_function
import os
import pep8
import pep257
import unitte... | [
"jens.rantil@gmail.com"
] | jens.rantil@gmail.com |
2bdae1ebed565e28e97db48d2572f1ee884a22a6 | fef5cbf4db4e12d995c02a68537c3631fe71cbcd | /dominoes/skinny_board.py | f2ca2f733b5d91a6de7f2115b16fa0bc8681c76b | [
"MIT"
] | permissive | deniscsz/dominoes | ccecaabb651a9dfd5c725fcfabd0ce902a60ad60 | 9b5f0c34735aef9c4c165468bf0d4722d24ceeea | refs/heads/master | 2020-03-22T13:49:00.604586 | 2017-01-13T03:31:23 | 2017-01-13T03:31:23 | 140,133,372 | 1 | 0 | MIT | 2018-07-08T03:08:15 | 2018-07-08T03:08:15 | null | UTF-8 | Python | false | false | 5,089 | py | import dominoes
class SkinnyBoard:
'''
Python class for objects that represent a domino board.
A domino board consists of a series of dominoes placed
end to end such that the values on connected ends match.
This class reduces the memory required by each instance
by remembering only the values a... | [
"alanwagner333@gmail.com"
] | alanwagner333@gmail.com |
6069be8064002ba6e48ace2e422ed62d65f716d8 | 51888119e10cdff12dafb060a54824632edccf3f | /Folders/Python/stamps.py | 2a699233a77790833fb5c81c1d8085e8eff222c2 | [
"BSD-2-Clause"
] | permissive | kuchinal/lamakaha | b64511ad8c6d2b36da5a84a266b9e7a69acd3106 | 24e3b2ff53bcac2ad1c0e5a3b9afd4593d85f22d | refs/heads/master | 2023-09-01T17:55:56.551183 | 2023-07-31T19:32:04 | 2023-07-31T19:32:04 | 182,849,747 | 0 | 0 | null | 2021-09-10T06:34:22 | 2019-04-22T19:00:02 | Python | UTF-8 | Python | false | false | 33,729 | py | """
Stamps rebuilt by Adrian Pueyo
Full original concept and Postage Stamps created by Alexey Kuchinski and Ernest Dios.
"""
version= "v0.2"
# Constants
STAMP_DEFAULTS = { "note_font_size":20, "hide_input":0 }
ANCHOR_DEFAULTS = { "tile_color" : int('%02x%02x%02x%02x' % (255,255,255,1),16),
"autolabel": 'nuke.t... | [
"lamakaha@gmail.com"
] | lamakaha@gmail.com |
93b86270e92aaa2d75d51120b99d454e77ee61a3 | d64b8121a6fa2832ce422ec39fd63d54a6eca5ef | /api/utils.py | 0ed1bfd1f84486f36021e09777f4d60ac8dec475 | [] | no_license | pialoypolicu/api_yamdb | 73815d74ca1d98ea4a7a1de9efad74d28f84a920 | 9ce274a77970a1b9e84682c71d62d678d67a214a | refs/heads/master | 2023-08-11T02:34:06.630780 | 2021-09-20T14:00:33 | 2021-09-20T14:00:33 | 380,488,741 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 221 | py | from textwrap import fill, shorten
def wrap_text(text: str) -> str:
"""Return beautifully wrapped text."""
text = shorten(text, width=250, placeholder='...', initial_indent='\t')
return fill(text, width=70)
| [
"s.r.samoylenko@gmail.com"
] | s.r.samoylenko@gmail.com |
ea6d7a09a0098c84b4c48d440ab621b0b6a8bec7 | 98d832289b7437247ce03ea54ad3cb7b95451159 | /test/test_smtp_alert.py | 1dfe158f6bb2b04eba1df72525a8c0295f830931 | [
"MIT"
] | permissive | rmehilli-r7/vm-console-client-python | 7f02f13345dce4f4d4d85e18da7146daeefbceb9 | 069041c1c7b53c6b3d8bfdd81b974141bfca3c0c | refs/heads/master | 2020-03-23T11:20:33.364442 | 2018-08-10T20:06:37 | 2018-08-10T20:06:37 | 141,498,444 | 0 | 0 | MIT | 2018-08-08T19:58:45 | 2018-07-18T23:00:41 | Python | UTF-8 | Python | false | false | 48,842 | py | # coding: utf-8
"""
InsightVM API
# Overview This guide documents the InsightVM Application Programming Interface (API) Version 3. This API supports the Representation State Transfer (REST) design pattern. Unless noted otherwise this API accepts and produces the `application/json` media type. This API uses ... | [
"zachary_youtz@rapid7.com"
] | zachary_youtz@rapid7.com |
1edf4752f98ac1432b3f2f56600359ee59dc78df | 300204daeb176fea21e1c2147548b07c9daa8a6b | /polls/admin.py | 40dbfb775f54b43a1602acad9f94050c107e9164 | [] | no_license | SongJaegeun/MyPollSystem | bfba08c71c79ac512df32fdf3e4e7847f8257ad5 | 64ea7b5ca0912db774030682b8ee48852bc1e8d6 | refs/heads/master | 2022-12-01T03:03:11.370564 | 2020-08-05T08:53:23 | 2020-08-05T08:53:23 | 285,233,824 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 165 | py | from django.contrib import admin
from polls.models import Question, Choice
# () <- 등록할 클래스명
admin.site.register(Question)
admin.site.register(Choice)
| [
"s930925@naver.com"
] | s930925@naver.com |
1d416e0212b1c14ef4c3fb2f89c2870522dc1e54 | a8f05b1e415654b8bfc48bbe670dbf13e8a35058 | /dangernoodle.py | 348c1d695ac03a5c07a661df784ee0ba2c26230e | [] | no_license | JAKeijzer96/DangerNoodle | 6dd956e17e6201f645cf0a5d51a7b857f27c1463 | 0295d04c27223fbc9a9c75b0d66c06a8c9dea3eb | refs/heads/master | 2022-12-26T12:45:16.865356 | 2020-09-29T21:06:11 | 2020-09-29T21:06:11 | 274,903,148 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 39,645 | py | """
29-09-2020
DangerNoodle - A very original game by Jasper
Inspired by The New Boston pygame tutorial, link to playlist below:
https://www.youtube.com/playlist?list=PL6gx4Cwl9DGAjkwJocj7vlc_mFU-4wXJq
TODO (init, draw_snake, game_loop, generate_apple functions):
Find method to get high fps with possibly lower x,y in... | [
"jasperkeijzer96@gmail.com"
] | jasperkeijzer96@gmail.com |
1d1dd4af573043766a29ed7a96b66713e2806647 | e76e61e1cb6eb591cc7a0f0750a1574dda3170e6 | /setup.py | 9d148508a63725b56333b9e93f025f718e327bd8 | [
"MIT"
] | permissive | hoffmann/kartothek | 38fc401d3eebef52317997554f4c57ffbc9f6451 | a017f509c2c1c9b922bbc233752b89578e74ac68 | refs/heads/master | 2020-05-19T07:38:46.356430 | 2019-05-03T13:03:47 | 2019-05-03T13:03:47 | 184,902,342 | 0 | 0 | null | 2019-05-04T14:03:14 | 2019-05-04T14:03:14 | null | UTF-8 | Python | false | false | 813 | py | #!/usr/bin/env python
# -*- coding: utf-8 -*-
import os
from setuptools import find_packages, setup
def get_install_requirements(path):
content = open(os.path.join(os.path.dirname(__file__), path)).read()
return [req for req in content.split("\n") if req != "" and not req.startswith("#")]
def setup_packag... | [
"fjetter@users.noreply.github.com"
] | fjetter@users.noreply.github.com |
8696a19087064c39c337d882a19106f03f87eef9 | 4afa4d44ab14247df06c879a3fcd55385caf5852 | /ToolsNLP/sentiment_dict/make_wago_json.py | dd644f7efc4e95671caa8745ff4e6314ea774d15 | [
"MIT"
] | permissive | 9en/ToolsNLP | 3cf06cb89baa8c8bda281d1d10a2ec1a3f61af20 | 05bcbfd83857b87fe19fbe561013717589b21171 | refs/heads/master | 2021-06-27T10:49:17.427206 | 2020-12-30T03:08:46 | 2020-12-30T03:08:46 | 177,355,439 | 0 | 0 | MIT | 2019-09-01T06:12:49 | 2019-03-24T00:50:23 | Jupyter Notebook | UTF-8 | Python | false | false | 322 | py | # -*- coding: utf-8 -*-
import json
PATH = 'wago.121808.pn'
with open(PATH) as fd:
wago_dict = {}
for line in fd:
try:
polarity, word = line.rstrip().split('\t')
except:
continue
wago_dict[word] = polarity
json.dump(wago_dict, open('pn_wago.json', 'w'... | [
"mty.0613@gmail.com"
] | mty.0613@gmail.com |
768150f246383009e4a6ae46eef17b5f3c86e942 | 1c9e3f49ee353744f5da37dd329fec53bf36f6a5 | /health/health_app/models.py | be45478fb57e4e2e31e08807758e92868e36d1c0 | [] | no_license | himanshisehgal19/care-and-cure-hospital | 3dc373eb67784c879fa24ce4771d153082f690a4 | efdbc44f0085cac53d4dcf0c0941277f74c09b03 | refs/heads/main | 2023-06-30T15:51:35.716561 | 2021-08-07T16:41:44 | 2021-08-07T16:41:44 | 363,623,527 | 1 | 0 | null | 2021-05-02T10:28:17 | 2021-05-02T10:28:17 | null | UTF-8 | Python | false | false | 15,803 | py | from django.db import models
# Create your models here.
class train(models.Model):
itching=models.IntegerField(null=True)
skin_rash=models.IntegerField(null=True)
nodal_skin_eruptions=models.IntegerField(null=True)
continuous_sneezing=models.IntegerField(null=True)
shivering=models.IntegerField(nu... | [
"yash167272745@gmail.com"
] | yash167272745@gmail.com |
98f694263451c4748f27f993918222f436b573c9 | a32ca3544bb5a587e5fd7aaa1c73ac0fb918f11e | /hypha/apply/funds/migrations/0102_add_projectapprovalform_to_fundbase_labbase.py | 882caed4c6e476984fe371711a1304045f239190 | [
"BSD-3-Clause"
] | permissive | jvasile/hypha | 87904bf514e7cf5af63c7146eaaa49d3611fd57f | b5ccad20dd3434f53a2b9d711fac510124c70a6e | refs/heads/main | 2023-07-08T04:10:08.233259 | 2023-06-20T05:35:29 | 2023-06-20T05:35:29 | 354,630,183 | 0 | 0 | BSD-3-Clause | 2021-04-04T19:32:38 | 2021-04-04T19:32:38 | null | UTF-8 | Python | false | false | 2,110 | py | # Generated by Django 3.2.15 on 2022-09-07 12:35
from django.db import migrations, models
import django.db.models.deletion
import modelcluster.fields
class Migration(migrations.Migration):
dependencies = [
('application_projects', '0055_alter_project_status_add_pafreviewersrole'),
('funds', '010... | [
"sandeepsajan0@gmail.com"
] | sandeepsajan0@gmail.com |
0d9f1b9c05692e0a4ac1c4911483ce370c67941c | 4ee01fbe543d78e4861e8166dcfaf18a0856c4a3 | /Synth_Div.py | aaa3ac5ac23aabce66e97741ea198ee03c188ba6 | [] | no_license | Manuel-Argueta/Synthetic-Div | 9cbe05250adf094220cee4bd51c7eea2df65cc16 | 8f367da4421c05bcdbf3be995ba8c20835529320 | refs/heads/master | 2023-03-19T05:29:42.124644 | 2021-03-17T23:22:24 | 2021-03-17T23:22:24 | 348,845,463 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,992 | py | # The following program is a CLI application that will allow the user to perofrm a synthetic division on a
# polynomial of n terms.
import re
def syntheticDivide(terms,divisor):
answer_list = []
divisor = divisor * -1
temp = 0
temp_2 = 0
for i in range(len(terms)):
if i == 0:
t... | [
"manuel.argueta0314@gmail.com"
] | manuel.argueta0314@gmail.com |
6f5dada2501a3c08273dc1299314d6a4bfeb23d1 | 3fba9558352f205091db1c326a48499df02cd567 | /stubs/requests/compat.pyi | df5f3a34263558503ad34004e6be5d3280924562 | [] | no_license | mtwtkman/apap | 27ae2700d0eb2e42a85da42761393010dae0a81f | 98ca66d2a4408b9943377079167c15bfc0290f60 | refs/heads/master | 2022-12-12T00:17:43.353015 | 2019-08-17T11:52:41 | 2019-08-17T11:52:41 | 174,843,476 | 0 | 0 | null | 2022-12-08T06:29:59 | 2019-03-10T15:36:22 | Python | UTF-8 | Python | false | false | 314 | pyi | # Stubs for requests.compat (Python 3)
#
# NOTE: This dynamically typed stub was automatically generated by stubgen.
from typing import Any
is_py2: Any
is_py3: Any
builtin_str = str
bytes = str
str = unicode
basestring = basestring
numeric_types: Any
integer_types: Any
builtin_str = str
str = str
bytes = bytes
| [
"punipuniomochi@gmail.com"
] | punipuniomochi@gmail.com |
3f737efead00dd344d007ac8aee36e7c516b8cd2 | 5d5a440be369b8a0fa6d6bc0ff43e1990c525eb2 | /mystuff/exercise_32/ex32.py | 8f9a93f4d09986c639156a80e27779cdcd55242d | [] | no_license | jaggerkyne/learn_python_the_hard_way | d8ff417e8aa8787e87575f646aa3c12e2aaac28c | be9b5614baae941df055b3476f76fc225685cffb | refs/heads/master | 2021-01-25T10:00:28.652727 | 2014-09-29T08:44:08 | 2014-09-29T08:44:08 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 942 | py | #--coding: utf-8 --
# Another code written by Jagger Kyne
# Copyright 2006 - 2014 Jagger Kyne <jagger.kyne@gmail.com>
__author__ = 'Jagger Kyne'
the_count = [1,2,3,4,5]
fruits = ['apple','orange','pears','apricots']
change = [1, 'pennies',2,'dimes',3,'quarters']
#This is first kind of for-loop goes through a list
fo... | [
"jagger.kyne@gmail.com"
] | jagger.kyne@gmail.com |
fd763332d17de843638a864028b2a299b79fb921 | c574bbccea8f2fb3385114d8902a0788c533bfca | /migrations/versions/53c9c429122a_.py | 277eeb6eb9c6b7482d7ecf87ecaa1dc1309773b9 | [] | no_license | schoolie/vocab_test | 3b17aca0320bfaebed373e52e63abf23359f58c4 | 5eded8dda1c0cb813e7fb304ba8ae26ef4a9c603 | refs/heads/master | 2021-03-12T23:25:58.641227 | 2015-09-08T22:04:41 | 2015-09-08T22:04:41 | 41,266,153 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 800 | py | """empty message
Revision ID: 53c9c429122a
Revises: None
Create Date: 2015-08-22 22:30:38.855000
"""
# revision identifiers, used by Alembic.
revision = '53c9c429122a'
down_revision = None
from alembic import op
import sqlalchemy as sa
def upgrade():
### commands auto generated by Alembic - please adjust! ###... | [
"brian.p.schoolcraft@gmail.com"
] | brian.p.schoolcraft@gmail.com |
07e4808bb0ce1a54cbfdd9da102fdf6de151ec49 | 089d0be9b87a54e828567c1347f7fa598bae79f9 | /isIn [correct].py | 0c721026c08d5df335261d6b8ee6f899e443b590 | [] | no_license | 303tek/EDx-MITx--6.00.1x | 8e610c94d3892df98d10704671a5dcef6c3494d1 | d0aa46373ccd213a1844b8cae0feaeb6a3850e65 | refs/heads/master | 2021-01-01T19:39:38.268479 | 2014-09-14T21:59:08 | 2014-09-14T21:59:08 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 582 | py | def isIn(char, aStr):
'''
char: a single character
aStr: an alphabetized string
returns: True if char is in aStr; False otherwise
'''
minBound = 0
maxBound = len(aStr)-1
center = (maxBound + minBound)/2
if (len(aStr)==0):
return(False)
elif (aStr[center] == char):
... | [
"wmorales71@gmail.com"
] | wmorales71@gmail.com |
1a8488cb169c8573a4bdfef987c5c8cb077b56db | 59fb25d01386d759cff112b4d80140fa30cebf20 | /StatsAndVisualization.py | eb2f3a5ff03f078d966d48c3c7f9e5f70800e8df | [] | no_license | rajsankhe/text_choice_game | cf5807453c41c997118cb21de07a52359514151d | 2362a887c1741ce83308e5822380090e5419333d | refs/heads/master | 2020-03-30T08:12:16.181634 | 2019-09-27T13:12:32 | 2019-09-27T13:12:32 | 150,997,525 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,047 | py | import matplotlib.backends.backend_pdf
import matplotlib.pyplot as plt
import pandas as pd
try:
#Plotting historam stating rewards collected in given range by number of players
reward = pd.read_csv("player_stats.csv")
values = reward["Rewards"]
bins = [0, 100, 100, 200, 300, 400, 500] #Maximu... | [
"noreply@github.com"
] | noreply@github.com |
e1688c2b70a20925d085ddad423847170a53bf61 | cce454231eac4d2d9e8013b5347e3c2a219647f9 | /text_order_estimation.py | efdae0d2f49574a9c4cbd7f652ff987da8463099 | [] | no_license | ELanning/mantra-aaai21-tools | 71a3a43762d29587c8facdb91f86a3b8ab5ff641 | 0d0ae40657ec3b40f4e98eca2c1645cc7a3f6099 | refs/heads/main | 2023-03-26T19:42:55.540865 | 2021-03-25T09:51:46 | 2021-03-25T09:51:46 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 8,883 | py | import os
import copy
import matplotlib.pyplot as plt
import json
import numpy as np
from collections import defaultdict
from PIL import Image
class OrderEstimator:
def reorder_object(self, pagedata):
if len(pagedata["frame"]) == 0 or len(pagedata["text"]) == 0:
return pagedata
org_pan... | [
"ryotahinami@RyotanoMacBook-Air.local"
] | ryotahinami@RyotanoMacBook-Air.local |
1275ac53b3e7341c476b71b2ad1ca6ad0b0a1055 | 0ce733ce34bec9422c185802e2e9212329086eb7 | /scripts/Generate_Data.py | d8c8ac1c5bb0bf08e300deda68cde68916bc2afb | [] | no_license | petersim1/COVID-19_Project | c436bee3f43ab05c6fc1f9e8943f237310cb22fe | fc6878056ec805784813df4f5af5d4cf3e9d1d2c | refs/heads/master | 2022-11-17T02:51:09.844229 | 2020-07-12T22:03:57 | 2020-07-12T22:03:57 | 265,407,880 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,928 | py | from importlib.machinery import SourceFileLoader
import algosdk
import numpy as np
import pandas as pd
import datetime
import os
import re
import json
import joblib
# load custome module from path.
covid19_WebScrapes = SourceFileLoader("covid19_WebScrapes", "./scripts/covid19_WebScrapes.py").load_module()
merge_prep_d... | [
"plssimone@gmail.com"
] | plssimone@gmail.com |
a8d7fd11f5d416311323c02331e80d7a43ef0c7a | 60fa434d7ddcf9cc6ee2e24a587f1fbbe789dec2 | /source/teacher/py200805_fruitshop_class/fruitshop.py | 560e4864d4ec963c77782bf0203bc19694ad1299 | [] | no_license | cram-school-study/jump | c16af9a47102d5c994be99d55d8650d202bd3d7b | ba5f021bce29053368386f8fbfab6768a26422ff | refs/heads/master | 2023-02-26T12:31:27.252380 | 2021-02-05T01:41:44 | 2021-02-05T01:41:44 | 336,132,411 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 463 | py | from py200805_fruitshop_class.mydir import MyDir
from py200805_fruitshop_class.mysale import MySale
my_dir_0701 = MyDir("200702")
my_dir_0701_list = []
for i in my_dir_0701.files:
path = "{}/{}".format(my_dir_0701.dir,i)
# my_dir_0701_list.append(MySale(path))
my_dir_0701_list.append(MySale(path).sale_list... | [
"dnjswnsakdmf@naver.com"
] | dnjswnsakdmf@naver.com |
7dce3369e022519445fa95a03daedbe3c0688c66 | 34fa91a300e4935fc57a470a9cab66c67e3bf40a | /problemas/1100/1101.py | bb365e853b574ec3fdd80ca524af5607425eaff5 | [
"MIT"
] | permissive | heymrtoufiq/uri-online-judge | 7a779346593fbe2700bb3022d0a78d55d70f7d0a | 08b3bae3e02cc35ba8f6fba869d643ba3d028e58 | refs/heads/master | 2023-08-16T13:27:01.268377 | 2021-02-10T19:53:00 | 2021-02-10T19:53:00 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 317 | py | while True:
entrada = list(map(int, input().split(' ')))
menor = min(entrada[0], entrada[1])
maior = max(entrada[0], entrada[1])
if menor <= 0 or maior <= 0:
break
soma = 0
for i in range(menor, maior + 1):
print(f'{i} ', end='')
soma += i
print(f'Sum={soma}')
| [
"filimor@posteo.com.br"
] | filimor@posteo.com.br |
88bc688e498094503a5fbc932872ebc11eb90b56 | f104705c6bf8679b4990e1c7cbddd88b00bb4526 | /zwave_power_meter_socket_a.py | 0ae8087081cd7efcf67222cfbb1c29be26b50f18 | [
"MIT"
] | permissive | ContinuumBridge/zwave_power_meter_socket | 80e8e108a581333fa770653ba93d238f64781c1e | 78aa6d59bebf1993ec376010b6f8b83a898ed69c | refs/heads/master | 2021-01-10T21:00:39.936142 | 2015-10-13T08:20:42 | 2015-10-13T08:20:42 | 24,646,385 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 12,348 | py | #!/usr/bin/env python
# zwave_power_meter_socket.py
# Copyright (C) ContinuumBridge Limited, 2014 - 2015
# Written by Peter Claydon
#
ModuleName = "zwave_power_meter_socket"
INTERVAL = 60 # How often to request sensor values
CHECK_ALIVE_INTERVAL = 120
TIME_CUTOFF = 1800 #... | [
"peter.claydon@continuumbridge.com"
] | peter.claydon@continuumbridge.com |
117ff1f45621eab663ccccefa300fcfe4dccba09 | 7083e83b9a74f11d74ae915d05f7bf7b9bf8bbe3 | /checkpe.py | 317e5e8506fb73e093f21cd2d599f9321a1207d3 | [] | no_license | akhilsingh25/Malware-Analysis- | 4280631e900c7599306a71c162602123bddd73fe | a141884ff23ef4ec2ef8f1a55f435d82d7ec7766 | refs/heads/main | 2023-07-28T06:03:51.046671 | 2021-09-13T10:22:31 | 2021-09-13T10:22:31 | 405,912,039 | 2 | 1 | null | null | null | null | UTF-8 | Python | false | false | 7,753 | py | #! /usr/bin/python2
import pefile
import os
import array
import math
import pickle
#from sklearn.externals
import joblib
import sys
import argparse
def get_entropy(data):
if len(data) == 0:
return 0.0
occurences = array.array('L', [0]*256)
for x in data:
occurences[x if isinstance(x, int) e... | [
"noreply@github.com"
] | noreply@github.com |
981e3a1e484acfb814836f3f1d5064be825ea9bf | ef9e7858cf48a8fa8c07d31ffe0e1ab8efe89b85 | /create_folder.py | 08fef9b9b7c2552e76d6a5998228597ef3be4910 | [
"MIT"
] | permissive | Deyui/Art-Rewards-Project | 5b655231f585d7816473427809c1d1064e0d9bd5 | fc58b0937ed26c0dc1ac2e2096de9a68440fba19 | refs/heads/master | 2022-11-17T17:14:42.139362 | 2020-07-09T14:43:22 | 2020-07-09T14:43:22 | 275,023,888 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 777 | py | from pydrive.auth import GoogleAuth
from pydrive.drive import GoogleDrive
gauth = GoogleAuth()
drive = GoogleDrive(gauth)
users = ['a', 'b', 'Liao']
def create_folder(users):
folder_name = users
folder = drive.CreateFile({'title' : folder_name, 'mimeType' : 'application/vnd.google-apps.folder'})
folder.U... | [
"46270478+Deyui@users.noreply.github.com"
] | 46270478+Deyui@users.noreply.github.com |
bdee5332a2d18af8fb0341f6d0cd99f199502564 | c467b443f7e81b32b1184f7bd8f6fef84f9dae9e | /utils/lime_sort_feature_imp.py | 52feb7cc5ec8ead2738df3deca64e6d16395ad5b | [] | no_license | yue123161/ENIDS | c117ce169e4d0d3f139bc44e03f8f5b98840dcb0 | 13ff5b90a8aa7b10ab35d9d818def8f8eeb7f666 | refs/heads/master | 2021-08-19T05:52:28.307723 | 2017-11-24T22:14:16 | 2017-11-24T22:14:16 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,248 | py | import pandas as pd
import scipy
from scipy.stats import spearmanr
import numpy as np
IG_MTL = '/home/aabdul/projects/enids/data/NSL-KDD/report/lime/mtl.csv'
IG_MLP = '/home/aabdul/projects/enids/data/NSL-KDD/report/lime/mlp.csv'
if __name__=="__main__":
exp_files = [IG_MTL, IG_MLP]
model = ['mtl', 'mlp']
... | [
"ashrafabdul@users.noreply.github.com"
] | ashrafabdul@users.noreply.github.com |
4c845a32442a113f46cb75f913399b8eec3f6f02 | 03af1ed81d94773498640c399736071b5387d052 | /dev.opensnowmap.org/cgi/offset-renderer.py | cb50b5faa1cf9596c311aeb7e9f5e306d1616c6f | [] | no_license | clemhoh/opensnowmap.org | 0634fb66bfbf13b16f1c092e813b7d9c899c4b7c | 6710f9124ca24d5c780ca765abac563bccac2087 | refs/heads/master | 2021-01-15T21:39:49.184179 | 2016-01-16T07:07:47 | 2016-01-16T07:07:47 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,315 | py | ##!/usr/bin/env python
# Tile renderer for mapnik with mod_python
# From Sylvain Letuffe work, simplified for better comprehension
import math
import os
from mapnik import *
#
def deg2num(lat_deg, lon_deg, zoom):
# from lon lat to tile names, see http://wiki.openstreetmap.org/wiki/Slippy_map_tilenames
lat_rad = mat... | [
"yvecai@gmail.com"
] | yvecai@gmail.com |
82b262e6528870bd41e0231a81c5d9242080a628 | e567b06c895054d88758366e769de77ee693a568 | /SciComputing with Python/lesson_05-15/asteroids.py | 19db8c21126f49a799c2586684f0c759519408df | [
"MIT"
] | permissive | evtodorov/aerospace | 68986b4ae772e1de8cc7982b4f8497b6423ac8cc | 54a1b58c3c0b02c0eaa3aef14d0e732d7f867566 | refs/heads/main | 2023-01-19T17:52:29.520340 | 2020-11-29T13:23:31 | 2020-11-29T13:23:31 | 315,653,634 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,121 | py | # -*- coding: utf-8 -*-
"""
Created on Thu May 15 14:13:36 2014
@author: etodorov
"""
import pygame as pg
import numpy as np
#Loading resources
pg.init()
bg = pg.image.load("background.jpg")
scrWidth, scrHeight = bg.get_width(), bg.get_height()
scr = pg.display.set_mode((scrWidth, scrHeight))
scr.blit(bg,(0,0))
ship =... | [
"evgeni.todorov@tum.de"
] | evgeni.todorov@tum.de |
9273ca856f79d88214685a99bd7bda3038bfddb4 | 2f76e005c81698bfea9ed2e9465a314eef0cd499 | /examples/imdb_fasttext.py | 50baeca45e6840a04693eabb458eda852fd1ecca | [
"MIT"
] | permissive | cnvrg/keras | 6c5807d70e68eb431d179cc7e8bc95348a33e1fd | 7f9bea44d5d4512fe21d0263d00fd39a9fb5c671 | refs/heads/master | 2020-04-05T20:02:57.125252 | 2018-11-12T05:41:54 | 2018-11-12T05:41:54 | 157,162,007 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,094 | py | '''This example demonstrates the use of fasttext for text classification
Based on Joulin et al's paper:
Bags of Tricks for Efficient Text Classification
https://arxiv.org/abs/1607.01759
Results on IMDB datasets with uni and bi-gram embeddings:
Uni-gram: 0.8813 test accuracy after 5 epochs. 8s/epoch on i7... | [
"leah@cnvrg.io"
] | leah@cnvrg.io |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.