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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
e912c7724267d40a41f3d835179cc89dc9232e2b | ff5663993726dc46cd57c5b6b71c613589923f44 | /tsuki_app/views.py | 005aa86fd72d90c5921eeda9b84c0332ba6d12a7 | [] | no_license | AugustoPiva/tsuki_web | a903a9f2b61a5b6c1ad2f439a794b339de86dbcc | 74879787585d001e86d10efce3f441518b8e78b0 | refs/heads/master | 2022-12-08T09:41:07.100965 | 2021-03-03T01:56:38 | 2021-03-03T01:56:38 | 191,825,017 | 0 | 0 | null | 2022-12-08T05:52:58 | 2019-06-13T19:57:26 | JavaScript | UTF-8 | Python | false | false | 26,944 | py | from django.shortcuts import render,get_object_or_404
from django.urls import reverse_lazy,reverse,resolve
from django.http import HttpResponse, HttpRequest, HttpResponseRedirect
from .models import Pedidos,Listaprecios,Productosordenados,Tiposdegastos,Gastos,Clientes
from .forms import FormularioNuevoPedido,Fecha,Filt... | [
"augustopiva4@gmail.com"
] | augustopiva4@gmail.com |
98d04850ce867f41faac0f5dee2adac18e1050a8 | ce6d252997d9c328dc127176d30d4c4afb11ae6b | /solution/CanVisitAllRooms.py | 8f4cd9961a1c53fce116a54179af83c022ceb44c | [] | no_license | Vergilgeek/leetcode-solution-python | 0956500adfcd0f58a34f771d20b1b771ce83507a | 92794a6660506e901dee30f07d16a10fddc864c9 | refs/heads/master | 2022-12-05T18:35:47.154950 | 2020-08-31T07:28:37 | 2020-08-31T07:28:37 | 274,016,162 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,832 | py | from typing import List
# 841. 钥匙和房间
# 有 N 个房间,开始时你位于 0 号房间。每个房间有不同的号码:0,1,2,...,N-1,并且房间里可能有一些钥匙能使你进入下一个房间。
# 在形式上,对于每个房间 i 都有一个钥匙列表 rooms[i],每个钥匙 rooms[i][j] 由 [0,1,...,N-1] 中的一个整数表示,其中 N = rooms.length。 钥匙 rooms[i][j] = v 可以打开编号为 v 的房间。
# 最初,除 0 号房间外的其余所有房间都被锁住。
# 你可以自由地在房间之间来回走动。
# 如果能进入每个房间返回 true,否则返回 false。
cl... | [
"251627752@qq.com"
] | 251627752@qq.com |
030dce7993add6e77c513fc621b5a7f86c0566c5 | f785a7d4a31e5fb63715eec78e421e502a7a65a5 | /lab4/venv/Scripts/pip3.7-script.py | f96e597b063d133bb3fc89132679ae98f33f6c5e | [] | no_license | kuliev001/inf_001 | 2175c76468ce03affbcee542e7412f6c2a3feae7 | 49e06ebfeb18b3da84869f0c385093f1698dd85f | refs/heads/master | 2020-08-06T12:45:09.112197 | 2019-10-05T11:41:22 | 2019-10-05T11:41:22 | 212,979,640 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 411 | py | #!C:\Users\Admin\d001\inf_001\lab4\venv\Scripts\python.exe
# EASY-INSTALL-ENTRY-SCRIPT: 'pip==19.0.3','console_scripts','pip3.7'
__requires__ = 'pip==19.0.3'
import re
import sys
from pkg_resources import load_entry_point
if __name__ == '__main__':
sys.argv[0] = re.sub(r'(-script\.pyw?|\.exe)?$', '', sys.argv[0])
... | [
"kuliev001@yandex.ru"
] | kuliev001@yandex.ru |
f40f16e083aaff00071e3beb1104d697546debd2 | e10cf552943f8b83c39a5377ee149b0da03c0a58 | /20181223_xmasctf/crypto-328-santas_list_(2.0)/files/list_2.py | 668646e2be2ce34cee946841e58bc906bd215680 | [] | no_license | pberba/ctf-solutions | edfbed3329f22069d90a0f84f8855cbdd8575a09 | 7d8a0aa1205efb16a7df457e5ef58e686e30e34d | refs/heads/master | 2021-11-11T14:04:20.012922 | 2021-11-09T02:36:43 | 2021-11-09T02:36:43 | 145,188,639 | 24 | 6 | null | null | null | null | UTF-8 | Python | false | false | 1,464 | py | #!/usr/bin/python3
from Crypto.PublicKey import RSA
from Crypto.Util.number import *
FLAG = open('flag.txt', 'r').read().strip()
def menu():
print()
print('[1] Encrypt')
print('[2] Decrypt')
print('[3] Exit')
return input()
def encrypt(m):
return pow(m, rsa.e, rsa.n)
def decrypt(c):
re... | [
"jdpberba@gmail.com"
] | jdpberba@gmail.com |
efd7dbc9871ed3bbe471284d5c39efaf8a571c50 | 4a9bb536ea1590abbfd884616be4a7a69b962ce3 | /Assignments/Program_3/get_quake_points.py | 4a5b7f3fd8c55702ea7b5bd7fb91e56a80288001 | [] | no_license | cynorfleet/Spatial-DS-norfleet | b603983170b6f06474279168c14ddc5cea9b4ac1 | 8e83eaac5a4ea4553321ae2c231b79a1bfbf49c3 | refs/heads/master | 2021-01-25T06:17:57.297621 | 2017-06-28T19:22:09 | 2017-06-28T19:22:09 | 93,548,600 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,332 | py | import requests
import json
import sys
import glob
"""
This class helps read the NYC crime data.
Usage:
fh = FileHelper()
data = fh.get_data([2017]) #pass year in as list, get data for that year
data = fh.get_data([2015,2016,2017]) #pass years in as list, get data for those years
"""
def condense_file(d... | [
"cynorfleet@gmail.com"
] | cynorfleet@gmail.com |
5e412f372c4edc8db03a7db6615a05a84a40bda2 | cc3222022682bf19b73b16d903aa9be7130042b5 | /python语言学习/ACM/母牛的故事.py | 7c399ec31d21d9d2534fdd7af83ca750b91750ba | [] | no_license | wyl-lib/personalPyhton | e44f7ce7ef2cb417f1db7cfb15e29b04937e45b0 | 0502c6d94c1fbaf83335f7d2582326580243bf19 | refs/heads/master | 2021-01-13T21:58:07.809578 | 2020-02-23T11:46:12 | 2020-02-23T11:46:12 | 242,507,309 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 513 | py | #母牛的故事
import time
list = [0]*55
list[0] = 1
list[1] = 2
list[2] = 3
list[3] = 4
while(True):
Year = eval(input())
if(Year<=0):
break
else:
if(Year<=4):
CowNum = Year
print(CowNum)
else:
for i in range(4,Year,1):
start = time.perf... | [
"1346788525@qq.com"
] | 1346788525@qq.com |
1c7add1cda136c23e652c1fd2a6383a444474ffc | 9634867a6f039f889b4561ff5d43a5ece9899ab1 | /dsuser/admin.py | 6f552c9c6a1e04c09852836ec7fa1d0629006a0f | [] | no_license | YangGangster/djangostagram | ac8054eb5f2384970a1abf123e967de7a5068e31 | 6148fee627723e9c1fa37d2f5b5c3da5c9b6676e | refs/heads/master | 2023-08-18T19:40:30.784409 | 2021-10-17T11:19:36 | 2021-10-17T11:19:36 | 417,370,098 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 215 | py | from django.contrib import admin
from dsuser.models import Dsuser
# Register your models here.
class DsuserAdmin(admin.ModelAdmin):
list_display = ('userId','password')
admin.site.register(Dsuser,DsuserAdmin) | [
"carys3115@gmail.com"
] | carys3115@gmail.com |
2406cc09e09f44acf43936aebae6d7bcccffddd3 | fd2582f33b2be357f17bcdebb208c7756ff9199d | /djangosession/settings.py | f52d6881c1f6b88be76e54ce00bc7f796a0ccaf5 | [] | no_license | gangadharsa/djangosession | 6ab4826d6183bbb3ded78bd88d111902f9c714d7 | c8e4563115e63663c4c618ce25b555d38ad83a9b | refs/heads/master | 2020-05-17T04:17:30.039012 | 2019-04-25T20:19:22 | 2019-04-25T20:19:22 | 183,504,000 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,189 | py | """
Django settings for djangosession project.
Generated by 'django-admin startproject' using Django 2.2.
For more information on this file, see
https://docs.djangoproject.com/en/2.2/topics/settings/
For the full list of settings and their values, see
https://docs.djangoproject.com/en/2.2/ref/settings/
"""
import o... | [
"gangadharsahoo1991@gmail.com"
] | gangadharsahoo1991@gmail.com |
843350f45169de7a9587ad33185a6e3bb54a0bba | 420269f4bede7be8de96eae076e054c0645c0475 | /settings.py | 3a1ada121c5d26bb7cffd15398862cca71d0340c | [
"Apache-2.0"
] | permissive | killvxk/Scanver | 45f766ea903a3fbc77cf85adfe6f44a032221baa | b23ac4753241f95e28587b82ae66672dd3eb6b7e | refs/heads/master | 2020-04-06T22:16:24.463437 | 2018-11-16T03:06:27 | 2018-11-16T03:06:27 | 157,830,534 | 1 | 0 | Apache-2.0 | 2018-11-16T07:39:12 | 2018-11-16T07:39:12 | null | UTF-8 | Python | false | false | 2,182 | py | #!/usr/bin/env python
# encoding=utf-8
#codeby 道长且阻
#email @ydhcui/QQ664284092
import os
import sys
sys.path.append('./lib')
import configparser
DEBUG = True
CONFNAME = 'conf.ini'
#获取脚本文件的当前路径
def cur_file_dir():
path = sys.path[0]
#判断为脚本文件还是编译后的文件,如果是脚本文件,则返回的是脚本的目录,
if os.path.isdir(path):
... | [
"664284092@QQ.COM"
] | 664284092@QQ.COM |
872fea6e32fd13b181d5aee64e9711014a9df0d1 | cbc5e26bb47ae69e80a3649c90275becf25ce404 | /xlsxwriter/test/styles/test_write_num_fmts.py | 1445d94a1fdf72bcc2de972b5c46a5085b48cd0d | [
"BSD-2-Clause-Views",
"BSD-3-Clause",
"MIT"
] | permissive | mst-solar-car/kicad-bom-generator | c3549409c3139f787ad28391372b5cb03791694a | 2aae905056d06f3d25343a8d784049c141d05640 | refs/heads/master | 2021-09-07T14:00:40.759486 | 2018-02-23T23:21:13 | 2018-02-23T23:21:13 | 107,868,801 | 3 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,007 | py | ###############################################################################
#
# Tests for XlsxWriter.
#
# Copyright (c), 2013-2017, John McNamara, jmcnamara@cpan.org
#
import unittest
from ...compatibility import StringIO
from ...styles import Styles
from ...format import Format
class TestWriteNumFmts(unittest.T... | [
"mwrb7d@mst.edu"
] | mwrb7d@mst.edu |
507fdaaab6478a504d41ec853c6be3c7460bf0dc | 32fc863692b38b467509b934213ca558d6cc44c7 | /exoduscli/config.py | 4496588ea48db6b585606cd467fe68a5644df80d | [
"MIT"
] | permissive | cthlo/exoduscli | d8efa075ef9b45ba1f0792c349b3ccd6fa392285 | 4e59d4f5207f5777e5e93801fcad7e4a7a81d692 | refs/heads/master | 2020-12-24T07:43:53.348336 | 2016-09-04T08:01:57 | 2016-09-04T08:01:57 | 56,095,078 | 5 | 0 | null | null | null | null | UTF-8 | Python | false | false | 886 | py | from os import path
from lib import appdirs
_appdir = appdirs.user_data_dir('exoduscli')
specialroot = path.join(_appdir, 'fakexbmc', 'special')
addonsdir = path.join(_appdir, 'addons')
logfile = path.join(_appdir, 'fakexbmc.log')
exodus = dict(
id = 'plugin.video.exodus',
b64url = 'aHR0cHM6Ly9vZmZzaG9yZWdpdC... | [
"cthlo@users.noreply.github.com"
] | cthlo@users.noreply.github.com |
41ce2dca456d38f905d9b1de4cc2d6e24dd2ab6b | 45beb8abb15127630080c92637f70fe67c06dcc0 | /catkin_ws/build/robot/catkin_generated/pkg.develspace.context.pc.py | f81082d918af8d0844977e0eb893a8451cdeb75b | [] | no_license | ABorghini/loop-closure-labiagi | ed511fc1d02b9c0958407b3218428066f03e4f28 | 321eca63e427fe7f1facb0f41190ef7338dddcc7 | refs/heads/main | 2023-08-14T17:40:20.942746 | 2021-10-04T10:26:44 | 2021-10-04T10:26:44 | 413,348,542 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 410 | py | # generated from catkin/cmake/template/pkg.context.pc.in
CATKIN_PACKAGE_PREFIX = ""
PROJECT_PKG_CONFIG_INCLUDE_DIRS = "".split(';') if "" != "" else []
PROJECT_CATKIN_DEPENDS = "".replace(';', ' ')
PKG_CONFIG_LIBRARIES_WITH_PREFIX = "".split(';') if "" != "" else []
PROJECT_NAME = "robot"
PROJECT_SPACE_DIR = "/home/ale... | [
"noreply@github.com"
] | noreply@github.com |
4511567dc74a2cf2f393471285401bfacdebf7fc | 89da172895a4f54b29992e3975af994c1ebc4108 | /common/request.py | fcadae56f38931b593e3e94a34ca9f65897eff8f | [] | no_license | zjunbin/QCDApiTesting | aa5552f3d751f0197acda9d3c0bc0b4e6cd920ce | c9e3738d91c9a25ead882e6021e23ba2e265dc27 | refs/heads/master | 2020-08-31T14:24:35.173617 | 2019-10-31T07:46:49 | 2019-10-31T07:46:49 | 218,710,322 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,521 | py | # coding utf-8
# @time :2019/3/119:10
# @Author :zjunbin
# @Email :648060307@qq.com
# @File :request.py
import requests
from common.mylog import MyLog
mylog = MyLog()
class Request:
def __init__(self, method, url, data, cookies = None):
if method == 'get':
try:
... | [
"648260307@qq.com"
] | 648260307@qq.com |
42d5a6042e0c6be7f18f9d30be02d922a309e3ca | ab6a1d156b1aafbb1f710ecf206716e807d23a93 | /LoadDataset.py | ef83b32eb5c630fdafc46d0442aaa7ccf98ee5b8 | [] | no_license | shahzainmehboob/deeplearning | f13d5d05fbc0d833f8b63df86550e1859ce92181 | ee8079fe1c532d9cf436a6d4a27878845db49d57 | refs/heads/master | 2020-04-20T00:49:56.816627 | 2019-02-20T23:05:41 | 2019-02-20T23:05:41 | 168,530,237 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,278 | py | import os
import matplotlib.image as misc
from sklearn.utils import shuffle
import numpy as np
import scipy
from skimage.transform import rescale, resize, downscale_local_mean
class LoadData:
# give the relative path of data set in constructor.
def __init__(self, address):
if os.listdir(address):
... | [
"shahzainmehboob@gmail.com"
] | shahzainmehboob@gmail.com |
288d5829e8450be1377316903a21346afe1a1f7d | 01c2cc36a4799f3cf9d0cbbfb1f2b7c934d84e8a | /Algorithms/search-divide-conquer/QuickSort.py | 0ac8603228eb0d4fddc62c2a30f0425f8c168aa7 | [] | no_license | koko1123/basic-algorithms | ca4f4b10ca84b3b9d9c560c5e8d14420633924cc | 5bcc9fd2c01a6b400c109f50697db04a497af44b | refs/heads/master | 2021-06-19T12:27:03.593160 | 2017-07-14T00:17:53 | 2017-07-14T00:17:53 | 79,063,772 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 879 | py | import random
"""
Canonical implementation of Quicksort (in place)
random pivot used
"""
def quick_sort(arr):
quick_sort_helper(arr, 0, len(arr) - 1)
def quick_sort_helper(arr, start, end):
if end - start <= 1:
return
p = partition(arr, start, end)
quick_sort_helper(arr, start, p - 1)
q... | [
"amlandeep1912@gmail.com"
] | amlandeep1912@gmail.com |
0ae2060bf342ed56086de24c03c498abac06721e | aa11a31c94ca91670499c14ff176ed6c67535c9b | /pkg/코드업/기초100제 - 재귀/기초100제 - 정렬/3014-정렬을 빠르게!.py | de40d3539aa5c2f4f76808e28670325a1d0049e1 | [] | no_license | JE-BONG/python__basic | d273fcccee2cdb0d67de7f866f1e0d9ecd9658ce | 958bddf3aec5d920053e3c77a173bac7a2326cae | refs/heads/master | 2023-04-18T10:17:08.921996 | 2021-05-03T11:42:52 | 2021-05-03T11:42:52 | 355,383,219 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 430 | py | n = int(input())
data_list = list(map(int, input().split()))
for index in range(len(data_list)-1): # 0 ~ 4
for index2 in range(len(data_list)- index -1):
if data_list[index2] < data_list[index2+1]:
data_list[index2],data_list[index2+1] = data_list[index2],data_list[index2+1]
else:
... | [
"jab1523@naver.com"
] | jab1523@naver.com |
497efd5264fcd56bbb680a97e50dbec2176cc6b7 | 9ddb13fbd31e194ed9963396d5a3f9b3ebae317b | /venv/bin/django-admin.py | 83d35cf46e6cc60b5f1f9866947b622d11fce5b1 | [] | no_license | SeongYoonHuh/Bookmark | d773ffcbf94d06d059d13cc9ddee44545fd354fd | 245692f7ea6c7e8afd78c7daad782ab1ec2feb4f | refs/heads/master | 2020-05-18T05:05:28.623807 | 2019-04-30T07:58:54 | 2019-04-30T07:58:54 | 184,194,580 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 169 | py | #!/home/seongyoonhuh/bookmark_project_20190429/venv/bin/python
from django.core import management
if __name__ == "__main__":
management.execute_from_command_line()
| [
"hsy2763@naver.com"
] | hsy2763@naver.com |
fed18dc7e5b47ca1829d70af4e388786385eadde | 9b2bd53ad9923985f5d87713937fa1420113da0a | /EX05_trabalhos.py | 96379cdbf4688b643823e047606f97e8021283b1 | [] | no_license | rlsmadsfc/anc6_python | ea9f024d2d662f70c4e2533dd53ce7aef2724d10 | 9f6edfe472d4b71eb8b5c07a436591fedf20f73d | refs/heads/main | 2023-03-04T11:18:02.514775 | 2021-02-14T22:42:28 | 2021-02-14T22:42:28 | 331,103,263 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,570 | py | #!/usr/bin/python3
#coding: utf-8
# Neste exercício poderia ter sido utilizada apenas a manipulação de listas
# Contudo preferi utilizar listas e strings para exercitar a lógica, manipulação de variáveis
# Importar bibliotecas
import sys, os, time, datetime, string
# Função para procurar a letra na lista
def procura... | [
"noreply@github.com"
] | noreply@github.com |
5a4910de1072d92d94f9dd51734477b5e611a449 | cb5fa586ec7d6593285c7fadb452edfa6cfc43d9 | /setup.py | 48f74c8b94d1bd7f0be181f87f7fbad6c68dfb5c | [] | no_license | McManning/OSUTracTheme | 6b557e1a4bc8f320608bf2bf12801f8298465ddc | c2112aa6d071eac18841014515c24511b341fcaf | refs/heads/master | 2016-09-03T06:46:21.908849 | 2015-05-20T14:42:36 | 2015-05-20T14:42:36 | 35,551,326 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 664 | py | #!/usr/bin/env python
# -*- coding: utf-8 -*-
#
#
# Copyright (C) 2015 Chase McManning <cmcmanning@gmail.com>
#
# License TODO
#
from setuptools import setup
PACKAGE = 'osutractheme'
setup(
name = 'OSUTracTheme',
version = '0.1.0',
packages = [PACKAGE],
author = 'Chase McManning',
author_email ... | [
"cmcmanning@gmail.com"
] | cmcmanning@gmail.com |
fb0f788170ff880209298d05f7ffe3435792829d | 254af7bbe369418729cad528907e03fc5ec47f54 | /Set4/md4.py | 24730d708ff989dcf0011eed473ffdeeb30fc282 | [] | no_license | pkug/matasano | 506fc54a2c3c527ff00b85418ded01946182ed74 | 6591a8ba94a04a06e23a602fcd46ddcfa6f8bfdb | refs/heads/master | 2020-12-03T23:28:37.553996 | 2016-10-19T12:25:34 | 2016-10-19T12:25:34 | 67,922,503 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,282 | py | #!/usr/bin/env python3
import binascii
def _pad(msg, bit_len=0):
n = len(msg)
bit_len = bit_len or n * 8
index = n & 0x3f
pad_len = 120 - index
if index < 56:
pad_len = 56 - index
padding = b'\x80' + b'\x00' * 63
suffix = bit_len.to_bytes(8, 'little', signed=False)
padded_msg = msg + padding[:pad_len] + suf... | [
"pkugrinas@gmail.com"
] | pkugrinas@gmail.com |
e23525d9ba49cd582605b0febe397929da11e805 | cf44f0e38e1e5441166fc4e2729389b3efb1d7b8 | /venv/bin/virtualenv | 94240253b564275f3da734ad0f76e732e05bb66f | [] | no_license | aditisspatil/Flask | d8afba71ac8b1e01c2c1b4712b4df7f93dd45991 | b511eb99d5835e1bf612bb41d3e67c755cb8dd21 | refs/heads/main | 2023-03-08T11:20:51.133512 | 2021-02-20T14:15:08 | 2021-02-20T14:16:30 | 340,587,446 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 271 | #!/home/aditi/PycharmProjects/flask/venv/bin/python
# -*- coding: utf-8 -*-
import re
import sys
from virtualenv.__main__ import run_with_catch
if __name__ == '__main__':
sys.argv[0] = re.sub(r'(-script\.pyw|\.exe)?$', '', sys.argv[0])
sys.exit(run_with_catch())
| [
"aditi.ss.patil@gmail.com"
] | aditi.ss.patil@gmail.com | |
ea87350f02a504bbe169ab85c731b8ef3f775d6b | 58f6e58e507db3edb95a08dc58ae291376affa8d | /server/Server_Music/mus/migrations/0002_song_rating.py | 4f472b1b9fac4492870a3d7c757492add3123f0f | [] | no_license | meettaraviya/Musicky | 6cdbe64d08ef893d17ba2edcea6309147d49c996 | 0e6938075eee905d4eefcb350fecad606b95820d | refs/heads/master | 2022-12-03T23:35:59.590363 | 2016-11-22T06:34:57 | 2016-11-22T06:34:57 | 213,819,013 | 0 | 0 | null | 2022-11-22T01:06:59 | 2019-10-09T04:13:44 | Java | UTF-8 | Python | false | false | 434 | py | # -*- coding: utf-8 -*-
# Generated by Django 1.11 on 2016-11-21 10:09
from __future__ import unicode_literals
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('mus', '0001_initial'),
]
operations = [
migrations.AddField(
mode... | [
"rishrocks17@gmail.com"
] | rishrocks17@gmail.com |
366fb7de34dd2ebcdb86b39dc81a53ca26966c1a | 47f824a2b71fff8ad983666f7d7db432d2184be6 | /create_cube_csv.py | 264841befd464303804a55b5a9a297322511ad1b | [] | no_license | oelarnes/cube | 2ece33ce23cc965c1a96885756d94ad21f50f82a | 9b62c304d84cd44ce9f2ef72f921ec2271a8c0bc | refs/heads/master | 2021-07-25T21:53:06.395466 | 2020-04-04T03:30:37 | 2020-04-04T03:30:37 | 139,216,760 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 588 | py | #!/Users/joel/anaconda3/bin/python
# create_cube_csv.py
# populate card_ref.txt with unique list of cards, then
# usage 'python create_cube_csv.py < card_ref.txt > cache/cube.csv'
import scryfall, sys, logging
logging.basicConfig(filename='cube_csv.log',level=logging.WARNING)
attrs = sys.argv if len(sys.argv[1:]) e... | [
"oelarnes@gmail.com"
] | oelarnes@gmail.com |
1ee7dc2b9ca208d6002aaa8adfe393e5b25d084f | 88be4d5657d19462eb1d74d2d4d98180b423a889 | /robolearn/torch/policies/weighted_multi_policy_selector.py | e0cb8481457f36ea0e1a6161526cff851f74721d | [
"BSD-3-Clause"
] | permissive | domingoesteban/robolearn | bc58278fe38894f4ca9ec9e657ee13a479a368b7 | 0d20125425c352b80ef2eeed1c0b11ab6497b11a | refs/heads/master | 2020-04-15T22:38:25.343229 | 2019-01-29T17:01:42 | 2019-01-29T17:01:42 | 165,080,647 | 1 | 1 | null | null | null | null | UTF-8 | Python | false | false | 1,021 | py | from robolearn.torch.core import PyTorchModule
from robolearn.models.policies import ExplorationPolicy
class WeightedMultiPolicySelector(PyTorchModule, ExplorationPolicy):
def __init__(self, multipolicy, idx):
self.save_init_params(locals())
super(WeightedMultiPolicySelector, self).__init__()
... | [
"domingo.esteban@iit.it"
] | domingo.esteban@iit.it |
2b7e5d90a8455b81f14433b31ba280dad2324588 | 5c2ac56a9f768948451230d9fe0d394e1a332a2c | /metrician/monitors/__init__.py | ae7f7e29185d40502d25f123345f85c199bfd98f | [
"MIT"
] | permissive | tedtroxell/metrician | 4fef1ff1faa4a404c8ea31d889b02e2be2c27d8e | d4164dbff8db5645ee8beca11dc55ba6c26c4cb6 | refs/heads/main | 2023-03-21T08:43:26.325191 | 2021-03-11T19:23:22 | 2021-03-11T19:23:22 | 343,936,964 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 18 | py | from .OOD import * | [
"ted@tedtroxell.com"
] | ted@tedtroxell.com |
7d08491efda08a5d607a59710e749f9ee4adf84e | 425f4829adc34b380ef81553bf094d94a8884135 | /v1beta1/test/test_v1beta1discovery_details.py | fa6b03318e3c5ccf00b5e533e50fe989f8d2b672 | [
"Apache-2.0"
] | permissive | appvia/client-python | 655a77242135d4b8d2742db8a69d569666a6ac41 | 7b7158e0b857197cabaa2ccfa71af529a09fd36d | refs/heads/master | 2020-07-18T19:12:06.489460 | 2019-09-04T11:13:52 | 2019-09-04T11:13:52 | 206,297,740 | 0 | 0 | null | 2019-09-04T10:54:33 | 2019-09-04T10:54:32 | null | UTF-8 | Python | false | false | 1,001 | py | # coding: utf-8
"""
grafeas.proto
No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501
OpenAPI spec version: version not set
Generated by: https://github.com/swagger-api/swagger-codegen.git
"""
from __future__ import absolute_import... | [
"danielwhatmuff@gmail.com"
] | danielwhatmuff@gmail.com |
19687c11d9274afac679c1d2611cf0b1b8156b13 | 7b10e35229aeaf81553dc8a2ac6fe3e9fbea0c32 | /setup.py | ad6d28be2db5826e4e17c1e135f8a598c9b37184 | [
"MIT"
] | permissive | bahattincinic/django-nodelete-model | 7e9257b0d6a6a826a1aee3ced1c3813893fa0daf | 5e2c83e2700e34cf396e72f9f3f06cfe96e5b821 | refs/heads/master | 2020-12-30T12:34:42.876815 | 2017-05-16T09:27:33 | 2017-05-16T09:27:33 | 91,387,039 | 5 | 0 | null | null | null | null | UTF-8 | Python | false | false | 831 | py | #!/usr/bin/env python
from setuptools import setup
setup(
name="django-nodelete-model",
version='0.1',
url='http://github.com/django-nodelete-model',
author='Bahattin Cinic',
author_email='bahattincinic@gmail.com',
description='No Delete Model for django',
install_requires=[
'djang... | [
"bahattin@brickly.io"
] | bahattin@brickly.io |
172de3909694b0f4c9f1d6eb7ed7456069d750ae | fd0c5397d3d9b88cb90f69f5b54a8bcc2bce18d4 | /Codeforces_round721/A.py | 28d4e659236962e5bf6596b42a5aa77d3fc45ec4 | [] | no_license | hienpham15/Codeforces_competitions | 43e312468dc1e984be949257ed26f3eea0c6bd2d | fab13d5df1f82a96600abfae9b1e71507e5516ce | refs/heads/main | 2023-07-25T11:02:03.407916 | 2021-09-08T16:05:13 | 2021-09-08T16:05:13 | 376,763,857 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 538 | py | #!/usr/bin/env python3
# -*- coding: utf-8 -*-
"""
Created on Thu May 20 16:15:00 2021
@author: hienpham
"""
import os
import math
import sys
parse_input = lambda: sys.stdin.readline().rstrip("\r\n")
def func(n):
i = n
while i > 0:
ans = i & (i - 1)
if ans == 0:
return (i - 1)... | [
"phamxuanhien15@gmail.com"
] | phamxuanhien15@gmail.com |
025a66fd3ce9811beceb05a3c51c2dccb93e6600 | e12830eb75fa77d5dc5eadaebc790d02e19c0fd7 | /Ch3/3.7.8.py | 0b602884050171e9f6ae175a2fa6befad7347452 | [] | no_license | mochapup/Python-Programming-2nd-edition-John-Zelle | 60f18dfeb687df8231362518ce3b20752850c4a2 | da67a3014066cc1ac242dd6571e1012d5fc58c5b | refs/heads/master | 2021-01-23T05:18:26.408239 | 2017-09-25T16:15:52 | 2017-09-25T16:15:52 | 92,963,347 | 1 | 1 | null | null | null | null | UTF-8 | Python | false | false | 435 | py | # 3.7.8.py
# This program figures out the date of easter
def main():
print("""This program figures out the Gregorianc Epact,
or the number of days since the previous new moon from January 1st for a given year""")
year = int(input("Enter a year: "))
C = year // 100
epact = (8+(C//4)-C+((8*C+13)//25)+11*(... | [
"c.a.mcdaniel405@gmail.com"
] | c.a.mcdaniel405@gmail.com |
6349c6c6588a2c17dd0fa1cd8751e74bc763f8aa | 380c3942dec6383d9af89456b055aa9c8db8a3a5 | /Introduction to Python/Exercises/Exercise5.py | 1d00c586abd43a2d78c076636de6c0746a664eab | [] | no_license | mariascervino/basics | 570decaa7a662c1bee09d1640b99d6ccdec377b5 | 4a1c31560a29807e4576538228e528c8ec4e8cde | refs/heads/master | 2022-04-17T07:02:24.792711 | 2020-04-15T22:56:29 | 2020-04-15T22:56:29 | 256,055,290 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 368 | py | # Exercise 5: Using if statements, create a variable called day, set it to
# “Tuesday”. Check to see if day is equal to “Monday” or “Tuesday”, and if it
# is, print, “Today is sunny”. If it is not, print “Today it will rain”
day = "Tuesday"
if day == "Tuesday" or day == "Monday":
print("Today is sunny")
else:
... | [
"maria.scervino@hotmail.com"
] | maria.scervino@hotmail.com |
3d710bc135abe8b2f05ed2957e0e98fee42cc9fd | 287a10a6f28517003728aebbd7ed097af13a8d18 | /exp_170727_neuroproof/pipeline.py | 569d93db858b5d701c70c85039b00a3960cdd7df | [] | no_license | jhennies/nmmp_experiments | 05c78c6068fa0f6df0002e57529cd7b8d1daa456 | 7c06a5818a5176fa0dc17a42ba22b2262239d91d | refs/heads/master | 2021-04-06T12:01:25.537695 | 2017-09-22T13:42:51 | 2017-09-22T13:42:51 | 83,289,168 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 11,023 | py |
import os
import vigra
import cPickle as pickle
import numpy as np
import sys
sys.path.append(
'/export/home/jhennies/src/nature_methods_multicut_pipeline_devel/nature_methods_multicut_pipeline/software/')
from multicut_src import DataSet
from multicut_src import lifted_multicut_workflow
from multicut_src import... | [
"julianhennies@hotmail.de"
] | julianhennies@hotmail.de |
46d57600aae28aee46b5ee1f2214f2fbdc284adf | 755824757ca24913b1456e0e87209bce79683673 | /inception/slim/inception_model.py | e1c05668abf1f9f1eeb71870529ae0900d8dfd4c | [] | no_license | shubi4/W266Project | 956afec1044df33fe9ec751a8dcd810c5e2db2be | 78d6b96fb1fdb4c9f06c317b214ae7c7dd1c5ab9 | refs/heads/master | 2021-04-22T12:27:09.825724 | 2016-12-17T09:06:10 | 2016-12-17T09:06:10 | 75,509,158 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 17,956 | py | # Copyright 2016 Google Inc. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agree... | [
"shubi4@hotmail.com"
] | shubi4@hotmail.com |
8ae9fb9ae54b014300cf7675e7bfdbabcd0e5011 | 836d5f7190f6b4503e758c87c71598f18fdfce14 | /12-Veri-Tabanı/sqlite-database-2/database.py | d5adc5a68ad53c2351607d67672c1ff0cbb2b0b7 | [] | no_license | S-Oktay-Bicici/PYTHON-PROGRAMMING | cf452723fd3e7e8ec2aadc7980208d747c502e9a | 22e864f89544249d6309d6f4570a4104bf47346b | refs/heads/main | 2021-11-30T00:19:21.158084 | 2021-11-16T15:44:29 | 2021-11-16T15:44:29 | 316,716,147 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 446 | py | import sqlite3
veriler = [
("Ahmet Ümit","İstanbul Hatırası"),
("Yaşar Kemal","İnce Memed"),
("Paulo Coelho","Simyacı"),
("Paulo Coelho","Aldatmak")]
db = sqlite3.connect("kitaplar.db")
imlec = db.cursor()
imlec.execute("CREATE TABLE IF NOT EXISTS 'kitaplık tablosu' (yazar,kitap)")
for... | [
"noreply@github.com"
] | noreply@github.com |
b2d5d706f2f349be03c0c756e348e26475a9300b | ea44a1681e276b3cc85226b53de217f6096a05d4 | /fhir/resources/tests/test_specimen.py | bc833ac238d30077aeb6dc9c5c72f3cf16919802 | [
"BSD-3-Clause"
] | permissive | stephanie-howson/fhir.resources | 69d2a5a6b0fe4387b82e984255b24027b37985c4 | 126e9dc6e14541f74e69ef7c1a0b8a74aa981905 | refs/heads/master | 2020-05-04T22:24:49.826585 | 2019-06-27T15:51:26 | 2019-06-27T15:51:26 | 179,511,579 | 0 | 0 | null | 2019-04-04T14:14:53 | 2019-04-04T14:14:52 | null | UTF-8 | Python | false | false | 13,742 | py | #!/usr/bin/env python
# -*- coding: utf-8 -*-
#
# Generated from FHIR 4.0.0-a53ec6ee1b on 2019-01-17.
# 2019, SMART Health IT.
import os
import pytest
import io
import unittest
import json
from .fixtures import force_bytes
from .. import specimen
from ..fhirdate import FHIRDate
@pytest.mark.usefixtures("base_sett... | [
"connect2nazrul@gmail.com"
] | connect2nazrul@gmail.com |
842861fff402dd09ab5a9f2cfa8e490d1b842ff7 | ca7aa979e7059467e158830b76673f5b77a0f5a3 | /Python_codes/p03696/s669152949.py | 6ffe317a8dbd760aeaf50530708cdf2ac5bd88ad | [] | no_license | Aasthaengg/IBMdataset | 7abb6cbcc4fb03ef5ca68ac64ba460c4a64f8901 | f33f1c5c3b16d0ea8d1f5a7d479ad288bb3f48d8 | refs/heads/main | 2023-04-22T10:22:44.763102 | 2021-05-13T17:27:22 | 2021-05-13T17:27:22 | 367,112,348 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 162 | py | N=int(input())
S=input()
A=0 #(
B=0 #)
for s in S:
if s=='(':
A+=1
elif s==')' and A>0:
A-=1
else:
B+=1
print('('*B+S+')'*A) | [
"66529651+Aastha2104@users.noreply.github.com"
] | 66529651+Aastha2104@users.noreply.github.com |
b163788348d239583607dd070a084cb206e92952 | be81dc6b30ddfcb512a58aae2a592f5707b65479 | /d1/swea_2063.py | 264787ad21465503391e4d2349391775b300b740 | [] | no_license | mingddo/Algo | 799082d2a9d8e2fa43a910ebf5e769e372774a70 | 6dee72aa3c99b59ada714bfe549b323dbdff2f30 | refs/heads/master | 2023-01-06T00:32:29.457676 | 2020-11-07T07:45:07 | 2020-11-07T07:45:07 | 281,081,195 | 3 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,057 | py | # 기본 제공코드는 임의 수정해도 관계 없습니다. 단, 입출력 포맷 주의
# 아래 표준 입출력 예제 필요시 참고하세요.
# 표준 입력 예제
'''
a = int(input()) 정수형 변수 1개 입력 받는 예제
b, c = map(int, input().split()) 정수형 변수 2개 입력 받는 예제
d = float(input()) 실수형 변수 1개 입력 받는 예제
e, f, g = map(float, input().split()) 실수형 변수 3개 입력 받는 예제
... | [
"dk.myeong@gmail.com"
] | dk.myeong@gmail.com |
9d5e381b6742e606d841d20ce2e6480a9029a65d | e3af1769d017fa5b20677b1228fd3ab42afc8927 | /projet/IBPackage/operations.py | 481a6a5755012665fb4d06ee741c5fdef5d684ad | [] | no_license | komi24/IB201116 | 08e8692a72badb82eecc79af753e1cf5c4021380 | 924c6540978b0308686eac867c16a3f6d1725f65 | refs/heads/master | 2023-01-19T11:34:32.627342 | 2020-11-20T15:24:31 | 2020-11-20T15:24:31 | 313,242,433 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 258 | py | # -*- coding: utf-8 -*-
def ajoute_2(a):
return a + 2
def addition(a, b):
return a + b
def produit(a, b):
return a * b
# def moyenne(liste, operation, init):
# somme = init
# for i in liste:
# somme = operation(i, somme)
| [
"mickael.bolnet@gmail.com"
] | mickael.bolnet@gmail.com |
263e5accf9c46da5bf018e6fe716b80de9ee55da | 4e0ff785b993b6bae70745434e61f27ca82e88f0 | /229-Majority-Element-II/solution.py | 1b9494257f4bd6ea4a55db58f2ad57d67a4ef1ec | [] | no_license | NobodyWHU/Leetcode | 2ee557dd77c65c5fa8ca938efb6de3793b4de261 | d284fa3daab02531e5300867463b293d44737e32 | refs/heads/master | 2021-01-23T14:05:28.161062 | 2016-09-23T11:51:51 | 2016-09-23T11:51:51 | 58,898,114 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 621 | py | class Solution(object):
def majorityElement(self, nums):
"""
:type nums: List[int]
:rtype: List[int]
"""
n1 = n2 = None
c1 = c2 = 0
for num in nums:
if n1 == num:
c1 += 1
elif n2 == num:
c2 += 1
... | [
"haohaoranran@126.com"
] | haohaoranran@126.com |
2bd14f5debb27b3889f24b4f36d1bcde6d2768cf | eb841ad2854cbcb60aa75b1080573da6ae8e2a1c | /Evolife/Scenarii/S_Cooperation.py | 122d8266f1d1db6bff0260ceae74330ded53d133 | [] | no_license | tomMoral/pjld | a5aef7201a1ed5e666c9b71b9edaa77e00e8ddd2 | 436b027f1ae55a168ec96db98580ebcf3c9bcf34 | refs/heads/master | 2020-06-04T07:53:50.789582 | 2014-03-13T14:32:30 | 2014-03-13T14:32:30 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,684 | py | ##############################################################################
# EVOLIFE www.dessalles.fr/Evolife Jean-Louis Dessalles #
# Telecom ParisTech 2013 www.dessalles.fr #
##############################################################################
... | [
"thierry.deo@polytechnique.edu"
] | thierry.deo@polytechnique.edu |
02f4b84ed35d98afddfaf42c1bced67546cb75f7 | 4c8cb78b6f9f2609cf82ff84fa65bfbf7129be0c | /90.py | 2a7be4afe3247e17d400f2bab25000217e4830f6 | [] | no_license | Diggerfdf/workbook_100_ardit | 24025edc81e0283c958da1db1ee9edb11c448d8e | 77309a04559dd68499d30b50a9339e8cf9cc7738 | refs/heads/master | 2020-04-21T02:26:52.118567 | 2019-02-05T15:19:12 | 2019-02-05T15:19:12 | 169,254,890 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 346 | py | import sqlite3
import pandas as pd
conn = sqlite3.connect("./Files/database.db")
cur = conn.cursor()
cur.execute("SELECT * FROM countries WHERE area > 2000000")
rows = cur.fetchall()
conn.close()
df = pd.DataFrame.from_records(rows)
df.columns = ["Rank", "Country", "Area", "Population"]
df.to_csv("./Files/db_countri... | [
"diggerfdf@gmail"
] | diggerfdf@gmail |
4490d298cb083a520e91f8cd046242f7439b10be | 60cf5de97160c0c104b447879edd0ea1ca9724e8 | /q29.py | 34fb2528f462f89c7b3226061a2fd7f1d74bc2cd | [] | no_license | VinayHaryan/String | 6f6b7924ab87ac8ea5509edefaa3aeda795b0de0 | 089dcf02a8d26afcae0ac2b23c640be5a6079095 | refs/heads/main | 2023-05-27T22:15:31.792837 | 2021-06-17T08:39:42 | 2021-06-17T08:39:42 | 377,736,749 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,557 | py | '''
RUN LENGTH ENCODING IN PYTHON
given an input string, write a function that returns
string for the input string
For example, if the input string is ‘wwwwaaadexxxxxx’,
then the function should return ‘w4a3d1e1x6’.
Examples:
Input : str = 'wwwwaaadexxxxxx'
Output : 'w4a3d1e1x6'
'''
# python cod... | [
"noreply@github.com"
] | noreply@github.com |
dd661697aebafd16f0b08085f79f72f5e6985143 | 82fb1dd31e047a3fcc8318f3df54a34e20921b14 | /caching/secrets/getSecet.py | 3ef5cf73af14bbf9d396614cd86720d52e5e12ec | [] | no_license | fanaticjo/aws | 3139265590006c0614cf07698da1017a0f0dfb88 | e783c71c448a9e8acf9c4aa52b22434600c08ffa | refs/heads/master | 2023-01-07T11:18:02.287305 | 2020-11-02T07:54:12 | 2020-11-02T07:54:12 | 300,803,139 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 934 | py | import boto3
import base64
import os
import json
sts=boto3.client('secretsmanager',region_name='us-east-1')
def rdsSecret(rdssec):
secretname=rdssec
get_secret_value_response = sts.get_secret_value(
SecretId=secretname
)
if 'SecretString' in get_secret_value_response:
secret = json.load... | [
"biswajit196@live.com"
] | biswajit196@live.com |
f5e2627ca61f312f90a8bd9fab2920c046f40bb0 | cbe32d97bba706af1cb16fd6b1bc479ff2fb58d0 | /utils.py | 12b357e071168f7229f384418221432912998886 | [] | no_license | skozh/NaturalLanguageProcessing_HSE | bd4e63a9b59841bc80b1526b7a5423c54cfe034d | c6e64d892855e07aad8760528301f5b9842b61a0 | refs/heads/main | 2023-06-22T20:03:36.826158 | 2021-07-19T09:14:30 | 2021-07-19T09:14:30 | 387,404,448 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,450 | py | import nltk
import pickle
import re
import numpy as np
nltk.download('stopwords')
from nltk.corpus import stopwords
# Paths for all resources for the bot.
RESOURCE_PATH = {
'INTENT_RECOGNIZER': 'intent_recognizer.pkl',
'TAG_CLASSIFIER': 'tag_classifier.pkl',
'TFIDF_VECTORIZER': 'tfidf_vectorizer.pkl',
... | [
"noreply@github.com"
] | noreply@github.com |
3e4ed21539e3f1b888e3e2ff40ce6ac884f17494 | 648d6a02a4c890935234f25161f407b6a80d1e72 | /kkkk/main.py | d568e43f1672abcc5955ec4459a593916aef7008 | [] | no_license | bbchanidapa/read-file-csv-python | c8876cbf469b54770092cfabfd32e79f60020a5a | f837facaa367b29ed6e7fc203c1628fe5da88e6b | refs/heads/master | 2020-03-26T06:00:09.565214 | 2018-08-13T13:42:20 | 2018-08-13T13:42:20 | 144,584,931 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,789 | py | import os,pprint,re
from datetime import datetime, date, time
import read, zipped, db
import configuration as conf
pattern = []
fields = {}
database = {}
for c in conf.config:
p = conf.config[c].get('pattern')
pattern.append(p)
lineHeader = conf.config[c].get('header')
lineDatatype = conf.config[c].get('datatype'... | [
"ambb_bb@hotmail.com"
] | ambb_bb@hotmail.com |
890864317cbbe612cfb418fd5661d41ab2727579 | e69c5a83cfa64b74f26642d41f296852dbeab8f7 | /chapter1.py | f0908d031a0acd58bc9c33101ebaa142d08a2dd4 | [] | no_license | jithijose/computer-vision | 6d325593189d49a123c1b3a0dc2f67f356b6b350 | 58095845b0d5d9a24fe56b316d7c9968c728637e | refs/heads/master | 2022-11-19T05:54:21.748555 | 2020-07-18T22:13:12 | 2020-07-18T22:13:12 | 280,744,489 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 991 | py | #####################################################################
# READ IMAGE VIDEO AND WEBCAM #
#####################################################################
# import cv2 package(cv2 - computer vision)
from cv2 import cv2
# Read an image file and show
img = ... | [
"noreply@github.com"
] | noreply@github.com |
127bded960ca79191ac9a8013349b33e8930d4d3 | e609e79b5eb6e28dbca5553cad4811c1bfa3c007 | /build/dynamixel_motor/dynamixel_tutorials/catkin_generated/pkg.installspace.context.pc.py | fb33073e73645872a9aed2e6947810b00f152f7c | [] | no_license | ORaZn/lab3 | 62cf515a09c2d0fcbe4fd7d6d7b21d8ccd0c71b9 | 6075faef99ce5e21f0b5f27e1492820cd848bb4f | refs/heads/master | 2022-12-26T20:13:45.595041 | 2020-10-06T17:54:17 | 2020-10-06T17:54:17 | 295,806,389 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 402 | py | # generated from catkin/cmake/template/pkg.context.pc.in
CATKIN_PACKAGE_PREFIX = ""
PROJECT_PKG_CONFIG_INCLUDE_DIRS = "".split(';') if "" != "" else []
PROJECT_CATKIN_DEPENDS = "dynamixel_controllers".replace(';', ' ')
PKG_CONFIG_LIBRARIES_WITH_PREFIX = "".split(';') if "" != "" else []
PROJECT_NAME = "dynamixel_tutori... | [
"oraz.ospanov@nu.edu.kz"
] | oraz.ospanov@nu.edu.kz |
1ecdbd24a54e0f36e82c577573e83e1a23fabb46 | cbed2935158b9d2392fd65a4416f2a8a45d79284 | /venv/Scripts/pip3-script.py | 46d74ef4e18faf41854fb0a03a1d96f9c5f93d27 | [] | no_license | robeekhyra/parking-detector-and-analyzer | 87a93140e30420c4bd069f9e852946e5620dac89 | 43aa5d08693c6f0170b1894ed4e06929e4a8b145 | refs/heads/master | 2020-03-10T00:46:46.348190 | 2018-04-11T15:29:21 | 2018-04-11T15:29:21 | 129,090,536 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 425 | py | #!"C:\Users\Robee Khyra Te\PycharmProjects\parkingsite\venv\Scripts\python.exe"
# EASY-INSTALL-ENTRY-SCRIPT: 'pip==9.0.1','console_scripts','pip3'
__requires__ = 'pip==9.0.1'
import re
import sys
from pkg_resources import load_entry_point
if __name__ == '__main__':
sys.argv[0] = re.sub(r'(-script\.pyw?|\.exe)?$', ... | [
"robee.khyra@gmail.com"
] | robee.khyra@gmail.com |
2fd2df39f7938b677a466fa1c2606d2409a2863a | 716c453110217e4b478823940b6ce773fe837b3b | /BlogProject/school_project/blog/urls.py | 3c46c2b23b8e8910fee69d8f1d1868537c880512 | [] | no_license | Mateaus/blog_site | e9a46ac581a65c2b563ff18090480f775a5ad9cf | 305bafbd18c2a260589da77d8e162fb36994357b | refs/heads/master | 2020-05-07T11:59:47.008936 | 2019-04-11T17:42:58 | 2019-04-11T17:42:58 | 180,485,036 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 654 | py | from django.urls import path
from .views import (
PostListView,
PostDetailView,
PostCreateView,
PostUpdateView,
PostDeleteView
)
from . import views #import the view.py file into here
urlpatterns = [
path('', PostListView.as_view(), name='blog-home'),
path('post/<int:pk>/', Post... | [
"noreply@github.com"
] | noreply@github.com |
8ae1215e7351323fa30e296d34e9cf8d769a78c1 | 6c50175e82974fdb0ccabd544a40e013e6672cb0 | /LoginReg_Bootstrap/settings.py | fbcb01abea32951e3eba4b4872bb9626432a3aa4 | [] | no_license | Jallnutt1/LoginReg_Bootstrap | 9515878688ac6a16efaba18345b90b389a6c6213 | 60532872f1e04a5809f65745665e2f16df0a913e | refs/heads/main | 2023-05-26T05:02:59.124607 | 2021-06-04T01:50:46 | 2021-06-04T01:50:46 | 373,688,654 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,151 | py | """
Django settings for LoginReg_Bootstrap project.
Generated by 'django-admin startproject' using Django 2.2.
For more information on this file, see
https://docs.djangoproject.com/en/2.2/topics/settings/
For the full list of settings and their values, see
https://docs.djangoproject.com/en/2.2/ref/settings/
"""
imp... | [
"{ID}+{username}@users.noreply.github.com"
] | {ID}+{username}@users.noreply.github.com |
6a297e28513d06f4b765fef7de3e980f1fde169e | ef86558df143d137f6fc2e438da1141a965a4662 | /ex14.py | 54f97cd42ed85ca6077556c7ac45f9cc4f0222f5 | [] | no_license | zimrrigudino/learnpythonthehardway | 2b516b41b9ac987a8838ab88e507295747eba435 | 5dcbf049ce2cb54d7fb40d1868888545fdbd5de3 | refs/heads/master | 2021-09-06T13:15:46.418061 | 2018-02-07T00:09:46 | 2018-02-07T00:09:46 | 105,075,970 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 662 | py | #Zimrri Gudino
#Prompting and passing
from sys import argv
script, user_name = argv
prompt = "> "
print "Hi %s, I'm the %s script." % (user_name, script)
print "I'd like to ask you a few questions."
print "Do you like me %s?" % user_name
likes = raw_input(prompt)
print "Where do you live %s?" % user_name
lives =... | [
"zgudino@mail.csuchico.edu"
] | zgudino@mail.csuchico.edu |
c9903269bc89b02fe42b2a38a1a00e60006fd0f3 | aa6e1dd07a71a73bc08574b76f9e57a3ce8c8286 | /077.Test_BeeWare_windows/beeware-tutorial/beeware-venv/Lib/site-packages/pip/_internal/wheel_builder.py | fa08016bdfb189f76aa4603f52684ae94fb20a25 | [
"MIT"
] | permissive | IvanaXu/PyTools | 0aff5982f50bb300bfa950405192c78473b69537 | 358ae06eef418fde35f424909d4f13049ca9ec7b | refs/heads/master | 2023-06-07T21:45:44.242363 | 2023-06-06T16:00:25 | 2023-06-06T16:00:25 | 163,940,845 | 60 | 8 | MIT | 2022-12-23T02:49:05 | 2019-01-03T07:54:16 | Python | UTF-8 | Python | false | false | 9,522 | py | """Orchestrator for building wheels from InstallRequirements.
"""
import logging
import os.path
import re
import shutil
from pip._internal.models.link import Link
from pip._internal.operations.build.wheel import build_wheel_pep517
from pip._internal.operations.build.wheel_legacy import build_wheel_legacy
from pip._in... | [
"1440420407@qq.com"
] | 1440420407@qq.com |
12aa3285772618385f60506381286555afdfeb19 | 991d7f5cd86a676d8213011fba92145dff2c4591 | /ClubMahindraDataOlympics_2019/code/ml_modules/custom_estimator.py | 2782a8af84ab5ec93d4da94dc3cb176fd7c84b81 | [] | no_license | Karrol/ml-hackathons | 37e87b100fee0a7636f394610973c9a34256a28f | 34ed93e20fcb2843740a42dbcf4ac02af73233b9 | refs/heads/master | 2022-04-01T06:52:21.262152 | 2020-01-27T08:42:06 | 2020-01-27T08:42:06 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 9,607 | py | import numpy as np
import pandas as pd
from sklearn.model_selection import StratifiedKFold
from sklearn.metrics import roc_auc_score
from sklearn.base import clone
from sklearn.linear_model import LogisticRegression, LinearRegression
from xgboost import XGBClassifier, XGBRegressor
from lightgbm import LGBMClassifier, ... | [
"pradeeppathak9@gmail.com"
] | pradeeppathak9@gmail.com |
5d2c18d1ea37c56236232061cf2a19e8e6d11fac | ca75f7099b93d8083d5b2e9c6db2e8821e63f83b | /z2/part2/interactive/jm/random_normal_1/561870518.py | e07b9173fe09044ec19d2a4fbff66e5550b7c929 | [
"MIT"
] | permissive | kozakusek/ipp-2020-testy | 210ed201eaea3c86933266bd57ee284c9fbc1b96 | 09aa008fa53d159672cc7cbf969a6b237e15a7b8 | refs/heads/master | 2022-10-04T18:55:37.875713 | 2020-06-09T21:15:37 | 2020-06-09T21:15:37 | 262,290,632 | 0 | 0 | MIT | 2020-06-09T21:15:38 | 2020-05-08T10:10:47 | C | UTF-8 | Python | false | false | 7,951 | py | from part1 import (
gamma_board,
gamma_busy_fields,
gamma_delete,
gamma_free_fields,
gamma_golden_move,
gamma_golden_possible,
gamma_move,
gamma_new,
)
"""
scenario: test_random_actions
uuid: 561870518
"""
"""
random actions, total chaos
"""
board = gamma_new(6, 8, 4, 15)
assert board i... | [
"jakub@molinski.dev"
] | jakub@molinski.dev |
67db78641ba82d306cfac8cb698fca5b8a7fbc9d | 183bffb8eb17f17b99d72386d13959ca31e99728 | /C2.py | f988b884b6f713fef98b68a62162cecc61f6926a | [] | no_license | hightemp/appICMPTunnel | 53c54e998f949d3aa65630d7480fda86e57501d9 | fb6490493f750bd85445a4863bc53c70a858c30d | refs/heads/master | 2020-05-20T13:07:50.919177 | 2019-05-08T13:56:35 | 2019-05-08T13:56:35 | 185,590,268 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 683 | py | #!/usr/bin/env python3
#encoding: utf8
from scapy.all import *
def main():
while True:
command = input('# Enter command: ')
# создаём ICMP-пакет с командой в качестве полезной нагрузки
pinger = IP(dst="localhost")/ICMP(id=0x0001, seq=0x1)/command
send(pinger)
# ждём ICMP-сооб... | [
"hightemp.unknown@gmail.com"
] | hightemp.unknown@gmail.com |
a055c002c46e0b1d76c423f31670d4f0cf440e70 | 1e93a542be9f74cfde7460dde6b4512a9b037be1 | /ec2.py | 41ab56190fe6d9b099e71643a0ea3863b2cd438b | [
"MIT"
] | permissive | achiku/ansible-playbook-lnd | 84f23946ac34e04c2a877fe9f37045eb44636432 | 0e76111e58eaf8e11bd639719329c45cddfb5579 | refs/heads/master | 2021-08-30T00:37:56.406900 | 2017-12-15T11:41:21 | 2017-12-15T11:41:21 | 105,519,863 | 7 | 1 | null | null | null | null | UTF-8 | Python | false | false | 70,539 | py | #!/usr/bin/env python
'''
EC2 external inventory script
=================================
Generates inventory that Ansible can understand by making API request to
AWS EC2 using the Boto library.
NOTE: This script assumes Ansible is being executed where the environment
variables needed for Boto have already been set:... | [
"akira.chiku@gmail.com"
] | akira.chiku@gmail.com |
24707b53251bb31062a5561856da7cc3ab965ea4 | 898828a656914d5abeb5d87e11fdd46866310c53 | /smact/structure_prediction/__init__.py | c48e64a7c3251ff5300bcb3087f043129d65926e | [
"MIT"
] | permissive | mdommett/SMACT | e983552578b1a95e7bf8d114154856a411dc73dd | 0aa82b452856a54bad62032324d593f41ce1e11c | refs/heads/master | 2023-07-02T23:44:04.104316 | 2021-08-12T13:35:36 | 2021-08-12T13:35:36 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 342 | py | """Minimalist ionic compound prediction tools for materials design."""
import logging
__author__ = "Alexander Moriarty"
__credits__ = {
"WMD Group",
"Imperial College London",
"Andrew Jackson",
"Dan Davies",
"Keith Butler",
"Aron Walsh",
"Alexander Moriarty"
}
__status__ = "Development"
logger = loggin... | [
"k.t.butler@bath.ac.uk"
] | k.t.butler@bath.ac.uk |
7dd424133a11a8a56e217055df42adeb2b3d1c46 | 028a2a32511223b5a0645a7370ff2172b237d643 | /rsue_system_analysis/puro/migrations/0001_initial.py | c6ab028433cebe8b0579ceb6bf792e11594793d9 | [] | no_license | igor2104/rsue_system_analysis | 5941627146c648d4ee214040a340a66c9821b125 | 89bd2ee699edda8e254c54fd9020da2c94e5f96a | refs/heads/master | 2023-05-28T00:38:30.555472 | 2019-09-17T07:53:44 | 2019-09-17T07:55:51 | 208,991,381 | 0 | 0 | null | 2021-06-10T21:57:54 | 2019-09-17T07:47:47 | JavaScript | UTF-8 | Python | false | false | 3,614 | py | # Generated by Django 2.1.2 on 2018-12-11 08:32
from django.conf import settings
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
initial = True
dependencies = [
migrations.swappable_dependency(settings.AUTH_USER_MODEL),
]
ope... | [
"ermolov962104@gmail.com"
] | ermolov962104@gmail.com |
71d5280b4a1b28f3116aef25d72dd49e2f9abfc8 | 239d8eb48d82be04957fcdd3b67c967aff0c65e8 | /tests.py | 657c5643c7a7b0c3da5397e359b94154cbf48b38 | [] | no_license | Alejandro131/PythonPang | bd4a46f3c117108b0817617159ff5b042d401926 | fe6f09efdb03d6de46d66c4dff7c972a3e40e6c9 | refs/heads/master | 2020-04-22T17:11:00.566564 | 2013-07-01T07:30:33 | 2013-07-01T07:30:33 | 10,288,313 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 16,442 | py | import unittest
from pang.ball import Ball
from pang.vec2d import Vec2D
from pang.collision import *
from pang.obstacle import Obstacle
class BallToBoxCollisionTest(unittest.TestCase):
def setUp(self):
self.balls = []
self.results = []
self.box = Obstacle(Vec2D(200, 200), Vec2D(200, 200)... | [
"alex131_d@yahoo.com"
] | alex131_d@yahoo.com |
77b73a4c62c781666aa6f58703e8ed6973d129db | c61145e8771724575f67ae5738dd6cbb9626a706 | /blog/models.py | b885ebd7fe878c0266a464c1da35eb04d96169e5 | [] | no_license | Seredyak1/test_task | 1399dd082f4281ca6f72d036f4df4c1c6945dafe | a5d433b827df46ffa95dd6dd91245b204884674f | refs/heads/master | 2020-04-16T08:03:04.521740 | 2019-01-16T09:33:47 | 2019-01-16T09:33:47 | 165,409,648 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,118 | py | from django.contrib.auth.models import User
from django.db import models
class Post(models.Model):
class Meta:
verbose_name_plural = 'Posts'
ordering = ('-updated_at',)
user = models.ForeignKey(User, on_delete=models.CASCADE)
title = models.CharField(max_length=128, blank=True, null=True... | [
"sanya.seredyak@gmail.com"
] | sanya.seredyak@gmail.com |
14dd22e487e54a040da5d85ad85ac2b813b6311d | c7a305fc7223b2ef71017395016c06be9974d1d6 | /code.py | d2a8694f81ff61ec7864bd547df83fb9c06ee6a8 | [] | no_license | jlcampbell/breakout | 341bf59c59109d3755c1da17ff5571e3a26ddaac | 3310eea466ff8a8da7535c2510e6c9b2f27caeef | refs/heads/master | 2018-11-01T13:57:32.007415 | 2018-08-24T16:00:46 | 2018-08-24T16:00:46 | 113,598,543 | 0 | 1 | null | 2017-12-08T19:03:08 | 2017-12-08T17:09:26 | HTML | UTF-8 | Python | false | false | 446 | py | from adafruit_hid.mouse import Mouse
from adafruit_circuitplayground.express import cpx
import math
m = Mouse()
x, y, z = cpx.acceleration
x2 = x;
y2 = y;
z2 = z;
diff = 0
while True:
x, y, z = cpx.acceleration
if x-x2>0.5:
print(x-x2)
x2 = x;
y2 = y;
z2 = z;
m.move(... | [
"jlcampbell@users.noreply.github.com"
] | jlcampbell@users.noreply.github.com |
6232aafcfbc5dc48dba2b167a7a94597f50a2e88 | 5f681c02c8094a7c0c32dee9d8dec9c980a65850 | /config.py | 8c131656ded24690e9131f08c67cceaae0fb273d | [] | no_license | Page-Jiao/my-PANet | f6e376dcf2d57ffca2b90dc7dd6bcb44bc5ab58f | 30ab6f5f0aa40f87c1de47c58000fccb4cb7752d | refs/heads/master | 2021-05-17T12:26:14.864798 | 2020-03-31T01:58:45 | 2020-03-31T01:58:45 | 250,775,623 | 0 | 2 | null | null | null | null | UTF-8 | Python | false | false | 3,564 | py | """Experiment Configuration"""
import os
import re
import glob
import itertools
import sacred
from sacred import Experiment
from sacred.observers import FileStorageObserver
from sacred.utils import apply_backspaces_and_linefeeds
sacred.SETTINGS['CONFIG']['READ_ONLY_CONFIG'] = False
sacred.SETTINGS.CAPTURE_MODE = 'no'... | [
"jpq6699@mail.ustc.edu.cn"
] | jpq6699@mail.ustc.edu.cn |
88fbea7908fceadd92950d0d0eca62bc5c17eef9 | cd1bad03ef80e9112aaa97c950a1fc4d74da7fc7 | /Practice(Beginner)/Python3/Valid_Triangles.py | 8ff72befe620a4e69e94cd93acb9630a1e0a9208 | [] | no_license | UtsabSen/Codechef | 85a875443f0afbbc1b7b6d25e8731968ba385ae5 | 92ff47f6ae58824115bac15190c4c9f1b5a28e67 | refs/heads/master | 2021-04-02T22:47:28.711698 | 2020-05-16T08:56:54 | 2020-05-16T08:56:54 | 248,332,274 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 262 | py | # Source: https://www.codechef.com/problems/FLOW013
n = int(input())
l = [100,50,10,5,2,1]
for it in range(n):
a,b,c = map(int,input().split())
if(a+b+c == 180 and a > 0 and b > 0 and c > 0):
print("YES")
else:
print("NO")
| [
"noreply@github.com"
] | noreply@github.com |
f4018757458a86a63df44d42374c69ea3d612194 | de4d3fed2b538587124ad855c8ba2f30933e7edf | /backend/sparepart_main/sparepart_main/asgi.py | 597f5430d993ea910e06c11dd1b1488e41205dd3 | [] | no_license | zahydakhan/project_spare | aaea130edefa95630f73b3026de6c32800b0bc7f | 850374c270fd5ad2897bf9b6f0afb93b9e171059 | refs/heads/master | 2023-03-11T17:13:13.103574 | 2021-02-23T06:40:52 | 2021-02-23T06:40:52 | 339,530,703 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 405 | py | """
ASGI config for sparepart_main project.
It exposes the ASGI callable as a module-level variable named ``application``.
For more information on this file, see
https://docs.djangoproject.com/en/3.1/howto/deployment/asgi/
"""
import os
from django.core.asgi import get_asgi_application
os.environ.setdefault('DJANG... | [
"zahydakhan@gmail.com"
] | zahydakhan@gmail.com |
4660ea0d2890f4a7ae7e8f48cbe1f776c8393822 | de428c011b56db862f05ec0ceab17b85f83f94b1 | /pythongame/scenes_game/player_environment_interactions.py | bfdfdb4eea733e83b0f61229bf7c9e6e1f382640 | [] | no_license | risooonho/python-2d-game | c6d1fceaf09c72a6f7573230a4a899bf79164b7f | 24b02646ed56f9017069b243b774e0ee46951aea | refs/heads/master | 2021-05-17T06:02:13.538699 | 2020-02-15T23:59:54 | 2020-02-15T23:59:54 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,646 | py | import sys
from typing import Optional, Any, List, Tuple
from pythongame.core.game_data import CONSUMABLES, PORTALS
from pythongame.core.game_state import GameState, NonPlayerCharacter, LootableOnGround, Portal, WarpPoint, \
ConsumableOnGround, ItemOnGround, Chest, Shrine
from pythongame.core.game_state import Wor... | [
"jonte.murray@gmail.com"
] | jonte.murray@gmail.com |
4913c2722dadc4eab70e690b9fb6b88e0097a781 | f576f0ea3725d54bd2551883901b25b863fe6688 | /sdk/applicationinsights/azure-mgmt-applicationinsights/azure/mgmt/applicationinsights/v2022_06_15/aio/_application_insights_management_client.py | 8b411d38bef302c4b99c3ad09e97a57e5267f2e1 | [
"LicenseRef-scancode-generic-cla",
"MIT",
"LGPL-2.1-or-later"
] | permissive | Azure/azure-sdk-for-python | 02e3838e53a33d8ba27e9bcc22bd84e790e4ca7c | c2ca191e736bb06bfbbbc9493e8325763ba990bb | refs/heads/main | 2023-09-06T09:30:13.135012 | 2023-09-06T01:08:06 | 2023-09-06T01:08:06 | 4,127,088 | 4,046 | 2,755 | MIT | 2023-09-14T21:48:49 | 2012-04-24T16:46:12 | Python | UTF-8 | Python | false | false | 4,161 | py | # coding=utf-8
# --------------------------------------------------------------------------
# Copyright (c) Microsoft Corporation. All rights reserved.
# Licensed under the MIT License. See License.txt in the project root for license information.
# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may ... | [
"noreply@github.com"
] | noreply@github.com |
e03f8fc11f1346b5e6a15da61705ad3130f29de5 | 51ddb0e7ae60b50498842ddcfdeb73a82176e7e0 | /users/views.py | 7c11d8216c041018b572bb19fb33c52f5b12a0e7 | [] | no_license | Snehal-Borkar/Tradexa_Task | 2262ee79a6b76886393c13103f6ffd570a38602e | b20930feffaf8fa04512e0057bfdb74ff10f763c | refs/heads/main | 2023-09-03T18:29:13.005260 | 2021-10-28T10:50:12 | 2021-10-28T10:50:12 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,151 | py | from django.http import request
from django.http.response import HttpResponse,HttpResponseRedirect
from django.shortcuts import render
from django.contrib.auth import authenticate, login
from django.contrib.auth.decorators import login_required
from .models import Post
import datetime
# Create your views here.
def lo... | [
"borkarsnehal60@gmail.com"
] | borkarsnehal60@gmail.com |
c006ca77594cce7b285e3cb5b9081c678b8e1f01 | 668dad44beb30cadb170e32a8a7f0a57c42e653c | /denormalize_to_csv.py | d2910eec545e9f6d62c1a4e254eb4424ae66ed54 | [] | no_license | SEL-Columbia/ss_data_analysis | 22b72540732b03836423e18462495b2252a2cca8 | dfb8c2670cddbddbb693e5a3243bc829bccf5ae0 | refs/heads/master | 2016-09-05T12:31:00.546458 | 2013-10-21T23:01:34 | 2013-10-21T23:01:34 | 13,162,453 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,354 | py | import os
import datetime
import csv
import sys
"""
denormalize_to_csv.py
usage: python denormalize_to_csv.py logs_dir
description: Script to take a directory of sharedsolar log files
in csv format and denormalizes them such that they
can be concatenated together into "one big table"
... | [
"chris.natali@gmail.com"
] | chris.natali@gmail.com |
58917f325490ea31f0266642594353b9a3a355ea | 15f321878face2af9317363c5f6de1e5ddd9b749 | /solutions_python/Problem_135/2992.py | b11dac90d43eb4458792e75c04fcfe2c80575061 | [] | no_license | dr-dos-ok/Code_Jam_Webscraper | c06fd59870842664cd79c41eb460a09553e1c80a | 26a35bf114a3aa30fc4c677ef069d95f41665cc0 | refs/heads/master | 2020-04-06T08:17:40.938460 | 2018-10-14T10:12:47 | 2018-10-14T10:12:47 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 874 | py |
def read_case(file):
answer = int(file.readline()) - 1
for skip in range(4):
line = file.readline()
if skip is answer:
result = set(line.split())
return result
def read_input(filename):
with open(filename, "r") as in_file:
n_cases = int(in_file.readline... | [
"miliar1732@gmail.com"
] | miliar1732@gmail.com |
6146c5b1434b4cb8fedce9eaaf77a5bc2d36c4a0 | 26e20b10ca589ce3c5d4275ddb41d8ec0cb07c85 | /BOJ/이진 탐색/BaekJoon1920_수 찾기.py | d31eed6343de575158874e99602cdbca1e15fbbd | [] | no_license | Younggil-kim/CodingTestStudy | 4f53b2489e580567424e1d72f60af33291a51b91 | 83f24e7f4978f23b606a1f5efd38bba0e1408cbe | refs/heads/master | 2023-08-11T02:27:29.391700 | 2021-09-30T13:29:57 | 2021-09-30T13:29:57 | 291,027,331 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 580 | py | #문제 해석
#배열이 두 개 주어 질 때, 다른 배열에 있는지 없는지 검사하는 것
N = int(input())
lstN = list(map(int, input().split()))
M = int(input())
lstM = list(map(int, input().split()))
lstN.sort()
def binary_search(lst, target, start, end):
while start <= end:
mid = (start + end)//2
if lst[mid] == target:
prin... | [
"gom991@ajou.ac.kr"
] | gom991@ajou.ac.kr |
1c1f8b758977f0dd9d74a0b69d24b6199005bb45 | 08e3fce7e9b9b61ba82fbba108c94ddd9188c57d | /anagram.py | 69246bc094aef719ac6338a36e6fe7be58e812ff | [] | no_license | mistry-siddharth/Python_Practice_Problems | 57d558f6e11f4b79f7baeeaac042df7e1f7a5427 | 661637858699fa7eee0738a5be0d3c8cb404971f | refs/heads/master | 2021-01-13T13:47:58.016334 | 2017-01-13T02:04:08 | 2017-01-13T02:04:08 | 76,326,269 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 627 | py | def isAnagram(s, t):
'''
if s == '' and t == '':
return True
if len(s) != len(t):
return False
s_dict = dict()
t_dict = dict()
for x in s:
s_dict[x] = s_dict.get(x, 0) + 1
for x in t:
t_dict[x] = t_dict.get(x, 0) + 1
for (ks, vs), (kt, vt) in zip(... | [
"mistry.siddharth@gmail.com"
] | mistry.siddharth@gmail.com |
47ef83fb0fed19641baae48832b281e6d005b517 | cfbcad5f755e49144c02482f703e3f2529509594 | /py37/bin/python-config | a803be5d27e8b9f48f4c38a2216ca5f3ae2a4c9d | [] | no_license | k-petro/imbalanced | 42cdbceb817abfe58f767afafe655eb0e5579467 | 5119be74f0fed974f40dd7f9d2651ca9c6559f5e | refs/heads/master | 2023-07-20T02:26:27.524403 | 2019-10-09T12:08:58 | 2019-10-09T12:08:58 | 213,340,926 | 0 | 0 | null | 2023-07-06T21:47:26 | 2019-10-07T09:16:12 | Python | UTF-8 | Python | false | false | 2,386 | #!/Users/owenxoual/Desktop/DataHEC/quintenProject/unbalanced_data/py37/bin/python
import sys
import getopt
import sysconfig
valid_opts = ['prefix', 'exec-prefix', 'includes', 'libs', 'cflags',
'ldflags', 'help']
if sys.version_info >= (3, 2):
valid_opts.insert(-1, 'extension-suffix')
valid_opts... | [
"owen@ltutech.com"
] | owen@ltutech.com | |
3e7bd0e43f9e95ffadeefd0da7f5652ca4909e70 | c96f731c34725392cca689847d8a522f6e1784b4 | /Tasks 01/task_01.py | 7e54c06bdf656c31b34bce53e2647341412acdd4 | [] | no_license | maxn-csi/python-training | f10c0acbcc7ee7d7cd1443ec2558e4164e39d6d7 | deff7b42b1fc57520be05309a410049320eb70f9 | refs/heads/master | 2021-01-05T20:36:30.280774 | 2020-02-19T13:11:28 | 2020-02-19T13:11:28 | 241,130,739 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 483 | py | #!/usr/bin/python3.8
#
# task_01
#
# Пользователь вводит строку из букв в нижнем регистре.
# Нужно посчитать, сколько в этой строке английских гласных букв.
# Корректность ввода не проверять
string = input("Please enter a string: ")
print()
count = 0
for char in string:
if char in "aeiouy":
count += 1
... | [
"maksimnaydin@coherentsolutions.com"
] | maksimnaydin@coherentsolutions.com |
cc2ad3116de0306db35049502adbc9d2156c7f84 | a71a463c943da2a072212afa173d320fb4f5b849 | /final/settings.py | 5881f283409cc88d4f2df844efa71cb9c8e7d607 | [] | no_license | StevenDewey/ColorShades | a716760d36bf981f77a9db127e5a8e4afdc9c265 | 06ac1a9f4a3241ea03441ae72db8baf682087e91 | refs/heads/master | 2021-01-01T19:34:39.458805 | 2015-04-30T05:14:41 | 2015-04-30T05:14:41 | 34,835,413 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,065 | py | """
Django settings for final project.
For more information on this file, see
https://docs.djangoproject.com/en/1.7/topics/settings/
For the full list of settings and their values, see
https://docs.djangoproject.com/en/1.7/ref/settings/
"""
# Build paths inside the project like this: os.path.join(BASE_DIR, ...)
impo... | [
"s.dewey1@gmail.com"
] | s.dewey1@gmail.com |
c37513010dfe99c88f543eeb676cd5e01e77b7dc | 0f110f7055bff1d59cdad676d66f7b780eb3339f | /RidgeLassoEx/RidgeLassoEx.py | 96ad37276341e8aa2aa27ca41901e42643322997 | [] | no_license | jayantamajumdar/PredictiveModelingCode | 3ecc9a5fcfc6f6c4c1cc62a4f6edb1ccb47d3aa2 | 34a6c6ceea8b46ed1f3613d25beb7b52c25624e6 | refs/heads/master | 2021-01-10T10:37:19.343446 | 2015-06-04T18:36:34 | 2015-06-04T18:36:34 | 36,837,741 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,479 | py | # Autos.csv includes variables: MPG, cylinders, displacement, horsepower, weight, acceleration, origin, train
# 'train' variable indicates membership of observation in training set
# Determine best parameter for lasso and ridge models using 5 fold cross-validation
# Dependent Variable is MPG, for which the rest of the ... | [
"jayantamajumdar@utexas.edu"
] | jayantamajumdar@utexas.edu |
ccb2a7c0e19b3cee1a6508c55da7aa14629e579e | 64f87ff419844b032e4fa1c0379e898a0df16ad4 | /MinutesToYearsConversion.py | 95efc83bf75d975c8ebd687458f3cf22d6345e49 | [] | no_license | SushmaBR/FirstPython | cff075954b97379fe75ef3d46e58a785d64b8e32 | e836d86f3477f356503f140e73a0b523d059a5cc | refs/heads/master | 2021-05-14T21:46:49.355566 | 2017-11-01T06:03:55 | 2017-11-01T06:03:55 | 109,092,495 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 185 | py | min=float(input("Enter the minutes"))
hrs=min/60
days=hrs/24
years=days/365.25
yrs=min/60/24/365.25
print("hrs:",hrs)
print("days:",days)
print("years:",years)
print("yrs:",yrs) | [
"noreply@github.com"
] | noreply@github.com |
dd5b6cd1dcfa4e17a583abb6f173703c237f4563 | 0982fd61707a8f6242c9fe87bf70be13e443ba95 | /tools/dcgan.py | 532dad781e39116d6c144dd1ba0d595ad4a83a07 | [] | no_license | shinoairisu/MyM1-M2 | 5b0b58743a84e0828c77c6cc17672a211128160d | 5e97bf6b4e82f58b7a24ef275f6e468fbee91357 | refs/heads/main | 2023-06-24T02:27:45.663583 | 2021-07-29T04:09:05 | 2021-07-29T04:09:05 | 361,403,195 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,098 | py | # -*- coding: utf-8 -*-
from collections import OrderedDict
import torch
import torch.nn as nn
class Generator(nn.Module):
def __init__(self, nz=100, ngf=128, nc=3):
super(Generator, self).__init__()
self.main = nn.Sequential(
# input is Z, going into a convolution
nn.Con... | [
"noreply@github.com"
] | noreply@github.com |
0a202c67557ee336c4c55dc9270adb7cd16ef075 | d02eef71621fe1b08bc091de1892cd68c340373f | /python-syntax/any7.py | e4e0c420f0d520f0959051de6ce31b28c041c47b | [] | no_license | lexsac/python-syntax | c50578414a7fc3bd51737654a0bbb8758f6b65ac | f8e1ee325dff94092f82fba6b4cb94e07a2535d2 | refs/heads/main | 2023-07-27T22:22:28.603918 | 2021-09-12T00:14:58 | 2021-09-12T00:14:58 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 274 | py | def any7(nums):
"""Are any of these numbers a 7? (True/False)"""
# YOUR CODE HERE
for num in nums:
if num == 7:
return True
return False
print("should be true", any7([1, 2, 7, 4, 5]))
print("should be false", any7([1, 2, 4, 5]))
| [
"noreply@github.com"
] | noreply@github.com |
d72a2b7583ce54f89d3993c352ac10befa76bbb8 | 880847e3820aa18b9f255932634bc13e5aca63e8 | /python/SearchImages.py | f69794b791f7fd1a77ca23a7f57a57fc843b73fd | [
"MIT"
] | permissive | indeshan/Curiosity | bda26210027fb2cce7b5f8d78a6fcb23c46a1f83 | eb76edf54982d68ecec96664291ce3ce038e30c7 | refs/heads/master | 2023-06-23T12:27:35.825041 | 2021-07-28T04:05:35 | 2021-07-28T04:05:35 | 206,609,352 | 0 | 0 | MIT | 2020-10-07T11:19:43 | 2019-09-05T16:27:55 | Jupyter Notebook | UTF-8 | Python | false | false | 296 | py | import fnmatch
import os
images = ['*.jpg', '*.jpeg', '*.png', '*.tif', '*.tiff']
matches = []
for root, dirnames, filenames in os.walk("C:\"):
for extensions in images:
for filename in fnmatch.filter(filenames, extensions):
matches.append(os.path.join(root, filename))
| [
"noreply@github.com"
] | noreply@github.com |
b83c96cbe21aa2990f4a43514a5718fc6fc0a492 | 494893aa6efb8e81ba31e7241277632bb25e6d56 | /eig1.py | 710233c0ccf44176147b55901d5f36180379ed9d | [] | no_license | ZEYINWU/Singel-Cell | c7663c76302860314d6ad30e8658e4d8a4ba155c | 4d0e2ab54237b03443aa35cc3e40ff3cc1872c09 | refs/heads/master | 2020-06-10T12:47:08.043801 | 2016-12-08T17:38:22 | 2016-12-08T17:38:22 | 75,960,282 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 356 | py | from numpy import linalg as LA
def eig1(A):
eigen_A = LA.eig(A)
v = eigen_A[1]
d = eigen_A[0]
d1 = -np.sort(-d)
idx = np.argsort(-d)
idx1 = idx
eigval = d[idx1]
eigvec = v[,idx1].real
eigval_full = d[idx]
res=list()
res.append(eigval)
res.append(eigvec)
res.append... | [
"zeyinwu1992@gmail.com"
] | zeyinwu1992@gmail.com |
26ce3d24da31b82492985aea44d7b6fa84c31074 | 23d01d942c97a31e46529c4371e98aa0c757ecd1 | /hll/cnc/tools/cncframework/inverse.py | ae6f6df42ae6edf7f7466ed31751310500ed9ae1 | [
"BSD-2-Clause"
] | permissive | ModeladoFoundation/ocr-apps | f538bc31282f56d43a952610a8f4ec6bacd88e67 | c0179d63574e7bb01f940aceaa7fe1c85fea5902 | refs/heads/master | 2021-09-02T23:41:54.190248 | 2017-08-30T01:48:39 | 2017-08-30T01:49:30 | 116,198,341 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 7,183 | py | from itertools import chain
from sympy import Symbol, solve, Piecewise
from sympy.core import sympify
import cncframework.events.actions as actions
def tag_expr(tag, out_var):
"""Return out_var = tag as a SymPy expression."""
# since sympify will automatically equate to zero, we convert it to:
# tag_expr... | [
"romain.e.cledat@intel.com"
] | romain.e.cledat@intel.com |
70ec64d86ed5c0c271e847db24f5640fba8b206c | d6f95f4347c2bd934393603819787acf70aaf4eb | /2018年11月15日福建省/gg.py | af58924762c19caec1070c8e9830667202198a39 | [] | no_license | moto-faith/work | 531804bca7b6ecb6d9776ed2086bbf9952e2043b | e77e40dbbb7dbb80bd2bc2584a6d1d020f92d2b4 | refs/heads/master | 2020-04-08T11:20:37.533419 | 2019-03-18T08:09:27 | 2019-03-18T08:09:27 | 159,302,505 | 1 | 1 | null | null | null | null | UTF-8 | Python | false | false | 1,942 | py | #!/usr/bin/env python
#coding=utf-8
import time
import datetime
import re
import json
import requests
import time
import redis
import sys
from urlparse import urljoin
from db import DB
reload (sys)
import copy
import MySQLdb
sys.setdefaultencoding ("utf-8")
import htmlparser
from PIL import Image
de... | [
"noreply@github.com"
] | noreply@github.com |
bff52e00b4a04a210acca40c9976bc005d73aee2 | bcd696ad0ad74b092dcb1c2de66d497854a6b040 | /login/serializers.py | d9092a41471e012c80dfbe2002e139e5690bf5f1 | [] | no_license | gopalgoyal1999/login-logout-mongodb | df1d20f0197931f9c29e87e5d7acef84b0067314 | 225543e28e521947e81163d9cc7da72302d721f5 | refs/heads/master | 2022-10-28T10:25:16.707939 | 2020-06-19T10:44:02 | 2020-06-19T10:44:02 | 270,811,925 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,512 | py | from rest_framework_mongoengine import serializers,generics
#from django.contrib.auth import get_user_model
from mongoengine.queryset.visitor import Q
from django_mongoengine import fields
from django_mongoengine.mongo_auth.models import MongoUser
from .models import User
#User = get_user_model()
class UserCreateSeri... | [
"44091979+gopalgoyal1999@users.noreply.github.com"
] | 44091979+gopalgoyal1999@users.noreply.github.com |
6edd2272d0f7f9743514ba61f57c5843e4987222 | 8aab35fe94aac25d2315572bc16235016674de96 | /crawler/instagram.py | 3886aed5ceb6f847b933c6370c26c180800e50b5 | [
"MIT"
] | permissive | fablabnbg/nichtparasoup | ebe64b81ad16df6f1552048e27b1304ac6921984 | d66d80b02fe4c83868e5bd0639a77be965d37602 | refs/heads/master | 2020-12-06T17:20:55.114636 | 2015-04-11T00:31:06 | 2015-04-11T00:31:06 | 33,756,676 | 0 | 0 | null | 2015-04-11T00:30:27 | 2015-04-11T00:30:27 | null | UTF-8 | Python | false | false | 1,491 | py |
try:
import urllib.request as urllib2 # py3
except:
import urllib2 # py2
try:
import urllib.parse as urlparse # py3
except:
import urlparse # py2
import re
import json
from bs4 import BeautifulSoup
from . import Crawler, CrawlerError
class Instagram(Crawler):
""" instagram image provider ... | [
"jan.kowalleck@gmail.com"
] | jan.kowalleck@gmail.com |
6c4f7b1800279c5c259918a6a72d721df5e2ee24 | 4ee7c06dc561358753b1f31ce95a5806af80ec7f | /PycharmProjects/DiveIn01/DiveIn01.py | c48a6b265a966d0394d00387fb855afa36f82832 | [] | no_license | marc-hines/Sparky | 6890a36fcc25bc7e3d19ab8e7cc162d5353baed4 | 6048eb9156791a07982adf28d3ed49056cec115d | refs/heads/master | 2020-04-12T07:21:02.307798 | 2018-05-03T15:37:31 | 2018-05-03T15:37:31 | 64,499,638 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 965 | py | SUFFIXES = {1000: ['KB', 'MB', 'GB', 'TB', 'PB', 'EB', 'ZB', 'YB'],
1024: ['KiB', 'MiB', 'GiB', 'TiB', 'PiB', 'EiB', 'ZiB', 'YiB']}
def approximate_size(size, a_kilobyte_is_1024_bytes=True) :
'''Convert a file size to human-readable form.
Keyword arguments:
size -- file size in bytes
... | [
"marc.hines@cdk.com"
] | marc.hines@cdk.com |
a9fa1f05a49145676d8d384b3c7e7cc8f4b16897 | 33836016ea99776d31f7ad8f2140c39f7b43b5fe | /fip_collab/2016_09_26_polycrystal_FIP_allpoint/plot_evd.py | d523d88b853904fc3267a94e0c6fc19be735c236 | [] | no_license | earthexploration/MKS-Experimentation | 92a2aea83e041bfe741048d662d28ff593077551 | 9b9ff3b468767b235e7c4884b0ed56c127328a5f | refs/heads/master | 2023-03-17T23:11:11.313693 | 2017-04-24T19:24:35 | 2017-04-24T19:24:35 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,689 | py | # -*- coding: utf-8 -*-
import numpy as np
import matplotlib.pyplot as plt
import matplotlib.cm as cm
from constants import const
import h5py
import sys
def pltevd(H):
C = const()
"""define the colors of interest"""
n_col = len(C['sid'])
colormat = cm.rainbow(np.linspace(0, 1, n_col))
f_reg = h... | [
"noahhpaulson@gmail.com"
] | noahhpaulson@gmail.com |
52c71e113f95af5f97bc153819bd4e1a1df443ec | b35133adbff1dc6f586c95b959b08c88d9426a47 | /pythonTest/beforeBegin/3countWords.py | 782f6ecd8ef35eebfd942ae0707234333140144a | [] | no_license | honeysss/2019-04-20 | 276296b8669af8b2b44aeadceb9eefd0defb78e3 | d565471bc68b795f4bdc63f76ab2d7abb6bfbb35 | refs/heads/master | 2020-05-15T15:55:53.985883 | 2019-04-21T04:16:11 | 2019-04-21T04:16:11 | 182,381,338 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 454 | py | # 输入一个字符串 统计出字母 空格 数字 其他字符各有多少个
import string
s = input('input a string:')
letter = 0
space = 0
digit = 0
other = 0
# 遍历字符串
for c in s:
if c.isalpha():
letter += 1
elif c.isspace():
space += 1
elif c.isdigit():
digit += 1
else:
other += 1
# 这里不需要逗号分隔
print('字母有%d个,空格有%d个,数字有%d个,\
其他字符有%d个' %(letter, sp... | [
"907641898@qq.com"
] | 907641898@qq.com |
8031b6089c1c749fc677558f21b5e5fa3458d6de | 959c24200a36a5f96e76d35d5e5de63751a98927 | /OneDrive/Escritorio/bootcamp python/M2/Ejercicios/5/grupal/tablero_walter.py | 1c8a2c8d1c5e0ec39539eb7c44ca069bea7f175e | [] | no_license | Maguilera85/tarea5g_m2 | 3787cf24e66ffe072a94886c0be3192e83f640fd | 9cdcc3a90e62e5e6725f66df7301222c0c537e55 | refs/heads/master | 2023-02-12T08:07:17.551456 | 2020-11-05T23:07:01 | 2020-11-05T23:07:01 | 310,428,883 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,249 | py | def imprimir_tablero(tablero):
for fila in tablero:
for i in range(len(fila)):
if i == len(fila) - 1:
print(fila[i], end='\n')
else:
print(fila[i], end=' ')
def cambiar_tablero(tablero, posicion, jugador):
if jugador:
simbolo = 'x'
e... | [
"drianketing@gmail.com"
] | drianketing@gmail.com |
6a48d215e7e64e2bf3e5b6d0e175a107b0de42fc | 6ddaecc7720aaf29af41fa251f256683882d7a98 | /CodeAcademy-Python/hurricane_analysis_ending/script.py | d390280e73743fa318ed871457a9fa96ea6f817a | [] | no_license | ShivaKakarla512/CodecademyProjects | 114b579139195da0b99b040f1226450d63eee746 | cd728792e4da03969e51b3c69fb36aed47457654 | refs/heads/master | 2022-06-23T09:49:06.180408 | 2020-05-11T09:28:10 | 2020-05-11T09:28:10 | 262,997,123 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 10,957 | py | # names of hurricanes
names = ['Cuba I', 'San Felipe II Okeechobee', 'Bahamas', 'Cuba II', 'CubaBrownsville', 'Tampico', 'Labor Day', 'New England', 'Carol', 'Janet', 'Carla', 'Hattie', 'Beulah', 'Camille', 'Edith', 'Anita', 'David', 'Allen', 'Gilbert', 'Hugo', 'Andrew', 'Mitch', 'Isabel', 'Ivan', 'Emily', 'Katrina', '... | [
"noreply@github.com"
] | noreply@github.com |
ab6333b26ca5c5e92c98730f02f2f883ba820907 | 9743d5fd24822f79c156ad112229e25adb9ed6f6 | /xai/brain/wordbase/verbs/_frizzing.py | 1ed7c522d5ae15fc66c9c2b646ba67fb89ea4cfa | [
"MIT"
] | permissive | cash2one/xai | de7adad1758f50dd6786bf0111e71a903f039b64 | e76f12c9f4dcf3ac1c7c08b0cc8844c0b0a104b6 | refs/heads/master | 2021-01-19T12:33:54.964379 | 2017-01-28T02:00:50 | 2017-01-28T02:00:50 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 235 | py |
from xai.brain.wordbase.verbs._frizz import _FRIZZ
#calss header
class _FRIZZING(_FRIZZ, ):
def __init__(self,):
_FRIZZ.__init__(self)
self.name = "FRIZZING"
self.specie = 'verbs'
self.basic = "frizz"
self.jsondata = {}
| [
"xingwang1991@gmail.com"
] | xingwang1991@gmail.com |
0ba11892cfabb4de64c8d0762f24f627263354a8 | 491401e64e372cb1ae2d650a00e79c3e074a5005 | /neural_networks/rnn.py | 56fd46a4baa74a39bcf16a744491bca37c2ff259 | [] | no_license | alexeytra/textAnalization | a913e8434ff3496edc7b0bda6f95fe49075cb5b8 | 64cd3fc5fa343f70e1dd2239e2896dbd88986f16 | refs/heads/master | 2020-05-15T11:37:42.632988 | 2019-08-27T14:32:07 | 2019-08-27T14:32:07 | 182,238,101 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,943 | py | from keras.models import Sequential
from keras.layers import Dense, Dropout, SpatialDropout1D
from keras.layers import Embedding
from keras.layers import LSTM
from keras.preprocessing.text import Tokenizer
from keras.preprocessing import sequence
from sklearn.preprocessing import LabelEncoder, LabelBinarizer
import pan... | [
"alekceytr@mail.ru"
] | alekceytr@mail.ru |
e35c47d421a21cc2c02d82e0af606b3cd2c09b18 | f7d11d0d0061199c85aee31bda43e14f20bed921 | /pestle/pestle/sigtools/SigSubtract/__init__.py | 8cd8814acb0ab099197e38f8c0c62877d34d2f5c | [] | no_license | NoopDawg/pestle_tools | 632199586775196a6d5a5573608f90b5659f59fd | 7edec01dd2f270c4bd4f6918e9d9ac37b7c63b17 | refs/heads/master | 2022-07-26T09:41:36.168181 | 2020-05-11T19:13:45 | 2020-05-11T19:13:45 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 499 | py | import os
from pestle.pestle.base.SigTool import SigTool
from pestle.utils import pestlepath
class SigSubtract(SigTool):
from ._checkArgs import _checkArgs
from ._runAnalysis import _runAnalysis
from ._saveResults import _saveResults
def __init__(self, *argv):
sigName = "SigSubtract"
... | [
"APJonchhe@gmail.com"
] | APJonchhe@gmail.com |
16b69ed33c7b2ded52714eaba17e201c2f861ee0 | 0066a5657bcaabd536f716c55b7b110b3ff5126c | /tests/conftest.py | 0ed63ae40ddf4fe4bfbb46eaf42231bc1bece811 | [
"MIT"
] | permissive | Windact/classification_model | f684bd3b3040c63a1dd0af41ea015930bd6b37dc | e42e8099069467eeb21f94f6777eb34e68906500 | refs/heads/main | 2023-05-27T21:08:29.238115 | 2021-06-08T22:46:12 | 2021-06-08T22:46:12 | 362,130,332 | 0 | 0 | MIT | 2021-06-08T22:46:12 | 2021-04-27T13:53:33 | Python | UTF-8 | Python | false | false | 1,390 | py | import pytest
import numpy as np
from sklearn.model_selection import train_test_split
from classification_model.config import core
from classification_model.processing import utils
@pytest.fixture(scope="session")
def pipeline_inputs():
# read the data
data = utils.load_dataset(core.config.app_config.TRAINI... | [
"52325204+Windact@users.noreply.github.com"
] | 52325204+Windact@users.noreply.github.com |
b6f490deab8b0d16a1adff8b3c97ecf942ab4482 | 9908dc07233b4025425dc212b5e4acb3b087971e | /Medium/findRedundantConnection.py | c3fd9af33cb44dbda9d4c81e96ae23b61cd0a8ad | [] | no_license | Abdelhamid-bouzid/problem-Sovling- | 15769da71d19186947607574860462ad81f34e40 | fa0eecab8a94d1ad20b5aa129973f59eddd5678d | refs/heads/main | 2023-08-27T21:49:32.337979 | 2021-10-23T21:57:55 | 2021-10-23T21:57:55 | 317,097,388 | 3 | 0 | null | null | null | null | UTF-8 | Python | false | false | 646 | py | class Solution:
def findRedundantConnection(self, edges: List[List[int]]) -> List[int]:
self.g = collections.defaultdict(list)
for u,v in edges:
self.g[u].append(v)
self.g[v].append(u)
for u,v in edges[::-1]:
self.vis=set()
self.dfs(1,... | [
"noreply@github.com"
] | noreply@github.com |
b2987bc90d057d88982c7203de4a1b0a7c0ff006 | 26ba2331378b2315a599106f6a9f1a774e957e06 | /binary tree/No116_node_next.py | 885db67e4da23daf8868792ebc33a6715bcd418d | [] | no_license | riCoYanG-byte/leetcode | 353e22714355524b93581ac993f16fb79774226a | b2c0d058197e8f1822eb2519aa46f6586c7c4758 | refs/heads/master | 2023-02-13T17:24:41.351621 | 2021-01-07T12:39:05 | 2021-01-07T12:39:05 | 299,176,772 | 8 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,369 | py | import collections
# similar question like zigzag
class Solution:
def connect(self, root: 'Node') -> 'Node':
if not root:
return root
# Initialize a queue data structure which contains
# just the root of the tree
Q = collections.deque([root])
# Outer while loo... | [
"839891341@qq.com"
] | 839891341@qq.com |
9a8c303ddd1cc2644a61c45509904c05e637617c | f6898848211786f2e949be5e1171f8221ab2bff4 | /tools/package.py | 5e8ac65886343c3d9e756ff60abba4817f1a1e9c | [] | no_license | jmaack24/VortexSim | cfbeb21d56d4a64b8b2ed49e26ce7b4cb4d95c1f | 9ec5f3a4b9d7c2bc8c6a734764807f35e262668f | refs/heads/master | 2020-03-19T10:14:57.123815 | 2018-06-06T17:35:35 | 2018-06-06T17:35:35 | 136,354,788 | 0 | 0 | null | 2018-06-06T17:35:36 | 2018-06-06T16:14:51 | null | UTF-8 | Python | false | false | 2,710 | py | #!/usr/bin/python
import argparse
import os
import subprocess
# Set locations for various things
home = os.path.expanduser("~")
VORTEX = home + "/Vortex/"
SCRIPTS = home + "/Vortex/tools/"
RESULTS = home + "/Vortex/output/"
CLOSE = home + "/Vortex/results/"
LOG = home + "/Vortex/log/"
DATA = home + "/Vortex/data/"
BI... | [
"noreply@github.com"
] | noreply@github.com |
a8c9784d544998ce1bf6a21ee7527612137dfd25 | f398f6914329be8f6368206c124107d46d88f051 | /datacleaning/remove_duplicate_980_HEP.py | 5f927121566b8cbe22108db900fae69cc37ee423 | [] | no_license | robk5uj/inspire-scripts | ecb0f9d8730a9227a3efedc45c1a30f7941f0256 | 58d0548a6f6364cec693b85eb52d297d4da6607e | refs/heads/master | 2021-01-15T17:45:44.470206 | 2014-12-27T21:54:54 | 2014-12-27T21:54:54 | 28,985,933 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,134 | py | from tempfile import mkstemp
import os
import time
from invenio.search_engine import perform_request_search
from invenio.config import CFG_TMPDIR
from invenio.dbquery import run_sql
from invenio.bibtask import task_low_level_submission
from invenio.search_engine_utils import get_fieldvalues
from invenio.search_engine ... | [
"alessio.deiana@cern.ch"
] | alessio.deiana@cern.ch |
d016ea701a2d78e5839118e6dee223ab0a6da631 | 9962d61f6a4f1bc9c61070e5cdfb15d16a577580 | /calcWinRate.py | 644676bd64d5bd407a4e8fa3e1d614a256fcb7ab | [
"MIT"
] | permissive | timwuu/AnaPoker | d03171d2082b3053b186a52d5e2f020952d41fb1 | 7cb125c4639a5cd557a6b45c92b5793dcc39def8 | refs/heads/main | 2023-09-01T19:14:10.989765 | 2021-10-04T03:44:54 | 2021-10-04T03:44:54 | 404,658,716 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,998 | py | import sys
import random
import ranks
gCOMBIN_7_5 = []
def card( num, pattern):
return num*4 + pattern - 7
def card_pattern( n):
s = card_no(n)
return s + ('s','c','d','h')[n%4] # 2021.10.04 changed format
#return ('S','C','D','H')[n%4] + '.' + s
def card_no(n):
return ('1','2','3','4','5'... | [
"timwuu@gmail.com"
] | timwuu@gmail.com |
61e3e3ae436a1ef9bc2ce4e44b7ecf8735fa75ae | b6996fe334a4d2e21a7a360ca3b75439a1509b20 | /Check_IP/Check_IP.py | f6b6564395cf3869e99ab688d1d8662ac728106c | [] | no_license | TarampikosAndreas/Python-Exercises | d979c2faec70585e02a2e66ce470c6256514aa2e | 1fa6bc5575e0027b520c0e75ccd2f5becac788c2 | refs/heads/master | 2020-03-25T11:38:36.899431 | 2018-08-07T09:24:47 | 2018-08-07T09:24:47 | 141,704,126 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 163 | py | import socket
ip = input('Enter an IP Address :')
try:
socket.inet_aton(ip)
print("Valid IP")
except socket.error:
print("Not Valid IP")
| [
"TarampikosAndreas@users.noreply.github.com"
] | TarampikosAndreas@users.noreply.github.com |
e21060ab2adb49b9091ed1b2891b907ec09d1ca1 | e25e3be8ec84f351537b4ec848a3d23544997f63 | /time_display/settings.py | f204540b041f4db9ea0b2df72723f0e6e91c7fa9 | [] | no_license | GodwinYeboah1/time_display | e6b5f7022a0b47f3c3c51389510d0d1c0ed6207f | 31854efecb205a41e7e65df9f2c705ceb86e3fb6 | refs/heads/master | 2021-05-10T14:49:18.893870 | 2018-01-23T00:00:28 | 2018-01-23T00:00:28 | 118,531,560 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,133 | py | """
Django settings for time_display project.
Generated by 'django-admin startproject' using Django 1.10.
For more information on this file, see
https://docs.djangoproject.com/en/1.10/topics/settings/
For the full list of settings and their values, see
https://docs.djangoproject.com/en/1.10/ref/settings/
"""
import... | [
"godwinyeboah95@gmail.com"
] | godwinyeboah95@gmail.com |
e64b09a0dfc3298c8150eac7cb5c0abb33f81534 | 52794dc6a97afe04e4237c7298bd6984d92b6e1e | /venv/Scripts/pip3-script.py | 0f607a6b5eeda1ec7597fdb04298694f605c444f | [] | no_license | namitmohale/HumanDetection | 15635792b92acee00bb22ff12387ec5360290b08 | bd69c4271a518f312bc117716c019d316a37b53e | refs/heads/master | 2020-04-09T05:55:22.226721 | 2019-05-22T21:49:53 | 2019-05-22T21:49:53 | 160,087,084 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 416 | py | #!C:\Users\mohal\PycharmProjects\CVProject2\venv\Scripts\python.exe
# EASY-INSTALL-ENTRY-SCRIPT: 'pip==10.0.1','console_scripts','pip3'
__requires__ = 'pip==10.0.1'
import re
import sys
from pkg_resources import load_entry_point
if __name__ == '__main__':
sys.argv[0] = re.sub(r'(-script\.pyw?|\.exe)?$', '', sys.ar... | [
"mohale.namit95@gmail.com"
] | mohale.namit95@gmail.com |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.