blob_id stringlengths 40 40 | directory_id stringlengths 40 40 | path stringlengths 2 616 | content_id stringlengths 40 40 | detected_licenses listlengths 0 69 | license_type stringclasses 2
values | repo_name stringlengths 5 118 | snapshot_id stringlengths 40 40 | revision_id stringlengths 40 40 | branch_name stringlengths 4 63 | visit_date timestamp[us] | revision_date timestamp[us] | committer_date timestamp[us] | github_id int64 2.91k 686M ⌀ | star_events_count int64 0 209k | fork_events_count int64 0 110k | gha_license_id stringclasses 23
values | gha_event_created_at timestamp[us] | gha_created_at timestamp[us] | gha_language stringclasses 213
values | src_encoding stringclasses 30
values | language stringclasses 1
value | is_vendor bool 2
classes | is_generated bool 2
classes | length_bytes int64 2 10.3M | extension stringclasses 246
values | content stringlengths 2 10.3M | authors listlengths 1 1 | author_id stringlengths 0 212 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
73d3562cc8169b63495c78ae59440d22cfde758f | c2a6adcfb2319b67922c646ebfb70a8f189c5e12 | /moya/command/sub/filesystems.py | 6f9c3ad92bb93bc098833bb4b4daee56548919fe | [
"MIT"
] | permissive | metaperl/moya | d8624664382370ca28502b43a91f69d856b79aa3 | 960d504e98da643ae870e85a75ad0ed183fabfa2 | refs/heads/master | 2020-06-24T20:33:53.771757 | 2016-09-11T14:44:25 | 2016-09-11T14:44:25 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 12,106 | py | from __future__ import print_function
from __future__ import unicode_literals
from __future__ import absolute_import
import os
from ...command import SubCommand
from ...wsgi import WSGIApplication
from ...console import Cell
from ...compat import text_type, raw_input
from fs.opener import fsopendir
from fs.errors im... | [
"willmcgugan@gmail.com"
] | willmcgugan@gmail.com |
701b994d2b8c8b09b9fbfc52af044fe27f7a4ed4 | 7f87a68d69e41ddc2e4cf67d019eaf74f823a5e5 | /models/post.py | 930e32e74d00ff3f299092c59ab27b565f00e492 | [] | no_license | wgwjifeng/Publish | 5b9ac129bca819077ddc1edaa5c54240a51a5a64 | 9a0cc10278bdd71b93d539c23daae86c469ff5c9 | refs/heads/master | 2020-04-04T02:59:45.206878 | 2016-04-10T13:58:16 | 2016-04-10T13:58:16 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 679 | py | # -*- coding: utf-8 -*-
import sqlalchemy as sa
from sqlalchemy.ext.declarative import declarative_base
Base = declarative_base()
class Post(Base):
__tablename__ = 'post'
__table_args__ = {
'mysql_charset': 'utf8',
}
id = sa.Column(sa.Integer, primary_key = True, autoincrement = True)
ti... | [
"1016903103@qq.com"
] | 1016903103@qq.com |
fd634b5a0f7144f8919b3ba701529f52f30990f2 | f2770a694a8aedb71c326ced49e76531d69d9f4f | /bin_SPIDERS_AGN/create_gaia_mask_2RXS.py | c1ba0a341fabe82650c3c0d62c2cea216a8ff4d4 | [] | no_license | JohanComparat/makeSample | 258280ccb0f9dfa7dc13e934f453c520a1f416b8 | b15f942f51750f504150f6ec29eba857123c29c4 | refs/heads/master | 2021-06-07T18:21:27.559530 | 2020-01-22T08:46:04 | 2020-01-22T08:46:04 | 106,016,246 | 2 | 2 | null | null | null | null | UTF-8 | Python | false | false | 5,675 | py | import astropy.io.fits as fits
import os, sys, glob
from os.path import join
#import pymangle as mangle
import numpy as np
import matplotlib.pyplot as p
from scipy.interpolate import interp1d
import astropy.units as u
import astropy.cosmology as cc
cosmo = cc.Planck13
from astropy.coordinates import SkyCoord
from skl... | [
"johan.comparat@gmail.com"
] | johan.comparat@gmail.com |
d40c9cc8024fef9549347f41beb2dad2ef0fbe36 | 79945ed5fa2bdc4adbc96008d40e7b1f4f741b9f | /keyPressed.py | 7e26fe461de7dd72666a4ad7d0ec587c3b2b3cd0 | [] | no_license | Zaraklin/ContinuousAuthDataAnalyzer | ce4414fc64d2dee0bfae90ff5f0a380c67b5be84 | ce2da60582056ebff2774db0ee75d3865f4daafd | refs/heads/master | 2021-04-15T02:17:11.488103 | 2020-03-22T22:44:10 | 2020-03-22T22:44:10 | 249,286,439 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,090 | py | class KeyPressed(object):
def __init__(self, data):
self.__dict__ = data
self.intervalBetweenKeyPress = self.__dict__["intervalBetweenKeyPress"]
self.keyPressed = self.__dict__["keyPressed"]
def __repr__(self):
return str(self)
def __str__(self):... | [
"zaraklin@users.noreply.github.com"
] | zaraklin@users.noreply.github.com |
4e2274addc319ca71c1ddd6fb261f8e950e2a1d7 | 685fa64398a4af7529c16de12edbb430aa8f444c | /OnlineAssesment/Amazon/MaximumUnit.py | 9682d0328d9be7eec7ae123f7eda75e144b110a1 | [] | no_license | aakashpatel25/InterviewQuestions | 2407c83c911587f2e648ae150463412dac5cd626 | 2f8e8a33747affdabb10f4bc478fe545e7f09a4c | refs/heads/master | 2022-12-15T02:18:22.645049 | 2020-09-19T03:19:53 | 2020-09-19T03:19:53 | 296,470,873 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 629 | py | """
https://leetcode.com/discuss/interview-question/793606/
Approach: Compute the number of units for each box sort it in descending order and fill up the truck till it is full.
Time Complexity: O(MlogM) - Sorting would require this complexity
Space Complexity: O(M) - Where M sum(boxes)
"""
def get_max_unit(num, box... | [
"aakashpatel775@gmail.com"
] | aakashpatel775@gmail.com |
8780c7cb4a2857a1136d8ebd11d3ba4e48effcab | 7c0d51af5c615ee557e4189444ca9c00a53f1b1e | /query.py | d28fdb045cc532b8757b6bdd8022ed052dd220b2 | [] | no_license | akhiljain0777/wikigraph | c68fd2787b7fc99a6fd38658bc1e81f522a3d51d | 08fd74ea020f5eedec641e5878128985c1e6c758 | refs/heads/master | 2020-05-21T08:06:34.508241 | 2015-01-21T18:32:41 | 2015-01-21T18:32:41 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,697 | py | from py2neo import neo4j
import json, time
def find_shortest_path(node1, node2):
"""Connects to graph database, then creates and sends query to graph
database. Returns the shortest path between two nodes.
Format: (67149)-[:'LINKS_TO']->(421)"""
graph_db = neo4j.GraphDatabaseService()
t0 = time.t... | [
"erabug@gmail.com"
] | erabug@gmail.com |
ac7ed1ceb5306083b6350f9abe9ce05b8d24226a | cd713f083d719dcdf219a72f6f7f0f506a128e14 | /weather.py | 42cfc558f2d5c465ecfc60f2e103c40b290d09d8 | [] | no_license | patricia1387/IPK-projekt | 2397b469f4a8d5e081b6c9565045acee8b1652a7 | f3dc0e77e0d5c202e713fcfa2fbd2bd4ff6f096d | refs/heads/master | 2020-05-18T03:02:10.841575 | 2019-04-29T19:55:40 | 2019-04-29T19:55:40 | 184,134,410 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,176 | py | #!/bin/env python3
import sys
import socket
import json
from socket import *
if len(sys.argv) != 3:
sys.stderr.write("Wrong number of arguments\n")
sys.exit()
CITY = sys.argv[2]
API_KEY = sys.argv[1]
HOST = "api.openweathermap.org"
message = 'GET /data/2.5/weather?q='+CITY+'&APPID='+API_KEY+'&units... | [
"noreply@github.com"
] | patricia1387.noreply@github.com |
adee2f37c5e416cdc0042d01d5194f7e63586daa | 71ea474548cd7521723c97b48abe1ff03e54a4a4 | /optimal_covering.py | 534e24212a673ce559b7ec48820a05ff451e2a1f | [] | no_license | wfedorko/optimal_covering | 7d6eaca0c9bb96fc7ac4ba19a83df26c02b858c0 | f0ab5559c7b0519df3dd0cd9441f48b7b017f6ce | refs/heads/master | 2020-08-09T07:35:11.144149 | 2019-10-09T22:08:44 | 2019-10-09T22:08:44 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,182 | py | import numpy as np
import matplotlib.pyplot as plt
from mpl_toolkits.basemap import Basemap
from shapely.geometry import Polygon
from datetime import datetime
import os
import itertools
import time
import random
from modules.earth_data import clouds
from modules.utils import time_utils
from modules.optimiz... | [
"callum189@gmail.com"
] | callum189@gmail.com |
5853f6d3503fb35e9598547cafd94efd8a76e23c | 2bdedcda705f6dcf45a1e9a090377f892bcb58bb | /src/main/output/issue/student_year/change/state/point/moment.py | ee124633f30626ea2579ff142848cd93d68a4ae2 | [] | no_license | matkosoric/GenericNameTesting | 860a22af1098dda9ea9e24a1fc681bb728aa2d69 | 03f4a38229c28bc6d83258e5a84fce4b189d5f00 | refs/heads/master | 2021-01-08T22:35:20.022350 | 2020-02-21T11:28:21 | 2020-02-21T11:28:21 | 242,123,053 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,730 | py | var express = require('express');
let https = require ('https');
let body = '';
let host = 'api.microsofttranslator.com';
let path = '/V2/Http.svc/TranslateArray';
let target = 'en';
let params = '';
let ns = "http://schemas.microsoft.com/2003/10/Serialization/Arrays";
let content =
'<TranslateArrayRequest>\n... | [
"soric.matko@gmail.com"
] | soric.matko@gmail.com |
6963950662de49a1b19ec0ddd269e009f1a95243 | f19ef1f67be42b17e75bf62fe0c7cc18dedceb81 | /shop/migrations/0031_product_likes.py | 7801fed65c933e126c9fc3c4a3cde57dac4c6160 | [] | no_license | FatfoutiMontassar/django | 5ec1164a14a0ed77f673372d9b62367444982c47 | f63dfd053314311e24aabf969ed1cb154e186493 | refs/heads/master | 2020-11-30T00:33:36.161003 | 2017-08-25T14:54:56 | 2017-08-25T14:54:56 | 95,864,961 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 564 | py | # -*- coding: utf-8 -*-
# Generated by Django 1.10 on 2017-07-09 22:23
from __future__ import unicode_literals
from django.conf import settings
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
migrations.swappable_dependency(settings.AUTH_USER_MODEL),
... | [
"montassar.fatfouti@supcom.tn"
] | montassar.fatfouti@supcom.tn |
83b1aa1cb7e5ac74c85cac1b03d678a6da5ecb50 | 5fffb4c907ca25c8481ae2cf3a9d4b97ae746117 | /bloomfilter.py | d563f6f0e3c4f5a4635b0cd538da180ce95cce25 | [] | no_license | dengguoguo/algorithm | b7aa47c559339ed64c464ca1fd6763f8d11cd850 | 316e06bc6ad163eaff8644d1d88a04fccaad06d8 | refs/heads/master | 2020-04-07T11:45:59.786332 | 2018-11-20T06:54:12 | 2018-11-20T06:54:12 | 158,339,921 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,569 | py | # -*- coding: utf-8 -*-
# @Time : 2018/8/17 11:42
# @Author : dengguo
# @File : bloomfilter.py
# @Software: PyCharm
"""
如果想判断一个元素是不是在一个集合里,一般想到的是将所有元素保存起来,然后通过比较确定。
链表,树等等数据结构都是这种思路. 但是随着集合中元素的增加,我们需要的存储空间越来越大,检索速度也越来越慢。
不过世界上还有一种叫作散列表(又叫哈希表,Hash table)的数据结构。
它可以通过一个Hash函数将一个元素映射成一个位阵列(Bit Array)中的一个点。
... | [
"609085005@qq.com"
] | 609085005@qq.com |
5a55e22c0047fbb7206c9582f0074d7c4212b789 | e8ea8c6049ce3168753d06a23ed44cca7aadf098 | /baselines/racing/experiments/acme/__init__.py | 216f423713605af9bbba13e06ab3182dd577a776 | [] | no_license | luigiberducci/racing_dreamer | a05ec0e8a611d8c819f70c2b9b16bb97f52b2462 | 6ae736a577573682b17e67e63537c3c00de21b22 | refs/heads/main | 2023-08-24T09:20:40.262976 | 2021-10-23T10:32:58 | 2021-10-23T10:32:58 | 350,778,233 | 0 | 0 | null | 2021-03-23T16:16:08 | 2021-03-23T16:16:07 | null | UTF-8 | Python | false | false | 1,932 | py | from functools import partial
from typing import Optional, Union, Dict
from baselines.racing import make_mpo_agent
from baselines.racing.algorithms.d4pg import make_d4pg_agent
from baselines.racing.algorithms.lstm_mpo import make_lstm_mpo_agent
from baselines.racing.experiments.acme import SingleAgentExperiment
import... | [
"axel.brunnbauer@gmx.at"
] | axel.brunnbauer@gmx.at |
20788e9de508e3703d0c702bb4d7af18d499b85f | eab8f79829f1f5d3050a4f47b240b79f9e37dbda | /unused_oil_effect.py | 3dfaf355a9044ebf4ae7e2928026e72c616eb274 | [] | no_license | ZichangYe/AdvancedPython2021 | 5c5f3df36db4a34f3531f44b550ae79b0a520b69 | a2aad24f2e8c9242c6551724fe9bb4b67171cdc0 | refs/heads/main | 2023-05-03T12:49:29.758440 | 2021-05-12T03:41:33 | 2021-05-12T03:41:33 | 363,002,008 | 4 | 3 | null | null | null | null | UTF-8 | Python | false | false | 1,697 | py | import numpy as np
from itertools import product
def img_filter(img, locations, radius=3, level=10):
'''
this algorithm select the most frequent intensity group in the kernel,
and average r,b,g in the pixel group, it makes the original image like oil painting
:param img: 3d image array height, width, c... | [
"54514463+PygMali0n@users.noreply.github.com"
] | 54514463+PygMali0n@users.noreply.github.com |
cc48c048975e45adac7805c2e2bb0d29228dbacb | 74bdcbc8781e850d1088e506ffd758038c7ee7d9 | /pytty/lukija.py | d4d613b1c7e9cf900f760151b0c983e52db54b6d | [] | no_license | ToniTSaari/Beginning | 0522209d0ceb1367871c96ffcd4b9dc3a4460eaa | 16b318e6de49017e3e6b8f9ee60743a0a4ed5ce6 | refs/heads/master | 2020-07-16T23:30:37.120940 | 2019-11-15T09:41:56 | 2019-11-15T09:41:56 | 205,891,313 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 410 | py | import os
dir = os.getcwd()
juuri = os.path.abspath('..')
print(dir)
print(juuri)
print(["Tiedosto","Koko"])
for file in os.listdir(dir):
content = [file] + [str(os.path.getsize(os.path.join(dir, file)))]
print(content)
print()
print(["Tiedosto","Koko"])
for file in os.listdir(juuri):
... | [
"noreply@github.com"
] | ToniTSaari.noreply@github.com |
514580033b9cd1a0d335e94d0eccc4cf36a36f2b | 0ae2bb21d7ca71a691e33cb044a0964d380adda2 | /EA/LC160IntersectionOfTwoLinkedLists.py | 4c7fb25db05293025b1189d2b23daabae55d0cf8 | [] | no_license | xwang322/Coding-Interview | 5d27ec92d6fcbb7b929dd98bb07c968c1e1b2a04 | ee5beb79038675ce73c6d147ba9249d9a5ca346a | refs/heads/master | 2020-03-10T08:18:34.980557 | 2018-06-24T03:37:12 | 2018-06-24T03:37:12 | 129,282,263 | 2 | 6 | null | 2018-04-19T19:31:24 | 2018-04-12T16:41:28 | Python | UTF-8 | Python | false | false | 1,299 | py | # Definition for singly-linked list.
# class ListNode(object):
# def __init__(self, x):
# self.val = x
# self.next = None
class Solution(object):
# O(n) space
def getIntersectionNode(self, headA, headB):
if not headA or not headB:
return None
visited =... | [
"noreply@github.com"
] | xwang322.noreply@github.com |
d8440c333807f499183b5d7c0271f43a4a5eddf3 | bb32566f0c4688292b8f37d29630e0b7a18be24b | /checkio/cipher-map.py | d7b90088c37eff5bec1701186b7ee4eab0cc5e34 | [] | no_license | Chencheng78/python-learning | 4c7dd3a5ad39ac2e96b9ff0a1b9aabb56e863f7f | 63eb7ee9e547f899eafa698556f6adeb518795bb | refs/heads/master | 2022-07-27T02:40:03.067820 | 2022-07-12T09:05:47 | 2022-07-12T09:05:47 | 55,224,905 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 649 | py | def clockwise_90(matrix):
matrix.reverse()
return list(map(list,zip(*matrix)))
def recall_password(grille,password):
cipher_matrix = []
for i in grille:
cipher_matrix.append([j for j in i])
pwd_matrix = []
for i in password:
pwd_matrix.append([j for j in i])
i = 0
output = ''
while i < 4:
for a in range... | [
"geniuscc7@163.com"
] | geniuscc7@163.com |
d6caf303d71c8dc706509a4b217651915c4b7600 | 6fa7f99d3d3d9b177ef01ebf9a9da4982813b7d4 | /3yPvbEjskPuuSSCAC_11.py | 2fba61184753e37ef33b7f27aaa7c8a6692740f4 | [] | 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 | 121 | py |
def trimmed_averages(lst):
lst.remove(min(lst))
lst.remove(max(lst))
avg = sum(lst)/len(lst)
return round(avg)
| [
"daniel.reich@danielreichs-MacBook-Pro.local"
] | daniel.reich@danielreichs-MacBook-Pro.local |
6234f0537de000f3fcd0a6ebe6e3d79510ff5394 | c9b4179f07e10a657b4d18fb3dea6ed34ccf79c4 | /benchmark_system/EmoticonDetector.py | 9e69ddb0b2ed6e67170f7bb24f4428d6ad56e3ca | [] | no_license | chialun-yeh/irony-detection | 866c3ab00e1218d35579d32f0decd0e83b09c55a | c9556636f4dfcbb9c5d095f55bb960da548e2242 | refs/heads/master | 2020-04-07T16:31:35.341366 | 2018-04-16T17:53:09 | 2018-04-16T17:53:09 | 124,222,779 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 825 | py | #!/usr/bin/env python3
# -*- coding: utf-8 -*-
"""
Created on Wed Apr 4 15:51:20 2018
@author: xuecho
"""
class EmoticonDetector:
emoticons = {}
def __init__(self, emoticon_file="emoticons.txt"):
from pathlib import Path
content = Path(emoticon_file).read_text()
positive = True
... | [
"F.Xu-1@student.tudelft.nl"
] | F.Xu-1@student.tudelft.nl |
2284ae8e1029a899f3759326e8b0fd32c931c601 | 6d026cee30d52154e3fd55a92c4981ee532c8084 | /Section2/L5 Univeral array/universal_array_function.py | 5c12399655d6095a4c5fbd790387f524779bf968 | [
"MIT"
] | permissive | Mohit-Sharma1/Takenmind_Internship_assignments | 6817934a7c210e1e471da3fb1aebf5f5d87366a3 | 7099ae3a70fca009f6298482e90e988124868148 | refs/heads/master | 2022-11-17T18:45:19.488769 | 2020-07-20T19:03:22 | 2020-07-20T19:03:22 | 281,186,240 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 434 | py | import numpy as np
#arrange
#sqrt
#expo
#random
#addition
#maximum
#reference link for many others
A= np.arange(15)
print A
A=np.arange(1,15,2)
print A
#sqrt
B=np.sqrt(A)
print "B is"
print B
#exp
C=np.exp(A)
print "C is"
print C
#addition
D=np.add(A,B)
print "D is"
print D
#maximum function
E=np.maximum(A,B)... | [
"noreply@github.com"
] | Mohit-Sharma1.noreply@github.com |
ceca4d7baec39bcf1dc5d2c847eea6e41fe27d3a | 89828b141969c07d00fc7aa8da51f8244babf40b | /catalog/migrations/0002_auto_20210204_2112.py | d2ada785787a7cde2eea2c0c51b1b68d20702899 | [] | no_license | dannybarajas/library | 0d2288bbbe2e019ceb1f14f106f87c1d1aa4304a | 11386cae8283435514437e27ff3f9f9949eea439 | refs/heads/master | 2023-02-27T05:20:47.280827 | 2021-02-05T03:33:37 | 2021-02-05T03:33:37 | 336,152,919 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 840 | py | # Generated by Django 3.1.5 on 2021-02-05 02:12
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
dependencies = [
('catalog', '0001_initial'),
]
operations = [
migrations.CreateModel(
name='Language',
... | [
"dbarajasm93@gmail.com"
] | dbarajasm93@gmail.com |
f3e633a244d1f2f9e6a7415e195e1f9f035238f5 | b28e5d26f3ec176970c035d10823ce47fcadcb38 | /operations/exchange.py | b0806dcbcb32e17ea89e202d70fbbc1144cb3bf5 | [] | no_license | Aldebrand/xchange | da989f63ebc4645874e749fdc4c5e9c3c968cc55 | 4f7073624601275675077f6106716754c442a74d | refs/heads/main | 2023-03-26T05:47:48.501485 | 2021-03-24T22:08:02 | 2021-03-24T22:08:02 | 350,117,788 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,971 | py | from typing import Optional, Tuple
from operations.utils import convert_money, load_config
def exchange(amount: int, origin_currency: str,
target_currency: str) -> Tuple[Optional[str], Optional[str]]:
"""
Exchange a certain amount of money from one currency to another.
:param amount: Amount... | [
"or@datascience.co.il"
] | or@datascience.co.il |
5489b75964557fe23e7066825e9c3fdcf32c8609 | 60b620746561bdcbdfde2106c167095c63ea3448 | /Hash Maps/PermutationPalindrome.py | 0d53b0d93f0f7e490ec4398ab5f7b31c4c164c07 | [] | no_license | salonishah331/CodingChallenges | b20c9f450ce523dd5cca14496ca3b8ed15a78559 | 1c02aedc08e8c4eac2f59b7c8860b7e89e7cc27e | refs/heads/master | 2021-01-14T04:15:14.064951 | 2020-10-21T20:33:18 | 2020-10-21T20:33:18 | 242,596,422 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 892 | py | '''
Permutation Palindrome:
Write an efficient function that checks whether any permutation of an input string is a palindrome.
Ex: "ivicc" should return True
"civil" should return False
'''
def PermutationPalindrome(word):
perm = {}
for i in range(len(word)):
if word[i] not in perm:
... | [
"noreply@github.com"
] | salonishah331.noreply@github.com |
cacfc13d21332b6a02950212f0f55a6fa2fbf453 | 8bce93fc8f875780f0737130f457ff9fe0c58836 | /deploy.py | 9ef305a04d3207d3890f3552a7f06ef5987f6d7d | [
"Apache-2.0"
] | permissive | cundohubs/cundo-lambda-deployer | e992668f0466e28e8995da7707f466ca3dea3f5e | a91565c42cf981962634b1e090f687440a0c0181 | refs/heads/master | 2020-05-30T19:11:06.200031 | 2016-06-21T23:11:29 | 2016-06-21T23:11:29 | 61,673,382 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 11,486 | py | #!/usr/bin/env python
from git import Repo
from boto3 import session
from shutil import rmtree
import os
import zipfile
import logging
import json
import argparse
import ConfigParser
logging.basicConfig()
logger = logging.getLogger()
logger.setLevel(logging.INFO)
root_dir = "/tmp"
class DeploymentConfig:
def __... | [
"facundo@curalate.com"
] | facundo@curalate.com |
3690b622b34c806b02e2997a3f32cb9d737b7b7d | 459a338018ba2d1a8ea228045b662fccbced58d0 | /ebooksapi/ebooks/migrations/0003_auto_20191111_2146.py | 60f2f543c332f59b6be4d55985470a4e7ac4e3cc | [] | no_license | nasutionam/django-web-api | ca75147d219774ca7454a2cf05073194f48643ac | 03373c74a981e27f8fa1c56d14e8418801aa8350 | refs/heads/master | 2022-12-15T14:11:23.490820 | 2019-11-20T06:17:57 | 2019-11-20T06:17:57 | 220,584,142 | 1 | 0 | null | 2022-11-22T04:50:06 | 2019-11-09T03:09:51 | Python | UTF-8 | Python | false | false | 516 | py | # Generated by Django 2.2.7 on 2019-11-11 14:46
import django.core.validators
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('ebooks', '0002_auto_20191111_2102'),
]
operations = [
migrations.AlterField(
model_name='review',
... | [
"nasution.nam@gmail.com"
] | nasution.nam@gmail.com |
2e2050dc501bb659f815d5f48c8b65a162ee9cc0 | 5a8b0fe3e31a6436c159beee3ac07752d8cd2531 | /exam.py | fb4b1b4d976e3071c232c143b0798660b6e6b222 | [] | no_license | toekhinethein/Sample | 49e81442a1171693ee5cd7e547eff56515bfd602 | aad6d7c3240193fd8db4ad1d45e5f19759cd3f57 | refs/heads/master | 2020-12-14T07:13:10.636859 | 2020-03-07T05:35:08 | 2020-03-07T05:35:08 | 234,677,203 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 271 | py | x = int(input("Please Enter Exam Result: "))
if x < 50 and x > 0:
print ( "F" )
elif x > 49 and x < 60:
print ( "D" )
elif x > 59 and x < 80:
print ( "C" )
elif x > 79 and x < 90:
print ( "B" )
elif x > 89 and x < 101:
print ( "A" )
else:
print ("Check Again") | [
"toekhinetheinthein@gmail.com"
] | toekhinetheinthein@gmail.com |
b381305143d97abcbd35226c2553b66154935323 | 156ede071b75ce824dcac0dddb0162b6f83963ee | /08 Practice Makes Perfect/07_reverse.py | b6b1745341a468b28fbfaa4db8b9e3e47203cb56 | [] | no_license | mindovermiles262/codecademy-python | c834b4a7f3b1381dd3e65db27b2edb15eabda9c8 | b6a6aa4db10192264ec2c88ddf4d1d16db66c533 | refs/heads/master | 2021-01-12T03:31:04.388402 | 2017-01-11T16:58:06 | 2017-01-11T16:58:06 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 578 | py | # -*- coding: utf-8 -*-
"""
Created on Wed Jan 4 12:34:29 2017
@author: mindovermiles262
Define a function called reverse that takes a string textand returns that string in reverse.
For example: reverse("abcd") should return "dcba".
You may not use reversed or [::-1] to help you with this.
You may get a string con... | [
"mindovermiles262@gmail.com"
] | mindovermiles262@gmail.com |
4ec3271673e917258b23e66d30a21e94fce571aa | e676677d718a3572634b3d5ef75815d3bb18a6c9 | /venv/Scripts/keyy.py | 3f374ca31b6b1890bb21c03b53bf27ddedce7e6d | [] | no_license | charithcherry/Automation_opencv | ecf525bb3efc288d67b5418204dc65ee40def857 | cff68137df79e9c17d7ce8fb669fb009d3396006 | refs/heads/master | 2022-11-18T03:11:36.185841 | 2020-07-20T11:20:09 | 2020-07-20T11:20:09 | 281,095,998 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 154 | py | import keyboard
while True:
rk=keyboard.record(until="shift")
keyboard.play(rk,speed_factor=10)
keyboard.add_hotkey('alt',lambda : exit(0))
| [
"charithcherry1100gmail.com"
] | charithcherry1100gmail.com |
ed32075ba24c826644dd08d780d93081e8b04d3d | 60ce3d7cbf8689663fb9f8682fd8fd4a85a8aceb | /.venv/bin/easy_install | 806e4fe3a1344f4d5caa8c63ac83405e1c468704 | [] | no_license | SlikNik/ghostpost_backend | 91c330094b6e1e387803cff770892799f257dacb | 810db076516dbd9cfa2dc4e17bce5103ed80748f | refs/heads/master | 2022-12-24T00:44:40.042721 | 2020-10-02T00:21:45 | 2020-10-02T00:21:45 | 299,697,335 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 295 | #!/Users/nikalmorgan/Desktop/Kenzie/submitted/Q4/ghostpost_backend/.venv/bin/python
# -*- coding: utf-8 -*-
import re
import sys
from setuptools.command.easy_install import main
if __name__ == '__main__':
sys.argv[0] = re.sub(r'(-script\.pyw|\.exe)?$', '', sys.argv[0])
sys.exit(main())
| [
"nikalmorgan11@gmail.com"
] | nikalmorgan11@gmail.com | |
dc1a42b7340f04ba0eb9400c2c8855f8a88f2ea9 | 134ff3c0719d4c0022eb0fb7c859bdbff5ca34b2 | /desktop/core/ext-py/Twisted/doc/core/howto/tutorial/listings/finger/finger20.tac | 52b955619703f31883d897082674c0c7f37e1c7c | [
"Apache-2.0",
"MIT"
] | permissive | civascu/hue | 22637f13a4cfc557716557661523131b6ac16da4 | 82f2de44789ff5a981ed725175bae7944832d1e9 | refs/heads/master | 2020-03-31T01:50:39.449966 | 2010-07-21T01:05:50 | 2010-07-21T01:07:15 | 788,284 | 0 | 0 | Apache-2.0 | 2019-02-04T07:03:12 | 2010-07-21T07:34:27 | Python | UTF-8 | Python | false | false | 6,918 | tac | # Do everything properly, and componentize
from twisted.application import internet, service
from twisted.internet import protocol, reactor, defer
from twisted.words.protocols import irc
from twisted.protocols import basic
from twisted.python import components
from twisted.web import resource, server, static, xmlrpc, m... | [
"bcwalrus@cloudera.com"
] | bcwalrus@cloudera.com |
b397b42327400482c2d0d8bacccc325d4eee2383 | c8a04384030c3af88a8e16de4cedc4ef8aebfae5 | /stubs/pandas/tests/io/parser/test_c_parser_only.pyi | 4f06775773e118e6584efa8effa83be67cd56474 | [
"MIT"
] | permissive | Accern/accern-xyme | f61fce4b426262b4f67c722e563bb4297cfc4235 | 6ed6c52671d02745efabe7e6b8bdf0ad21f8762c | refs/heads/master | 2023-08-17T04:29:00.904122 | 2023-05-23T09:18:09 | 2023-05-23T09:18:09 | 226,960,272 | 3 | 2 | MIT | 2023-07-19T02:13:18 | 2019-12-09T20:21:59 | Python | UTF-8 | Python | false | false | 2,374 | pyi | # Stubs for pandas.tests.io.parser.test_c_parser_only (Python 3)
#
# NOTE: This dynamically typed stub was automatically generated by stubgen.
# pylint: disable=unused-argument,redefined-outer-name,no-self-use,invalid-name
# pylint: disable=relative-beyond-top-level,line-too-long,arguments-differ
# pylint: disable=no-m... | [
"josua.krause@gmail.com"
] | josua.krause@gmail.com |
e22adfda64346dc4ead5ef8e645866f4ad1921df | 912fbf0ca814c831d4e1eaf5e919c6f300a5f8de | /Code/Basic/check_firmware.py | 41ad479f747d6bc5cc37ce0c3eddca9069950aeb | [
"MIT"
] | permissive | JoelBuenrostro/micropython-for-esp32 | 2ed503549d2581cbb304f66e8b2a60c98f1df5bb | d4ba9777ec4459b09089762be9287985d19bbe28 | refs/heads/master | 2020-07-22T03:15:02.558445 | 2019-10-14T12:24:12 | 2019-10-14T12:24:12 | 207,058,087 | 1 | 1 | null | null | null | null | UTF-8 | Python | false | false | 434 | py | # Chip: ESP32-WROOM-32 (ESP32-D0WDQ6)
# Microprocessor: Dual-Core Xtensa® 32-bit LX6
# Clock: 80MHz to 240Mhz
# Crystal: 40MHz
# SPÍ flash: 4 MB
# Operating voltage: 3.0V-3.6V
# Operating current: 80mA
# Purpose: Check the firmware integrity from a MicroPython REPL prompt
# Notes: If the last output value is True, th... | [
"joelbuenrostro@outlook.com"
] | joelbuenrostro@outlook.com |
4a4c6c643a4bac875fe8b0b5f38720441793c48a | aa26cd3faeff070f056314f0aec2302ca8b32cef | /bs1.py | fc4c21d0d9da6543df2f4eca78dbb2e72ec3f195 | [] | no_license | rcanzlovar/linux-customizations | 8f709b1d7fd1e2b61bf5f31c101442f5d3bd5bed | 8ace30643a906b6d83eb16609d5fd4ce9bd51ba5 | refs/heads/master | 2020-06-27T18:03:55.761361 | 2017-12-11T09:55:24 | 2017-12-11T09:55:24 | 97,069,156 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,398 | py | #!/usr/bin/python3
import bs4 as bs
import urllib.request
import urllib.parse
import time
values = {}
# get the timestamp for the mysql command
values["timestamp"] = time.strftime('%Y-%m-%d %H:%M:%S')
source = urllib.request.urlopen("http://www.msn.com/en-us/weather/today/Longmont,Colorado,United-States/we-city... | [
"noreply@github.com"
] | rcanzlovar.noreply@github.com |
f2d1fe0367179617efb95be8c474a75140a696e9 | 089533c91d5506bd19f8af5a9240f4429d747195 | /tests/build-workflows.py | 399ef0012bbcea2870d237380a4a1f099f358bad | [
"Apache-2.0"
] | permissive | chia-os/pipscoin-blockchain | f55092c6962d18d455d01601c725d3c891077e86 | 55c09f9b75f912625bc3ed27e46dc85a410392fb | refs/heads/main | 2023-08-08T01:30:56.832134 | 2021-09-02T02:33:47 | 2021-09-02T02:33:47 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,370 | py | #!/usr/bin/env python3
# Run from the current directory.
import argparse
import testconfig
import logging
import subprocess
from pathlib import Path
from typing import List
def subdirs(root_dirs: List[str]) -> List[Path]:
dirs: List[Path] = []
for r in root_dirs:
dirs.extend(Path(r).rglob("**/"))
... | [
"hello@pipscoin.net"
] | hello@pipscoin.net |
f1117ca1bf35ce910854edc80c27f58f03f2f6a6 | 8b4aa3227c54a283e4c61294fb4c475b5df83ec9 | /spanning_tree.py | 31f3dc6bd6373b6546acef163817264e7a97d965 | [] | no_license | dailydmello/PythonComputerNetworkandSecurity | abdbce8433076fabe2695658983bbb5a286aea43 | e3ab5fcae9554e9d34824f6cbda7811190792eb4 | refs/heads/master | 2020-04-09T15:13:33.842245 | 2018-12-05T21:11:57 | 2018-12-05T21:11:57 | 160,419,967 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 14,243 | py | # Copyright 2012,2013 James McCauley
#
# 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 agreed to in ... | [
"dmelloe@mcmaster.ca"
] | dmelloe@mcmaster.ca |
75dfe29367cde603df06f5c09d349672c7e70888 | c7e58e7e961c9e8a3f307e423eb9c0d796e123e3 | /test_python.py | 05675da23381a6e74f88edfce84694e95a9be400 | [] | no_license | StuWheel/mount_steel | 7632034647a7868fa02070254bdb3b93d09a499f | b6f2158e60a3e48ed643da77e05ed10245d0faa9 | refs/heads/master | 2021-04-04T14:47:05.315758 | 2020-03-29T04:41:52 | 2020-03-29T04:41:52 | 248,465,489 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 22 | py | x = 15
print(x)
y = 15 | [
"stuart.s.wall@gmail.com"
] | stuart.s.wall@gmail.com |
440e2fcbfd242367639df5349316b38f86b6a699 | 88863cb16f35cd479d43f2e7852d20064daa0c89 | /Winton/kimonolabs-api.py | a126fb4eb279151491491f9e15b6d5c4ebc0e053 | [] | no_license | chrishefele/kaggle-sample-code | 842c3cd766003f3b8257fddc4d61b919e87526c4 | 1c04e859c7376f8757b011ed5a9a1f455bd598b9 | refs/heads/master | 2020-12-29T12:18:09.957285 | 2020-12-22T20:16:35 | 2020-12-22T20:16:35 | 238,604,678 | 3 | 1 | null | null | null | null | UTF-8 | Python | false | false | 350 | py |
import urllib2
request = urllib2.Request("https://www.kimonolabs.com/api/csv/2i3ixo7u?apikey=qtyJXfoXzVQrHxFRbRxoZ06S13CAtOjl",
headers={"authorization" : "Bearer BRALL8UhSiBI78UvVPEN0PC7F0fNYtBh"})
contents = urllib2.urlopen(request).read()
print(contents)
print
for line in contents.... | [
"c.hefele@verizon.net"
] | c.hefele@verizon.net |
05381db273e480b5a0039ca5f9462b772e1f0806 | 5a52ccea88f90dd4f1acc2819997fce0dd5ffb7d | /alipay/aop/api/response/AlipayCommerceReceiptSyncResponse.py | 335d068194ecc2851c30cfb4ee5e3179b39e0a1c | [
"Apache-2.0"
] | permissive | alipay/alipay-sdk-python-all | 8bd20882852ffeb70a6e929038bf88ff1d1eff1c | 1fad300587c9e7e099747305ba9077d4cd7afde9 | refs/heads/master | 2023-08-27T21:35:01.778771 | 2023-08-23T07:12:26 | 2023-08-23T07:12:26 | 133,338,689 | 247 | 70 | Apache-2.0 | 2023-04-25T04:54:02 | 2018-05-14T09:40:54 | Python | UTF-8 | Python | false | false | 440 | py | #!/usr/bin/env python
# -*- coding: utf-8 -*-
import json
from alipay.aop.api.response.AlipayResponse import AlipayResponse
class AlipayCommerceReceiptSyncResponse(AlipayResponse):
def __init__(self):
super(AlipayCommerceReceiptSyncResponse, self).__init__()
def parse_response_content(self, respon... | [
"jishupei.jsp@alibaba-inc.com"
] | jishupei.jsp@alibaba-inc.com |
a2e98c99e36453844e82eec47239264e0afc73d4 | a3abf2477473e8e660f25be0c4de7a9d6daf52ee | /python/aws/kinesis/messages_pb2.py | 52eb9a5955987c232237af6366ee2bce6c124f1d | [] | no_license | abferm/Protobufs | b083bd683d50f1e7d7421b3625135a355b793753 | 4b60fa3861a528f3511bbfa2e37cfbc2582feafc | refs/heads/master | 2021-01-12T17:27:33.141067 | 2016-11-04T22:11:16 | 2016-11-04T22:11:16 | 71,573,796 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | true | 34,991 | py | # Generated by the protocol buffer compiler. DO NOT EDIT!
# source: messages.proto
import sys
_b=sys.version_info[0]<3 and (lambda x:x) or (lambda x:x.encode('latin1'))
from google.protobuf import descriptor as _descriptor
from google.protobuf import message as _message
from google.protobuf import reflection as _refl... | [
"aferm@petropower.com"
] | aferm@petropower.com |
da25cb5b8c5a7e297cbea47ff6715d495fb036a3 | b27308e062c956dae4e9bd6902e1a46a3ee08f2f | /Django/d01/ex03/capital_city.py | 6413b8da94500f305cd2be657fb07735be98dbbd | [] | no_license | vlapparov/Ecole42 | d25a9af2d68cedbf349597a051bcdfca149b60f0 | 0760df71e52deee2f1b3c9cb887fc8286f7549a8 | refs/heads/master | 2020-03-30T12:54:09.289574 | 2018-10-14T23:47:01 | 2018-10-14T23:47:01 | 151,247,020 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 578 | py |
# coding: utf-8
# In[18]:
from sys import argv
def my_var():
states = {
"Oregon" : "OR",
"Alabama" : "AL",
"New Jersey": "NJ",
"Colorado" : "CO"
}
capital_cities = {
"OR": "Salem",
"AL": "Montgomery",
"NJ": "Trenton",
"CO": "Denver"
}
if(len(argv) != 2): r... | [
"vlapparov@Valentins-MacBook-Pro-2.local"
] | vlapparov@Valentins-MacBook-Pro-2.local |
8a7547871ef8dbddb0987ec8942ad3ec3d0e0fe2 | f5ef9235079706f801de198c70585e68d338beff | /five_votes/example_new.py | 1c7ce5d995982aa01f4f7e3aba0cd87b56f9ad26 | [] | no_license | garciaclaudio/askthecrowd | 1f025f8f5a58ae84d5723bd913b308a3e37a6dd9 | 7925075d9ccd70707460e451485292618a148f09 | refs/heads/master | 2021-01-13T01:55:59.328564 | 2015-12-15T20:34:33 | 2015-12-15T20:34:33 | 537,308 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,694 | py | #!/usr/bin/env python
#
# Copyright 2010 Facebook
#
# 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 a... | [
"claudio.garcia@booking.com"
] | claudio.garcia@booking.com |
a51d66646ddf79561b2c16509843ee824196ca37 | f3e7e79c9e71c2e6b713b1bc91feba795dba44d0 | /main.py | 6a00c94f66918df25f4a4ab106f68c894222834b | [
"MIT"
] | permissive | veeral-agarwal/Genetic-Algorithm | 720c12f755bceb653a6a309295befaeb82ac0244 | 471ecac287d4e6a028e84887dab328ca950ffc5f | refs/heads/main | 2023-05-14T16:23:27.099235 | 2021-06-03T22:48:15 | 2021-06-03T22:48:15 | 340,640,810 | 0 | 0 | null | 2021-05-20T21:19:28 | 2021-02-20T11:43:19 | Jupyter Notebook | UTF-8 | Python | false | false | 9,449 | py |
import numpy as np
from client import *
import random
import json
#13508412130.218098 368125762698.6422
#13560827319.190525 370434930576.4746
#13532626957.355581 369745382579.87744
#13510723304.19212 368296592820.6967 this
# f=open("overfit.txt","r")
# data=f.read()
# data=data.rstrip()
# data=data.strip('][').spl... | [
"veeral.agarwal@research.iiit.ac.in"
] | veeral.agarwal@research.iiit.ac.in |
363bdeff54855b7013b24e42476b351ed21eff08 | 34ef54c04b369a6161c6f8a649868a47122a2d89 | /.venv/Lib/site-packages/Bio/PDB/parse_pdb_header.py | 10c9f1a5d1e7f5373d3275dedda3c4d241e052ba | [
"MIT"
] | permissive | abner-lucas/tp-cruzi-db | f70ad269c50a2db24debd1455daeddaa2ebd3923 | 595c5c46794ae08a1f19716636eac7430cededa1 | refs/heads/bioinformatica | 2023-05-18T23:23:23.458394 | 2021-06-14T02:13:17 | 2021-06-14T02:13:17 | 351,864,250 | 2 | 2 | MIT | 2021-06-13T19:52:18 | 2021-03-26T17:40:20 | Python | UTF-8 | Python | false | false | 11,664 | py | #!/usr/bin/env python
# Copyright 2004 Kristian Rother.
# Revisions copyright 2004 Thomas Hamelryck.
#
# This file is part of the Biopython distribution and governed by your
# choice of the "Biopython License Agreement" or the "BSD 3-Clause License".
# Please see the LICENSE file that should have been included as part ... | [
"abnerlucas.cad@gmail.com"
] | abnerlucas.cad@gmail.com |
c2437a5446c8e2344ca329a820696b24318be6c8 | 766ed25dc718ba4b9358a13dc5fbff0f846204f8 | /iot_temp_mod/iotSupport/getConfig.py | a7d67c20358b076907fcf334ed190f128cb951bd | [] | no_license | MichaelOsowski/iot_temp_mod | 01a734f066110c7f45702c612cd684472576a335 | 1d45e7cb5ca788c4d3332fe5c4ecc5a3d209e87f | refs/heads/master | 2021-04-15T13:53:14.758721 | 2019-07-02T17:37:05 | 2019-07-02T17:37:05 | 126,368,053 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 443 | py | '''
Created on Jan 26, 2016
@author: Michael Osowski
'''
import ConfigParser
def parseConfig(InFile,configGroup):
confDict = {}
config= ConfigParser.ConfigParser()
config.read(InFile)
options = config.options(configGroup)
for option in options:
try:
confDict[option] = config.g... | [
"mosowski@newrelic.com"
] | mosowski@newrelic.com |
58794f7b06991f84fe20e97670d5b070e724b7b4 | 8b37e49a5d061a92816c0e1aaab2bdaa84132ab7 | /Interactive_Visualizations_&_Dashboards/Plotly&Flask/PetPals_LT/PetPals/app.py | d4764a9ab94569f1895731533962e6e998063844 | [] | no_license | KenT370/Learned_Tech | d4b05e3e26d95e71407ac8b52be5943cf133b774 | 2b8fb15f3f59840c36220175b536fcb45f571f7d | refs/heads/master | 2022-12-10T07:05:48.801794 | 2019-06-10T16:35:24 | 2019-06-10T16:35:24 | 171,935,753 | 0 | 0 | null | 2022-12-08T05:14:19 | 2019-02-21T19:54:43 | Jupyter Notebook | UTF-8 | Python | false | false | 1,614 | py | from flask import Flask, render_template,jsonify, request, redirect
from flask_sqlalchemy import SQLAlchemy
import os
#from flask.ext.heroku import heroku
app = Flask(__name__)
app.config['SQLALCHEMY_DATABASE_URI'] = 'postgres://zphvqfcqbejonu:86c66f04c54f05d6fc6ad5adc2683dcb2e3d9bfbbc4c01c42d0005c70ee66807@ec2-54-83-... | [
"kentorres822@gmail.com"
] | kentorres822@gmail.com |
83828df8c4b7e817787e4b613cd850d74a92d000 | 445b219933c75009a6c0c813b204df0c720cc4a2 | /demo/multi_classification.py | 45a674c20e425a7bcfdb8a91f7f0a91a478820aa | [] | no_license | RyotaFuwa/NeuralNetworkFramework | a2fc1e0312f7b3a3db8222dcd085a23ad073709b | 9558c195ab796df817cb7d83b9fbb03257eb6b69 | refs/heads/master | 2022-12-15T09:37:59.685252 | 2020-09-10T12:36:36 | 2020-09-10T14:21:28 | 265,612,918 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 547 | py | import numpy as np
import pandas as pd
import matplotlib.pyplot as plt
from misc.utils import split_data
def multi_classification(csv_file_path):
"""assuming the csv file has columns: x, y, class"""
df = pd.read_csv(csv_file_path)
X = df[['x', 'y']].to_numpy()
Y = df['class'].to_numpy().reshape((-1, 1))
p... | [
"ryota.fuwa.1428@gmail.com"
] | ryota.fuwa.1428@gmail.com |
50574fb0976254f71acedb7d478c899596de33ee | 957f28e9296c9e9bb471b0bf178ca8a53aa21b25 | /AI - Module/api/retrievers/__init__.py | a430aa52e6d175529f0650aee410ecdad38f5885 | [] | no_license | FelipeCardoso89/HackathonOriginal | e222f37b5ae9d647d28acfda08877740fca206e2 | 42d7915953920cd34d5bac399fdc63e92790f699 | refs/heads/master | 2021-08-23T05:05:54.076852 | 2017-12-03T14:22:16 | 2017-12-03T14:22:16 | 112,932,437 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 95 | py | from .userInteractionIntel import UserInteractionIntel
__all__ = [
UserInteractionIntel
]
| [
"holanda.nayana@gmail.com"
] | holanda.nayana@gmail.com |
6df326d71e9954918deec914f12cc7826fbf00c5 | 021d6b2c5c2b5e2e14c3e48838e040421abbf392 | /PhD-GPCR/plotDistancesLikeShaw.py | 2be9d7abbdedd80be3fb071af282f96a00c61d46 | [] | no_license | victor-gil-sepulveda/PhD-GPCR | b6f44b2a0c70e0f8035cd5c8275e9aa3907c58ab | 338357cd01241df833fe6a6e248a9a39465fac3c | refs/heads/master | 2021-01-21T14:09:02.109178 | 2016-04-26T19:18:41 | 2016-04-26T19:18:41 | 18,520,998 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,654 | py | """
Created on 13/03/2014
@author: victor
"""
import prody
import os.path
from pyRMSD.RMSDCalculator import RMSDCalculator
import matplotlib
import pylab
import os
from tools import distance, create_dir
data = [
{
'dir':'2rh1_refined',
'pdb_traj':'2rh1_refined.pdb',
'selection':{
... | [
"victor.gil.sepulveda@gmail.com"
] | victor.gil.sepulveda@gmail.com |
e8cc4a779f0748f11f893f138e6faeb4aace28ab | 0897e2254eeac5458e4f17caea43871dd72fda9a | /great_expectations/expectations/core/expect_column_values_to_match_regex_list.py | a337613795d3cc82a329be40ed1c5a3f6b35b3eb | [
"Apache-2.0"
] | permissive | NulledExceptions/great_expectations | 10f7710d7520f0b57ded539ce33075ddeb47856d | 8704c3ecf6632a72c55e012ed117d56f85a21f74 | refs/heads/main | 2023-09-05T19:30:32.910045 | 2021-11-18T20:50:42 | 2021-11-18T20:50:42 | 431,229,866 | 1 | 0 | Apache-2.0 | 2021-11-23T19:35:34 | 2021-11-23T19:35:34 | null | UTF-8 | Python | false | false | 11,214 | py | from typing import Optional
from great_expectations.core.expectation_configuration import ExpectationConfiguration
from great_expectations.expectations.util import (
add_values_with_json_schema_from_list_in_params,
render_evaluation_parameter_string,
)
from ...render.renderer.renderer import renderer
from ...... | [
"noreply@github.com"
] | NulledExceptions.noreply@github.com |
a49cd1fe7b46fdd509083cfbf90268e706b9a9f7 | 4b2df15d4943e71e07d9d75fadc4f82b61853276 | /dog_image_classifier_project/test_classifier.py | 0b3c2a28a95f21f203b039c8ddcee7e18304afd6 | [] | no_license | suryakant1698/machineLearningProject | da76801e198afdd8593105a9de1814387003312b | 547591a29dbcc8fd0cccce56e78528527154e5fe | refs/heads/master | 2020-04-14T06:41:19.101947 | 2019-03-18T08:18:07 | 2019-03-18T08:18:07 | 163,693,104 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,760 | py | #!/usr/bin/env python3
# -*- coding: utf-8 -*-
# */AIPND-revision/intropyproject-classify-pet-images/test_classifier.py
#
# PROGRAMMER: Jennifer S.
# DATE CREATED: 01/30/2018 ... | [
"suryakant.rocky@gmail.com"
] | suryakant.rocky@gmail.com |
2d79e4e554bf3b88d7a570df54378fe1bf1994f3 | 83bbb67d205b6488c5c86a9ff5479420994b68ac | /tzq_cvae/dataset.py | e2f43a7eefc86c09c28db556a2197cc1622bf69c | [
"MIT"
] | permissive | enhuiz/cvae | 7c74f78af7d3695676eed338b9dcbe85b0dcc7b1 | 8ccfd12df37996f280ae95302caecc7c7a967b44 | refs/heads/main | 2023-08-27T22:43:16.718363 | 2021-09-08T05:21:45 | 2021-09-08T05:21:45 | 403,652,796 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,346 | py | import numpy as np
from torch.utils.data import DataLoader
from torchvision.datasets import MNIST
from torchvision import transforms
from functools import cached_property
class MaskedMNIST(MNIST):
def __init__(self, root, num_masks=3, **kwargs):
self.num_masks = num_masks
kwargs.setdefault("transf... | [
"niuzhe.nz@outlook.com"
] | niuzhe.nz@outlook.com |
52fa8b03611d4b9c943a75dd51236e5aa36ec012 | 165db92b0b84dd26e3d66b1602a5285e8679c99b | /pset6-python/Mario/mario_less.py | 7c30cacbd5f6cfe46167973ff3db800a00503181 | [] | no_license | BSanandu88/CS50x | 8acee66d8c153293b46917e8f63df110bb2816df | 044964ac0ab8afe813b84f2612c6a662c554b925 | refs/heads/master | 2022-11-21T13:33:56.396233 | 2020-07-18T04:35:20 | 2020-07-18T04:35:20 | 263,544,391 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 326 | py | from cs50 import get_int
def main():
while True:
height=get_int("Height:")
width = height + 1
if height >= 0 and height <=23:
break
for i in range(1, height + 1):
hashes = i+1
spaces=width - hashes
print(" " * spaces,end="")
print("#" * hashes)
if__name__ == "__main__":
... | [
"noreply@github.com"
] | BSanandu88.noreply@github.com |
20331f88d9ab903e1970463cb154cfaa0c020812 | ef8c023091909332a8d592446040b780febe7958 | /main.py | 39a9ada2c9f7fe9025b2302def89a878307e1702 | [] | no_license | tungpun/php-functions | 128706fb79a9ddac9a22288b7209f8a43b70b117 | e7704f6dec52af67515bca2d543ed07128904370 | refs/heads/master | 2021-01-01T19:40:14.512003 | 2017-07-28T10:42:05 | 2017-07-28T10:42:05 | 98,639,789 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 425 | py | #!/usr/bin/python 2.7
import requests
from bs4 import BeautifulSoup
if __name__ == '__main__':
url = "http://php.net/manual/en/indexes.functions.php"
res = requests.get(url)
html = res.text
soup = BeautifulSoup(html)
li_s = soup.find_all("li")
lines = soup.find_all("a", {"class": "index"})
... | [
"nguyenhuutung@punmac.local"
] | nguyenhuutung@punmac.local |
d2b457d289866a682eca245ac46d0b8f83ab0bc6 | 8ef2194ca22b59e86db1d00c67bcb4aabda102b4 | /stackfinder/cli.py | ebfd8327ca8a122d1b944f409d6e5e51eeb1fe90 | [
"Apache-2.0"
] | permissive | planetlabs/planet_stack_finder | 79438b93ffe4a8e4b68d156240bf4fb4df4b25e7 | 62cf704b2c178a5f08b14164fbf5cf84550a0a46 | refs/heads/master | 2021-01-21T06:05:29.545844 | 2016-03-17T00:09:00 | 2016-03-17T00:09:00 | 38,714,586 | 7 | 2 | null | 2016-03-16T23:46:26 | 2015-07-07T21:00:16 | Python | UTF-8 | Python | false | false | 1,392 | py | """cli interface for stack finding
"""
import click
from stackfinder import findstacks
import json
@click.command("find-stacks")
@click.argument('metadata', default='-', required=False, nargs=1)
@click.option('--index', default=0, help='zero indexed stack number ordered by decreasing number of objects in cluster')
@c... | [
"joshtennefoss@gmail.com"
] | joshtennefoss@gmail.com |
55c189bd6dec4acfe1ef58b0fe10bb3a2fa0f677 | d490c6408851678b4346ca6ec8dc08d3547b88d3 | /Jessie Smith/assignments/ninjagold/server.py | b0943f2c5410a7436e5a92e33d57f4c91079a31d | [
"MIT"
] | permissive | authman/Python201609 | e0852163f35d5f6e7e14a8464c4fa92e3d36e9de | 6f40c82da395de44de2faca1272b6fe72b99721a | refs/heads/master | 2020-09-19T13:26:08.162643 | 2016-10-06T14:24:27 | 2016-10-06T14:24:27 | 67,229,446 | 0 | 12 | null | 2016-10-06T14:24:28 | 2016-09-02T14:29:17 | Python | UTF-8 | Python | false | false | 1,459 | py | from flask import Flask, render_template, request, redirect, session
app = Flask(__name__)
import random
app.secret_key="ThisIsSecret"
@app.route('/')
def ninjamoney():
if not session.has_key('count'):
session['count'] = 0
if not session.has_key('message'):
session['message'] = []
if not session.has_key('... | [
"jessie.smith7543@gmail.com"
] | jessie.smith7543@gmail.com |
87872b8b2da163f6bf90bd3e8f26052b225ac28f | 379e61bb7708a9f54c50fb7590b28de43e002b76 | /variables/greetings_cp3.py | 2f11d89db42c5c2b3b810181209db03d46a69988 | [] | no_license | JAL-code/python_work | b377fe0328b02b7f36d95570a3d6ed2166d0428b | 213f10c981ce94e73e56c76230f624b05e06fddd | refs/heads/main | 2023-04-21T11:25:28.574958 | 2021-05-13T15:29:27 | 2021-05-13T15:29:27 | 348,765,295 | 0 | 0 | null | 2021-03-17T17:21:56 | 2021-03-17T15:46:50 | Python | UTF-8 | Python | false | false | 318 | py | #Python Crash Course, Eric Matthes, Chapter 3,
#Custom names
my_friends = ['Bob', 'Billy', 'Silly', 'Dot', 'Betty', 'Bailey']
print(f"Hello {my_friends[0]}")
print(f"Hello {my_friends[1]}")
print(f"Hello {my_friends[2]}")
print(f"Hello {my_friends[3]}")
print(f"Hello {my_friends[4]}")
print(f"Hello {my_friends[5]}") | [
"jleffek@live.com"
] | jleffek@live.com |
8dff07ab392aba5786ff030694a2bd24cbb14a79 | 8118f2538d3cbaf254cf21626be6ad73bff43d74 | /fastapi-example-type-api/db.py | 6f5be30b1d46692e4d9ca3a50b0e320a3931a0bc | [] | no_license | mrchoke/ui-api-datatype-exmaple | 4522d52bac33dc875c1e03a492b51a3e6a8a9edf | b48a1a65f615a94014616d02cd3c9ddaef509f25 | refs/heads/main | 2023-01-23T00:01:13.630523 | 2020-11-23T01:38:21 | 2020-11-23T01:38:21 | 315,074,516 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 576 | py | import databases
import sqlalchemy
#DATABASE_URL = "mysql://user:passwd@sever/db?charset=utf8mb4"
DATABASE_URL = "sqlite:///./todos.db"
database = databases.Database(DATABASE_URL)
metadata = sqlalchemy.MetaData()
notes = sqlalchemy.Table(
"notes",
metadata,
sqlalchemy.Column("id", sqlalchemy.Integer, pr... | [
"mrchoke@gmail.com"
] | mrchoke@gmail.com |
39bc28da239af8f974569246cabb713160001af2 | 7e67fcbc6f674ad59c5f94c7284120df092033c6 | /privex/cspgen/builder.py | dcebd8f187ebc7c4bc11b42ae81b5528da903166 | [
"MIT",
"X11"
] | permissive | Privex/cspgen | 4460d6423b8c6ba087a9f62ad7d584454b7d89f5 | 3502bc9f2300b9133afeabdaf26fce86dd8cd043 | refs/heads/master | 2023-02-13T13:36:23.949517 | 2021-01-13T05:16:50 | 2021-01-13T05:16:50 | 329,161,116 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 14,103 | py | #!/usr/bin/env python3
"""
+===================================================+
| © 2021 Privex Inc. |
| https://www.privex.io |
+===================================================+
| |
| CSPGen - Python Co... | [
"info@someguy123.com"
] | info@someguy123.com |
89f0820e9acb321370a83a7a3fe8fd4ce48618d2 | cf7e903ee2b0af7cd13e6f81efd7816679bd2b7c | /duplicates.py | 12ccef17d2a33fb4d501b59df688bcd692a255d4 | [] | no_license | uggi121/leetcode | cd2ae44e9e848ff779b167e1526ece832b244c29 | 577382d86e6482324e312fac423e4be3098099ef | refs/heads/master | 2020-07-10T16:08:39.466474 | 2019-10-29T06:56:17 | 2019-10-29T06:56:17 | 204,307,451 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 489 | py | class Solution(object):
def removeDuplicates(self, nums):
"""
:type nums: List[int]
:rtype: int
"""
if len(nums) <= 1:
return len(nums)
value = None
insert = 0
for i in range(len(nums)):
if nums[i] != ... | [
"sudharshanmadhavan@outlook.com"
] | sudharshanmadhavan@outlook.com |
8c95e060bc23fd925224c79fd04682aad6794b04 | 5fcfaabd985b010074b3b078b3d80075d7487767 | /nbeam/handlers.py | 039394aecc5cebf850f1b6197f8054bb59ca6f7d | [] | no_license | AnyBucket/Neutron-Beam | 4071df02857f42fe2dd61abc70acc3802db7f639 | 3efb46511faa53615517a9314b198c5236012f67 | refs/heads/master | 2020-12-24T22:28:51.337431 | 2013-10-05T19:23:51 | 2013-10-05T19:23:51 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,183 | py | import os
import re
import base64
import json
from tornado.web import RequestHandler, StaticFileHandler, HTTPError
from tornado.escape import json_encode, json_decode
from .SimpleAES import SimpleAES
from .views import list_dir, open_file, save_file, rename_file, delete, new_file, new_dir, upload_file, new_url, toke... | [
"paul.m.bailey@gmail.com"
] | paul.m.bailey@gmail.com |
9e9ab762dffaf01f8fe4c9d08fd6301507cdd632 | b09d305fd5771a583a205e12328979d79f56254c | /expressnews/expressnews/urls.py | adf0b561c989fd89f8ea99be57a52a07ab708afb | [] | no_license | DhruvikDonga/expressnews | 02d25e1516b8f3be18d0b3bbbcc94f34c655694a | 7670c763e7aeb04f776c74e99135cef8a6e9fef1 | refs/heads/main | 2023-04-15T21:01:15.983765 | 2021-04-29T05:10:01 | 2021-04-29T05:10:01 | 362,640,314 | 3 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,114 | py | from django.contrib import admin
from django.urls import path
from newsAPI.views import ListNewsView,getfavourite,getfavouritenews
from rest_framework_simplejwt.views import (
TokenObtainPairView,
TokenRefreshView)
from restauth.views import ModsView, register,current_user
urlpatterns = [
path('admin/', adm... | [
"dongadhruvik@gmail.com"
] | dongadhruvik@gmail.com |
3de15438cec6eb4fbe69b20384a50ef8466bc557 | 8c202ab339e4fe4458b7985f789699ee19d07fc0 | /test2.py | 3681ff9d63e6062e9e66e8cb3168c75146f03de5 | [] | no_license | Martijnvandebrug/autosuggest | 0a57a3c80afec1c9b7d7a018c47caa5dab4bbcb1 | 5688112f00c06d4d14c2ab4a27a8bfe49df1e40e | refs/heads/master | 2021-01-20T00:00:55.066132 | 2017-04-22T12:13:43 | 2017-04-22T12:13:43 | 89,066,116 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 157 | py | import operator
dict = dict()
dict['test']=1
dict['test999']=2
dict['test3']=3
dict['test64']=11
print sorted(dict.items(), key=operator.itemgetter(1))
| [
"martijn.vandebrug@incentro.com"
] | martijn.vandebrug@incentro.com |
92e641e29896fe9b94118631c0108a543f516c6c | bd923535ce082dd874591e7db42851d822207b96 | /project/scr.py | a26a76ab9d9c57ff3354edc9ae2173b0c7baf847 | [] | no_license | amtvj/MINI_PROJECT | b8314825ed09ccc11a3a3b29fd4275eb739f17b1 | 831a7e1096853fb1af490c0d2f327e644bab11ef | refs/heads/master | 2020-07-16T01:00:37.382157 | 2016-11-16T20:25:15 | 2016-11-16T20:25:15 | 73,954,765 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 575 | py | import scenedetect
scene_list = [] # Scenes will be added to this list in detect_scenes().
for i in range(10):
scene_list = []
path = 'ACCEDE0000'+str(i)+'.mp4' # Path to video file.
# Usually use one detector, but multiple can be used.
detector_list = [
scenedetect.detectors.ThresholdDetector(thr... | [
"iit2014110@iiita.ac.in"
] | iit2014110@iiita.ac.in |
dedf270ecd85808beb261e2b5286d4273b2404bd | cb44e78c06f0428f02f1648c59463616247eac49 | /simulation/microsaccade/simulate_ms.py | cf97936d47e09cd4d562f2c8fa8035032dd88482 | [
"MIT"
] | permissive | helloTC/LearnPython | da5106da926735a6c0ff5d9e9f3a8beef0eabe4b | bd5fc977c800f3dc2d239b8cb7ad7e6e1b42fce8 | refs/heads/master | 2021-01-12T06:08:48.115607 | 2018-09-23T08:45:23 | 2018-09-23T08:45:23 | 77,313,517 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,287 | py | import models
import numpy as np
import matplotlib.pyplot as plt
import seaborn as sns
cancel_command = 150
perm_t_list = []
perm_m_list = []
for n_perm in range(1000):
t_list = []
m_list = []
is_success_canceled = False
is_success_canceled_list = []
t0 = 0
for i in range(1):
t, m, is_s... | [
"taicheng_huang@sina.cn"
] | taicheng_huang@sina.cn |
76f2c9df9de6d2d8b1e534e92216377e35669502 | 0b876f54170b0bde2c0abd43bbd81389fa2f6322 | /TO_GPU/schedulers.py | e358e8124b0e7eaef96cf4f16e143410a11f4548 | [
"MIT"
] | permissive | AJSVB/GPBT | 2227aecf958a94d07473e76d8254a36e807082b9 | 746c11d06ecc4c3b62fc0a3290d672d336cbb11e | refs/heads/main | 2023-08-25T16:54:04.965149 | 2021-09-30T18:02:32 | 2021-09-30T18:02:32 | 369,235,287 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 19,463 | py | import copy
import math
import random
import os
import numpy as np
import time
import datetime
import os
import torch
import torch.nn as nn
import torch.nn.functional as F
from torchvision import datasets, transforms
from torch.utils.data import DataLoader
import numpy as np
import time
# Trials is... | [
"antoine.scardigli@epfl.ch"
] | antoine.scardigli@epfl.ch |
812cfcad42f917b8938602ef5ac9ad34fd9f1a26 | 85e7eb9cbae5e195a303f737c069b70b20a97015 | /人工智慧與機器學習/lab/5-2-loop.py | b4234ef7cb61dce8ea250790e00d21d34e20699a | [] | no_license | Ruby-Dog/III | 776473c315c13b166b38115bc84b8cc5440084f6 | f9dd5578fc2a0c2130a0591babf045f7ce4f5f6c | refs/heads/master | 2022-11-10T16:54:34.190619 | 2020-07-02T16:32:43 | 2020-07-02T16:32:43 | 276,695,108 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 372 | py | #終極密碼
import random
low = 1
high = 100
ans = random.randint(low, high)
while True:
i = int(input("請輸入[" + str(low) + "-" + str(high) + "範圍中的數]: " ))
if i == ans:
print("你猜對了")
break
elif i < ans:
print("你猜小了")
low = i
elif i > ans:
print("你猜大了")
high = i
... | [
"rubydog0501@gmail.com"
] | rubydog0501@gmail.com |
8cbcc47c34e3d8102a34f1d71d6dece5e48648d6 | 5d35bcc45ebc56ec33f49ea91a68576f9e933558 | /stage/settings.py | b1ef01f61fd78ae6a1b81a9d7a9fb61849c6247d | [] | no_license | Taratra-RD/stageproject | 1c2eb052709b6432e72ab042017ae3df7fac5b40 | 81634eba59c8f2f9f5862f7c97a6436cb56c21b3 | refs/heads/main | 2023-01-01T14:53:16.856683 | 2020-10-27T06:01:00 | 2020-10-27T06:01:00 | 307,600,247 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,105 | py | """
Django settings for stage project.
Generated by 'django-admin startproject' using Django 3.1.2.
For more information on this file, see
https://docs.djangoproject.com/en/3.1/topics/settings/
For the full list of settings and their values, see
https://docs.djangoproject.com/en/3.1/ref/settings/
"""
from pathlib i... | [
"taratra.access4@gmail.com"
] | taratra.access4@gmail.com |
e5c3a5017255ad7d4a49726ac7ee6252374c6a5e | 1a4b31008e6cde2cc31de2aefad2174717299bf4 | /ABC081A.py | 204b9f12c1720d11ad07ad5683d12ddccfb6965b | [] | no_license | mayosuke/atcoder | 577b060751a830823f300ab1e58ea888672a5dc6 | 65e747a976cdacc1c2ec669bd33e2f5fdc0faf19 | refs/heads/main | 2023-05-05T04:34:18.941331 | 2021-05-31T06:52:54 | 2021-05-31T06:52:54 | 344,834,896 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 730 | py | # https://atcoder.jp/contests/abs/tasks/abc081_a
# ABC081A - Placing Marbles /
# 実行時間制限: 2 sec / メモリ制限: 256 MB
# 配点 : 100 点
# 問題文
# すぬけ君は 1,2,3 の番号がついた
# 3 つのマスからなるマス目を持っています。 各マスには 0 か 1 が書かれており、マス i には si が書かれています。
# すぬけ君は 1 が書かれたマスにビー玉を置きます。 ビー玉が置かれるマスがいくつあるか求めてください。
# 制約
# s1,s2,s3 は 1 あるいは 0
# 入力
# 入力は以下の形式で... | [
"mayo.suke@gmail.com"
] | mayo.suke@gmail.com |
72ce4d94ac2d84c72df69cc3963c2d4e59f64193 | 12216794188a9fc317422f04a2fa3c82e952df00 | /buddy_downloader.py | 70ef70febfb6ec1d46cdbb8af058d831d8e486c5 | [
"MIT"
] | permissive | maciej1x/YouTuBuddy | a31f2b78ea0a51603ad39264d3a97cd64ca932a3 | c1d8d5be005886ff4863986f516f6e8c9d1c82de | refs/heads/main | 2023-01-31T21:37:12.534093 | 2020-12-09T10:25:20 | 2020-12-09T10:25:20 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,072 | py | #!/usr/bin/env python3
# -*- coding: utf-8 -*-
import logging
import os
import moviepy.editor as mp
from pytube import YouTube
class BuddyDownloader:
"""
Download video and/or audio for given YouTube url
Returns
-------
None.
"""
def __init__(self) -> None:
self.logger = logging.... | [
"ulaszewski.maciej@gmail.com"
] | ulaszewski.maciej@gmail.com |
38537c9f9c94431cfa3e7134396ddf062c9de2bb | db4f9b417e5b91d8f83fedddc959201c55db037d | /AddHeightWeightToPlayerDirectory.py | 6fd87052275e113a4c5dfbfb99aff6bc41e874b1 | [] | no_license | sbattula2/dfsNeuralNet | 7e1e7ec666bf0b3fc915b8049880465869c97a37 | f2e8fedebcb51609feafdccab766260657b71c59 | refs/heads/main | 2023-01-22T09:40:40.455702 | 2020-11-23T18:22:34 | 2020-11-23T18:22:34 | 314,943,077 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 767 | py | # -*- coding: utf-8 -*-
"""
Created on Thu Sep 5 11:30:29 2019
@author: nbatt
"""
import pandas as pd
import numpy as np
import os
df = pd.read_csv('PlayerDirectory.csv')
os.chdir('C:/NBA DFS/Anthropomorphic')
files = os.listdir('C:/NBA DFS/Anthropomorphic')
#df.set_index('Player',inplace=True)
df['Height'] = [1]*... | [
"nbattula2@gmail.com"
] | nbattula2@gmail.com |
2e5bd2963984d065453e3cd16b49c9d75b40a786 | 422e3f7534b7a9007ec02b82e28034583780b9d5 | /argtyped/arguments.py | b71f69b22642f7e7dff00af50f2a69258c8b7af4 | [
"MIT"
] | permissive | guhur/argtyped | 7128cf1ae54f2c69ee05ebb9d5ca267a3ccfa6af | 39ce53d5d05004ea3a622c0df9a1499f8a2abbf5 | refs/heads/master | 2023-01-30T09:54:29.637928 | 2020-06-16T01:21:51 | 2020-06-16T01:27:12 | 319,275,849 | 0 | 0 | MIT | 2020-12-07T09:59:01 | 2020-12-07T09:59:00 | null | UTF-8 | Python | false | false | 11,317 | py | import argparse
import functools
import sys
from collections import OrderedDict
from typing import Any, Callable, Dict, List, Optional, TypeVar
from .custom_types import Switch, is_choices, is_enum, is_optional, unwrap_optional, unwrap_choices
__all__ = [
"Arguments",
]
T = TypeVar('T')
ConversionFn = Callable[[... | [
"huzecong@gmail.com"
] | huzecong@gmail.com |
b51e7f25b8fbc0a62e9ba18826007922377d9475 | f82236cb5a388846ea8c8980ac21d0e11f20171d | /LeetCode/53_最大子序和.py | 7c9ca43e86b406922190bad2717d6d9d4269839c | [] | no_license | cp4011/Algorithms | f2889c219d68b597a38d86899d8ff682e386e649 | e7214e59640cd24d908a6b95d8876c9db9822d8b | refs/heads/master | 2020-04-27T20:21:43.937234 | 2019-08-18T15:12:09 | 2019-08-18T15:12:09 | 174,654,563 | 3 | 0 | null | null | null | null | UTF-8 | Python | false | false | 907 | py | """给定一个整数数组 nums ,找到一个具有最大和的连续子数组(子数组最少包含一个元素),返回其最大和。
示例:
输入: [-2,1,-3,4,-1,2,1,-5,4],
输出: 6
解释: 连续子数组 [4,-1,2,1] 的和最大,为 6。
进阶: 如果你已经实现复杂度为 O(n) 的解法,尝试使用更为精妙的分治法求解。
"""
class Solution:
def maxSubArray(self, nums):
""" :type nums: List[int] :rtype: int """
if len(nums) == 1:
... | [
"957628963@qq.com"
] | 957628963@qq.com |
3449edc16f2114c5800785635a25a94a9aafedbf | 10e34c6c9bb904039677e5221b1cbb0fd604b66b | /lib/__init__.py | c92d8e2e4919c315e0e3bc7a9a2f165bcae2ea21 | [] | no_license | jQwotos/webnouncements | 4a748f2871a04546ebc4e7754548181bf8eef79c | e8448711fd95bd9fe37605e7412c84f543d505f1 | refs/heads/master | 2021-01-19T21:06:37.612705 | 2017-09-23T03:52:57 | 2017-09-23T03:52:57 | 80,591,695 | 0 | 6 | null | 2018-10-26T15:06:22 | 2017-02-01T05:13:02 | JavaScript | UTF-8 | Python | false | false | 18 | py | # Blank init file
| [
"le.kent.jason@gmail.com"
] | le.kent.jason@gmail.com |
158d75b848be7a554a3a613f64f6ee41ace7d699 | 6dbf099660ee82b72fb2526a3dc242d99c5fb8c8 | /nuitka/tree/ReformulationDictionaryCreation.py | 982733f1dbd98179389b9f897633514ab7923746 | [
"Apache-2.0",
"LicenseRef-scancode-warranty-disclaimer"
] | permissive | Hellebore/Nuitka | 3544af691bc352769858ec1d44b6e9de46087bcf | 252d8e5d24521f8fff38142aa66c6b9063151f57 | refs/heads/develop | 2021-01-06T15:33:49.111250 | 2020-02-18T14:24:49 | 2020-02-18T14:24:49 | 241,380,473 | 0 | 0 | Apache-2.0 | 2020-07-11T17:52:04 | 2020-02-18T14:21:01 | Python | UTF-8 | Python | false | false | 11,198 | py | # Copyright 2020, Kay Hayen, mailto:kay.hayen@gmail.com
#
# Part of "Nuitka", an optimizing Python compiler that is compatible and
# integrates with CPython, but also works on its own.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in complianc... | [
"kay.hayen@gmail.com"
] | kay.hayen@gmail.com |
90156dab1baf2565c6bd64e1d84f670ace47b874 | c38d3f4bd2b275475430c2a0d64f4de3c3bbe0fb | /python-server/testAnalystics.py | 72f2cb8eccdfdcb281c07ce3241b521df1f397f2 | [] | no_license | yassinekhaldi00/stage-2019-SpeechRecognition | d27df7bba1a7eb027dc39b6efbf3877c0847b317 | 741fc175191616a363738d012f5af9312450cbfb | refs/heads/master | 2020-06-27T02:07:39.704214 | 2019-08-19T10:27:43 | 2019-08-19T10:27:43 | 199,817,138 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 1,509 | py | import nltk
import matplotlib.pyplot as plt
import arabic_reshaper
from bidi.algorithm import get_display
import re
import json
from flask import *
import uuid
class analyse():
def __init__(self,text):
self.text = text
self.actions = json.load(open('actions.json','r',encoding='utf-8'))
ret... | [
"yassinekhaldi00@gmail.com"
] | yassinekhaldi00@gmail.com |
8709d793445d4fd7c5c435c8fe401b825d7f2fc8 | 177b9b7c6aeba680d3a59155aa9b659c801edb10 | /blog01.py | 90d3ef8ff4d9f03b9934996abf9a5092e44a02d3 | [] | no_license | janaprasanna/Flask-tutorial | 2b414c115058786b24dc7deb97434f35fcf6d4c2 | d65d587d3115d4f03c8eae03ea1a3f4b5064bcc5 | refs/heads/main | 2023-06-18T20:04:53.037595 | 2021-07-21T09:58:15 | 2021-07-21T09:58:15 | 384,620,115 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 618 | py | from flask import Flask,render_template,url_for
app=Flask(__name__)
posts = [
{
'author':'jana',
'title':'Blog post 1',
'content':'My first blog post',
'date':'20th june 2021'
},
{
'author': 'prasanna',
'title': 'Blog post 2',
'content': 'My second ... | [
"emailtojana27@gmail.com"
] | emailtojana27@gmail.com |
247c2669458198436559ecad64bb3fc6620144d1 | af669dbef653dd69474f4c0836582bf14262c80f | /price-test/frame/lib/controllib/pickcase.py | 33dfd072cc050da25cfde06bc968b3d3f02c305e | [] | no_license | siki320/fishtest | 7a3f91639d8d4cee624adc1d4d05563611b435e9 | 7c3f024192e1c48214b53bc45105bdf9e746a013 | refs/heads/master | 2021-01-19T21:58:36.807126 | 2017-04-19T09:56:37 | 2017-04-19T09:56:37 | 88,729,049 | 0 | 0 | null | null | null | null | GB18030 | Python | false | false | 10,819 | py | # -*- coding: GB18030 -*-
'''
Created on Nov 9, 2011
@author: caiyifeng<caiyifeng>
@summary: 加载case的基类
'''
import os
import re
import inspect
import imp
import traceback
import sys
from new import instancemethod
from frame.lib.controllib.case import DtestCase,CasePriority
from frame.lib.commonlib.dlog import dlog
fr... | [
"lisiqi_i@didichuxing.com"
] | lisiqi_i@didichuxing.com |
18783951fb6c722cfc6b04ead8cb84df13c3d573 | 013debf76eb83e6a455214912f83e19287245f83 | /MySv/OneWeb/models.py | 8bde53c2ef1a48a2c2c5b65ba2f4386b9223a708 | [] | no_license | JainPin/WorkWeb | 34f73ab261a2de4018b4c5b5c161bc76dff5b22e | 4949395ff26fb07b2721d4d5cc42202e0541423d | refs/heads/master | 2020-03-21T01:03:10.728980 | 2018-06-19T18:27:28 | 2018-06-19T18:27:28 | 137,921,881 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 531 | py | from django.db import models
# Create your models here.
class OneWeb(models.Model):
title = models.CharField(max_length=100)
content = models.TextField(blank=True)
photo = models.URLField(blank=True)
location = models.CharField(max_length=100)
created_at = models.DateTimeField(auto_now_add = True)
... | [
"as47288679@gmail.com"
] | as47288679@gmail.com |
812dac2b93d0efd7b1fc7e1eb07da70e8fc308e7 | a01c1f6a1735edbad2b105107151d158883320dd | /todoapp/tests.py | 12f883c868379c25fc22bed78010fa9fff749caa | [] | no_license | nvnvenki/Todo | 486a68215f689984d01ab40f3ac485acc16ba993 | 8fd3ec31414d88007a4fd0adeda27506c75daee1 | refs/heads/master | 2020-03-30T13:35:48.381339 | 2014-01-27T07:29:11 | 2014-01-27T07:29:11 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,140 | py | from django.test.client import Client
import json
from django.test.testcases import TestCase
# Create your tests here.
class TestTodo(TestCase):
def setUp(self):
self.client = Client()
def test_get_todos_list(self):
response = self.client.get("http://127.0.0.1:8000/todos")
sel... | [
"nvnvenki@gmail.com"
] | nvnvenki@gmail.com |
dc7cd9af950d48d14e18dea90cf103358effa539 | 19f3e86df623613a12b8bca7f530eef157c92e86 | /github_zen.py | 4fd093c54eef7aa561ba81d25e040449767b34f4 | [
"MIT"
] | permissive | spaceofmiah/learn_ci_args | 919e268de03f016632e98d177e6dd2a14a184efe | 2fababa88b1cc327d40add0bb455cdfa08abc16a | refs/heads/main | 2023-04-20T12:28:47.162490 | 2021-05-14T11:59:13 | 2021-05-14T11:59:13 | 366,903,488 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,089 | py | """
Simplified approach describing how command line argument
are implement in python with argparse library.
===================
python version: 3.8
code lesson url:
Project Description: Project interacts with github's
API and retrieve a provided number of github zen. It
can also s... | [
"geek_200@outlook.com"
] | geek_200@outlook.com |
d3fa450a89e67993256decec13a1c2d9ab54cb65 | d0cb57a09037749c54d45a2177e088ef76f283e3 | /gmmclassificationtiedcov.py | 338069e4807472ba5f179f573423f8412725aed5 | [] | no_license | thebouda/MLProject | b16b71363b7fba6b57480a66fae9a62e14fbf92b | 530b67eed1f38df561a5d6356e1b157dc5f916b3 | refs/heads/main | 2023-05-31T12:14:39.136724 | 2021-07-06T08:20:57 | 2021-07-06T08:20:57 | 363,367,242 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,747 | py | import numpy
import scipy.optimize
# from GMM_load import load_gmm
import matplotlib.pyplot as plt
# import sklearn.datasets as skl
from gmmclassificationgeneralfunctions import gmmValues, computeClassifications,mcol,computeNewCovar,SplitGMM,logpdf_GAU_ND,logpdf_GMM,Estep
# similar to the em algorithm but different... | [
"s288347@studenti.polito.it"
] | s288347@studenti.polito.it |
dc0936eb52f68a8cb9685376aa3a3d2da1e4f0ab | b4eed53837564e453b8e46253cfd4384f2eef874 | /spark-swat/scripts/grep_opencl_stats.py | 68d0db762d5119dccd3a2a17437215135cce6bc3 | [
"BSD-2-Clause"
] | permissive | omario61/Execution-Time-Prediction | 38a7eb6938018c25384bc0d08f4ad9004c1400df | 39318206ba4b6114ee9fb107f2d825828d3462b2 | refs/heads/master | 2021-01-22T05:33:42.179632 | 2017-02-13T23:27:22 | 2017-02-13T23:27:22 | 81,673,002 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,256 | py | #!/usr/bin/python
import os
import sys
class OpenCLEventInfo:
def __init__(self, tokens):
assert tokens[5] == 'total'
self.total = int(tokens[3])
timestamp_str = tokens[8]
self.timestamp = int(timestamp_str[0:len(timestamp_str) - 1])
self.queued = int(tokens[12])
se... | [
"omario61@hotmail.com"
] | omario61@hotmail.com |
f1a74b539754bd02d6525b30b90d7b64ce883fb6 | 37a8d6a938589cb8ccb03db3c3c4582eb3c32ca1 | /Exercise_2/DVC_2019_exc2/Code_snippet/selection_not_working/dvc_exc2_skeleton_ver2.py | 8c26c6010da200b35d29dab42daf34ded59df22c | [] | no_license | neeraj310/Semster_1_DVC | e1754303a630b87b30491577607a75be1ee4e198 | d5bc95c99a4b571e746fd3e147d31d23293576a5 | refs/heads/master | 2021-01-01T21:34:10.051645 | 2020-02-09T18:03:58 | 2020-02-09T18:03:58 | 239,348,166 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 8,995 | py | import numpy as np
import pandas as pd
from bokeh.plotting import figure, show, output_file, save, curdoc
from bokeh.models import ColumnDataSource, HoverTool, NumeralTickFormatter
from bokeh.models.widgets import Select
from bokeh.layouts import column, row, gridplot
from datetime import datetime as dt
from math impor... | [
"noreply@github.com"
] | neeraj310.noreply@github.com |
c3210ac59878f363588249c84467ca2ad459ffde | 312a1c23b78f0616df689b8a396ed562c1971421 | /cpmsc131lab6.py | c7bb2d87ccc8b6e29bb79cfa8daa1fa59e62a721 | [] | no_license | ck0807/python | a40f3b25020385f69b6b02ae14600a7aae5cae20 | b1c8aafaa4a247622163a4055f9b578c7bbbfead | refs/heads/main | 2023-06-02T16:05:29.010036 | 2021-06-19T20:04:44 | 2021-06-19T20:04:44 | 378,494,432 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 786 | py | '''
#1
sum = 0
while True:
for i in range(1,6):
x = int(input("Please enter the scores: "))
sum += x
ave = sum/i
print("the average of the five scores is:", sum/5)
reply = input("Do you like test them again?(y/n)")
if reply == "n":
break
#2
import random
ro... | [
"noreply@github.com"
] | ck0807.noreply@github.com |
e04ba493da8d6671e2b4d23e6fb91a467b971f83 | c2e31f5b341d27de01d4ffa32f24602e27e421f1 | /main.py | bbaf9b9c5b69263f4da96f5c6a1f13e216d837ed | [] | no_license | Keylogger-hash/VkFishing | 8d4a89f8faeedad83c8ea2515f3a3d9a2fffac8e | 23c26cc7b35cd57539647c5a154a05bf6a1ed1e8 | refs/heads/main | 2023-04-18T18:12:29.219758 | 2021-04-29T18:09:27 | 2021-04-29T18:09:27 | 362,905,563 | 7 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,353 | py | from flask import Flask
from flask import render_template
from flask import request
from flask import redirect
import requests
import re
app = Flask(__name__)
@app.route('/')
def index():
return render_template('login.html')
@app.route('/login',methods=['GET','POST'])
def login():
if request.method == 'POST'... | [
"pvvolo2200@gmail.com"
] | pvvolo2200@gmail.com |
dd767e005486377c3b9a314c8f8fdc130015c866 | 652e6171022bb844102e191e9459e73ff2d7901b | /nuitka/nodes/BuiltinAllNodes.py | 879ac9b2ed0dfff730c42fceb35bd3ec876d1869 | [
"LicenseRef-scancode-warranty-disclaimer",
"Apache-2.0"
] | permissive | pombredanne/Nuitka | e07ee1ba2c027c25e4feebc9751bbb0c1cb338b1 | 02e8d59a275cd7fe482cbc8100e753ff5abe39d7 | refs/heads/develop | 2022-03-16T23:55:49.295972 | 2022-02-20T14:28:23 | 2022-02-20T14:28:23 | 69,127,861 | 0 | 0 | null | 2016-09-24T21:10:20 | 2016-09-24T21:10:20 | null | UTF-8 | Python | false | false | 3,823 | py | # Copyright 2021, Batakrishna Sahu, mailto:<Batakrishna.Sahu@suiit.ac.in>
#
# Part of "Nuitka", an optimizing Python compiler that is compatible and
# integrates with CPython, but also works on its own.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file e... | [
"kay.hayen@gmail.com"
] | kay.hayen@gmail.com |
0a0e3f0350453d5a1cdac8e2de2b602591ebbab1 | 154dce21c0d9df7807e859d9ee04048582501d67 | /nqrobo/test/test.py | 7a3ed5127f90064732466ca7638b51ca2e4b8ab1 | [] | no_license | louischoi0/nqrobo | 33ad1ee13d0c5b894c4dba7a2dc805f225ca0a38 | b514c60dde6e87d6df08ba3ff18fc2f65c682cab | refs/heads/master | 2020-05-23T13:53:43.776232 | 2019-05-15T09:24:57 | 2019-05-15T09:24:57 | 186,788,162 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,764 | py |
import pandas as pd
import copy
import numpy as np
from nqrobo.layers.meta import meta
import nqrobo.callback.functions as cb
import sys
from nqrobo.obj.objects import ibkBasicObject
from nqrobo.loader.class_builder import classBuilder
from nqrobo.loader.poolsql import poolSql,poolTsSql
from nqrobo.layers.allocator ... | [
"yerang040231@gamil.com"
] | yerang040231@gamil.com |
c0a653b46b68bf77eb2a92bd994bbad4a0296ccf | c1c34824c2c625d849844b7855a74f2d9d1e1a18 | /Read_Syste.py | 6fa84c06a4e400ca960d3e82813a7dcebe653238 | [] | no_license | pgris/Compare_SN | 27f5d2a689e9b707e5f4743d1894c0a8a86fe9cd | 154c0bc0eef7e48f601cb7159e3020dea1facd2b | refs/heads/master | 2021-01-20T01:45:36.205750 | 2017-05-03T12:26:02 | 2017-05-03T12:26:02 | 89,324,633 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,480 | py | from astropy.table import vstack,Table
from astropy.io import ascii
import matplotlib.pyplot as plt
import numpy as np
def Plot_Filters(sela,what_x='',what_y=[],ratio_x=False,ratio_y=False,legx='',legy='',prefixa='LSST::',title=''):
fige, axe = plt.subplots(ncols=2, nrows=3, figsize=(14,10))
fige.s... | [
"gris@clermont.in2p3.fr"
] | gris@clermont.in2p3.fr |
305deee2e277804410cb61858df9b9d1312d3dd8 | aa60622878511b3a73f88297580b378e9ab985e4 | /Logistic_Regression_with_a_Neural_Network_mindset_v6a.py | 13a682d4dcf8c10cfada5afb2b54fe2918de3358 | [] | no_license | Sandro-Tan/Deep-Learning | a93ebb92116350356456a598c8bff0f63dfbc731 | b313a6b6d9d7e1b84149311f8474e2e26ed0b84d | refs/heads/master | 2022-07-03T17:23:57.828061 | 2020-05-08T06:36:55 | 2020-05-08T06:36:55 | 262,245,823 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 10,664 | py | import numpy as np
import matplotlib.pyplot as plt
import h5py
import scipy
from PIL import Image
from scipy import ndimage
from lr_utils import load_dataset
# Loading the data (cat/non-cat)
train_set_x_orig, train_set_y, test_set_x_orig, test_set_y, classes = load_dataset()
# Example of a picture
index =... | [
"noreply@github.com"
] | Sandro-Tan.noreply@github.com |
ff4f56323f17a59963ae93f4b4952cb0e3bed3d5 | 4d5cc9af2d8293d9a257a88249ab2225030fcc9a | /weather_script.py | 9cacc86b5eede75f1354459fdd079d96ee9518d6 | [] | no_license | Ser3q/Human-Console | ac9b2fecddbc29542cf7090d2ec064dba1a4111b | 6a2436bab59ca50b2a6c8da56b7262e1d0a36b4e | refs/heads/master | 2020-04-17T17:38:26.244379 | 2019-01-21T10:19:39 | 2019-01-21T10:19:39 | 166,791,530 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,457 | py | import re, pyttsx3
from urllib.request import Request, urlopen
from weather import Unit, Weather
engine = pyttsx3.init()
def run(text_r):
if re.match("(pogoda|(prognoza pogod(a|ę|y))|([Cc]zy)? będzie padać)", text_r):
request = Request("https://www.google.com/search?hl=pl&safe=off&q=moja+lokalizacja")
... | [
"kgorny96@gmail.com"
] | kgorny96@gmail.com |
add85f2c5514e2f0184f0027f1dbf56e19261a4b | 6a112b13994912772471e9c9acae8417ccc2b09e | /4_2.py | 75ed9a2068d1915cc9433a6512b04514cf920018 | [] | no_license | yuliiadurytska/Durytska_Lab4 | 1aea7f8329575414de0d662c6f4d6783b9c21411 | dff95ecc5640168f2809eca889595a6c81eb981d | refs/heads/master | 2020-11-25T09:43:51.327315 | 2019-12-17T11:39:48 | 2019-12-17T11:39:48 | 228,603,517 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 494 | py | file = open('lab1.txt')
expressions = file.readlines()
for expression in expressions:
mathematical_operations = ['+', '-', '*', '/']
operations_count = 0
for operation in mathematical_operations:
operations_count = operations_count + expression.count(operation)
file.close()
print('Вира... | [
"noreply@github.com"
] | yuliiadurytska.noreply@github.com |
6a38494d341a006e999caaff0a9d336696bbc2e6 | b08e60fe534d799c765a12a5892d104f581f1cb6 | /node_modules/node-sass/build/config.gypi | f12cb439c396f1abcfba8b0997f736fed2c6580b | [
"LicenseRef-scancode-unknown-license-reference",
"MIT"
] | permissive | andrewmckinnon2/Consensys-final-project-Andrew-McKinnon | e03433c2361a22bde8e37b44dd93b82f363e99ff | e65bcd0b55382fd4e299e0eca713303ccb963c4f | refs/heads/master | 2020-03-27T10:00:26.842043 | 2018-08-28T03:47:14 | 2018-08-28T03:47:14 | 146,388,842 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,342 | gypi | # Do not edit. File was generated by node-gyp's "configure" step
{
"target_defaults": {
"cflags": [],
"default_configuration": "Release",
"defines": [],
"include_dirs": [],
"libraries": []
},
"variables": {
"asan": 0,
"coverage": "false",
"debug_http2": "false",
"debug_nghttp2"... | [
"andrewmckinnon2@gmail.com"
] | andrewmckinnon2@gmail.com |
b43732cfbfc7173753f1b264c51da09b36a11fac | 633ab8880dc367feefdb6ef565ed0e70a4094bc1 | /10001-11000/10951.py | 344e4ca8721432ff30ea47445a48febd4a14a805 | [] | no_license | winston1214/baekjoon | 2e9740ee2824d7777f6e64d50087b5c040baf2c6 | 20125255cd5b359023a6297f3761b2db1057d67d | refs/heads/master | 2023-03-04T09:07:27.688072 | 2021-02-16T13:51:49 | 2021-02-16T13:51:49 | 284,832,623 | 3 | 1 | null | null | null | null | UTF-8 | Python | false | false | 142 | py | # @Author YoungMinKim
# baekjoon
while True:
try:
a,b = map(int,input().split())
print(a+b)
except:
break
| [
"winston1214@naver.com"
] | winston1214@naver.com |
c7e53240cbdadeb3f3b35fd1a36fd1b855939960 | b2fab56bd637f4ac82b2fd0e2f4a12b7a3846458 | /LC66_Plus_One.py | 9266a16cab22f061f3a615e4b1f71c5e8cf67ffb | [] | no_license | tongyijia/python_leetcode_and_Sword-means-offer | e7957602e04830ea306cfaed3782f55ee7ee5ca2 | 0456f011a5a50b02bd5056dd1d98827fcd8f90cf | refs/heads/master | 2020-09-08T01:51:46.059267 | 2019-11-22T08:07:46 | 2019-11-22T08:07:46 | 220,977,096 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 467 | py | class Solution:
def plusOne(self, digits: List[int]) -> List[int]:
if len(digits) == 0: return False
l1 = [0,1,2,3,4,5,6,7,8]
l2 = [9]
if digits[-1] in l1:
digits[-1] += 1
return digits
elif digits[-1] in l2 and len(digits) == 1:
return ... | [
"tongyijialinux@163.com"
] | tongyijialinux@163.com |
f03561d2788a4bb0b7d5d2706508ce0ede8bbadb | 86a2c72a245971348fecb7cf01b838079aa055d9 | /produtos/urls.py | 15588be5e8115757d6be44ec788272dd219c071b | [
"MIT"
] | permissive | WesGtoX/gestao-clientes | af9c9b637e2ac687479547c2d5ccc82824c49db1 | 851b1c89e7b86f6d0b60d9b8d9c2bed3b629d8bf | refs/heads/main | 2023-03-29T21:24:07.823985 | 2021-03-25T00:09:54 | 2021-03-25T00:09:54 | 215,177,263 | 0 | 0 | MIT | 2021-04-07T01:59:00 | 2019-10-15T01:21:58 | JavaScript | UTF-8 | Python | false | false | 229 | py | from django.urls import path
from produtos import views
urlpatterns = [
path('list/', views.produtos_list, name='produtos_list'),
path('produto_bulk/', views.ProdutoBulk.as_view(), name='produto_bulk'), # CreateView
]
| [
"wesley_gto_x@yahoo.com.br"
] | wesley_gto_x@yahoo.com.br |
6571516054a65575f196eb125bf11eb8155fca0e | 70e72c1fc10607ca94f03f01672c2c7b85793dc2 | /codeowners/__init__.py | 79fa59368b5ea8c287ed8919b909f882d989ac10 | [
"MIT"
] | permissive | sbdchd/codeowners | 6c1d7797e86f759ef62a5467c09bdea7c9b118e9 | 04b18b38ee0399c258cf3d200bf2eabf7182982c | refs/heads/master | 2022-08-08T01:46:53.901640 | 2022-07-26T05:33:19 | 2022-07-26T05:33:19 | 200,386,032 | 27 | 14 | MIT | 2022-07-27T14:33:01 | 2019-08-03T14:40:16 | Python | UTF-8 | Python | false | false | 6,224 | py | import re
from typing import Generator, List, Optional, Pattern, Tuple
from typing_extensions import Literal
__all__ = ["CodeOwners"]
OwnerTuple = Tuple[Literal["USERNAME", "TEAM", "EMAIL"], str]
TEAM = re.compile(r"^@\S+/\S+")
USERNAME = re.compile(r"^@\S+")
EMAIL = re.compile(r"^\S+@\S+")
MASK = "/" * 20
def p... | [
"noreply@github.com"
] | sbdchd.noreply@github.com |
faf6939df77af078f8359a2e9f30b6df4ffc6cd9 | f98960a21f60be089aca5d54bcfc67661a819757 | /common/libs/user/UserService.py | 5b168a11306cf4fb73e98cdd6c2efbccab5ba2e7 | [] | no_license | 767073632/question_bank_flask | 7d7ed70af3b9f8e6c692e0e556f28a03e0a6398c | d3fae99f389fac408195fbf4d5812b7f9c26c33a | refs/heads/master | 2022-12-03T16:52:34.349843 | 2020-08-23T07:36:48 | 2020-08-23T07:36:48 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 683 | py | import base64
import hashlib
import string
import random
class UserService():
@staticmethod
def gene_auth_code(user_info):
m = hashlib.md5()
str = "%s-%s-%s-%s"%(user_info.uid,user_info.login_name,user_info.login_pwd,user_info.login_salt)
m.update(str.encode('utf-8'))
... | [
"zhilong.wang@ly.com"
] | zhilong.wang@ly.com |
b326df97c204e9190ac03e42cf89e198cff1a2b2 | a2362576001e0f9e22dc69c623170e108908c1b4 | /testing_sys/todos/urls.py | 6904f3751932fe8f272a980e49cd322ecafbba5d | [] | no_license | mdigbazova/TestSystem | c1a694eb1877567bcc63a2cc3f615469ba4f8fd9 | e5cca7a3aa31f1af4e1f7807895124e36348b9af | refs/heads/master | 2022-12-15T22:20:14.812166 | 2019-06-11T08:14:24 | 2019-06-11T08:14:24 | 183,647,017 | 0 | 1 | null | 2022-11-22T03:50:12 | 2019-04-26T14:53:54 | Python | UTF-8 | Python | false | false | 1,004 | py | from django.urls import path
from rest_framework.urlpatterns import format_suffix_patterns
from rest_framework.schemas import get_schema_view
from . import views
schema_view = get_schema_view(title='Pastebin API')
urlpatterns = [
path('schema/', schema_view),
path('todos_list/', views.TodosList.as_view(), na... | [
"mdigbazova@gmail.com"
] | mdigbazova@gmail.com |
0cc9f6522d31661b42ca34270fb6039f9874c64e | ad58ceeada5ad7c1a6a9fc370969a7d7306b6397 | /graphviz/quoting.py | 34b75016bccbee5fbc090ae5efd00e9245582f93 | [
"MIT"
] | permissive | kianmeng/graphviz | 35e65f9895130ca12c6b4fa54efb064ddbdbcdde | 2861bdea2dcc0ec90bd257b56ab546eb95537221 | refs/heads/master | 2023-08-30T16:48:43.526661 | 2021-11-02T20:51:16 | 2021-11-02T20:51:16 | 424,044,748 | 0 | 0 | MIT | 2021-11-03T00:47:06 | 2021-11-03T00:47:05 | null | UTF-8 | Python | false | false | 5,327 | py | """Quote strings to be valid DOT identifiers, assemble quoted attribute lists."""
import functools
import re
import typing
from . import tools
__all__ = ['quote', 'quote_edge',
'a_list', 'attr_list',
'escape', 'nohtml']
# https://www.graphviz.org/doc/info/lang.html
# https://www.graphviz.org/d... | [
"sebastian.bank@uni-leipzig.de"
] | sebastian.bank@uni-leipzig.de |
1b9e47c4782c223749556fcc26edde71958cf0b7 | 09c8e2ead4c8d76e76bfd5fd7b8abaed709b913b | /data_common/machine_learning/utils/word_utils.py | 90fe9fd19d8ff9c93cc1a17255f430ed27707ce3 | [] | no_license | jiangsiwei2018/BigData | c004f8e1bb290e6591745aec0dcaeb8542765e3b | 568a627f32c2f4526d508096e1ded942bdf7b425 | refs/heads/master | 2023-08-19T14:48:24.244248 | 2021-10-19T18:56:18 | 2021-10-19T18:56:18 | 345,369,365 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,164 | py | def createVocabList(dataSet):
'''
创建所有文档中出现的不重复词汇列表
Args:
dataSet: 所有文档
Return:
包含所有文档的不重复词列表,即词汇表
'''
vocabSet = set([])
# 创建两个集合的并集
for document in dataSet:
vocabSet = vocabSet | set(document)
return list(vocabSet)
# 词袋模型(bag-of-words model):词在文档中出现的次数
def... | [
"1910479313@qq.com"
] | 1910479313@qq.com |
2e4a196d264e7391673866250f0d8235569d7a90 | 6268777dc14e1870f122c3f6d9eb159ae64e71d2 | /plugin/py/lib/evernote/edam/limits/constants.py | 5894682f0f534b679148c3dee10634237d1500e2 | [
"Apache-2.0",
"BSD-2-Clause"
] | permissive | vim-scripts/evervim | 9b36bb2caf4344850e12a85eac187357fe0d07e8 | fd333a0757c27b3fd737786cdf9bb4f6cffadb0c | refs/heads/master | 2020-05-19T09:22:53.141709 | 2012-06-03T00:00:00 | 2012-06-09T22:20:03 | 4,316,143 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,554 | py | #
# Autogenerated by Thrift
#
# DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING
#
from thrift.Thrift import *
from ttypes import *
EDAM_ATTRIBUTE_LEN_MIN = 1
EDAM_ATTRIBUTE_LEN_MAX = 4096
EDAM_ATTRIBUTE_REGEX = "^[^\\p{Cc}\\p{Zl}\\p{Zp}]{1,4096}$"
EDAM_ATTRIBUTE_LIST_MAX = 100
ED... | [
"scraper@vim-scripts.org"
] | scraper@vim-scripts.org |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.