repo_name stringlengths 7 111 | __id__ int64 16.6k 19,705B | blob_id stringlengths 40 40 | directory_id stringlengths 40 40 | path stringlengths 5 151 | content_id stringlengths 40 40 | detected_licenses list | license_type stringclasses 2
values | repo_url stringlengths 26 130 | snapshot_id stringlengths 40 40 | revision_id stringlengths 40 40 | branch_name stringlengths 4 42 | visit_date timestamp[ns] | revision_date timestamp[ns] | committer_date timestamp[ns] | github_id int64 14.6k 687M ⌀ | star_events_count int64 0 209k | fork_events_count int64 0 110k | gha_license_id stringclasses 12
values | gha_fork bool 2
classes | gha_event_created_at timestamp[ns] | gha_created_at timestamp[ns] | gha_updated_at timestamp[ns] | gha_pushed_at timestamp[ns] | gha_size int64 0 10.2M ⌀ | gha_stargazers_count int32 0 178k ⌀ | gha_forks_count int32 0 88.9k ⌀ | gha_open_issues_count int32 0 2.72k ⌀ | gha_language stringlengths 1 16 ⌀ | gha_archived bool 1
class | gha_disabled bool 1
class | content stringlengths 10 2.95M | src_encoding stringclasses 5
values | language stringclasses 1
value | is_vendor bool 2
classes | is_generated bool 2
classes | length_bytes int64 10 2.95M | extension stringclasses 19
values | num_repo_files int64 1 202k | filename stringlengths 4 112 | num_lang_files int64 1 202k | alphanum_fraction float64 0.26 0.89 | alpha_fraction float64 0.2 0.89 | hex_fraction float64 0 0.09 | num_lines int32 1 93.6k | avg_line_length float64 4.57 103 | max_line_length int64 7 931 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
pzar97/DFS-2 | 1,537,598,337,340 | 03eeb217ac3bc42fc63944d01c204c4e970b190b | d92beb95439f63ba1f142459fb01c7e034c4a00d | /decodeString.py | cc8b3bc0391f9cd8e5c41a514fb4921b3fe5d5a5 | [] | no_license | https://github.com/pzar97/DFS-2 | 678abe4513bc8a0aaaa0f5ff7d53fe500c87f443 | aea23a72162b204e1ef7d2b92c51ff32742c2038 | refs/heads/master | 2023-07-15T17:49:45.279359 | 2021-08-29T21:20:01 | 2021-08-29T21:20:01 | 401,143,419 | 0 | 0 | null | true | 2021-08-29T21:12:37 | 2021-08-29T21:12:37 | 2021-07-08T19:46:39 | 2021-08-29T07:08:15 | 3 | 0 | 0 | 0 | null | false | false | class Solution:
def decodeString(self, s: str) -> str:
"""
TC: O(n)
SC: O(no. of digits + no. of strings in the 's' string)
"""
# 1. base case
if s == None or len(s) == 0:
return s
# 2. when the string is not empty
stackInt = []
... | UTF-8 | Python | false | false | 1,419 | py | 2 | decodeString.py | 2 | 0.414376 | 0.408034 | 0 | 53 | 25.773585 | 64 |
jumphone/SPRINT | 4,406,636,486,324 | 75915eb78fe5143c6769c15885b5db897048c12f | 5403ab621f25f1ce7c9f8e9578b156abf148ba5e | /sprint/tools_zf/get_depth_old.py | d4edc4cfea6332ca885b5e4827048c9afaf4fe40 | [
"MIT"
] | permissive | https://github.com/jumphone/SPRINT | 75015dcf6dc6677aef65101b68b16e3eb8deafdd | d5ff879eaade1563dda4bfd44ab7199a25c6e719 | refs/heads/master | 2023-06-23T07:00:40.581118 | 2023-06-12T08:42:46 | 2023-06-12T08:42:46 | 72,709,622 | 46 | 14 | null | false | 2018-10-24T13:20:03 | 2016-11-03T04:45:03 | 2018-09-26T12:31:50 | 2018-10-24T13:20:03 | 6,378 | 10 | 6 | 3 | Python | false | null |
def get_depth(zz_in_dir=0,bed_in_dir=0,bed_out_dir=0):
fread=open(zz_in_dir)# './zz_folder/all.zz')
fsnv=open(bed_in_dir) #'../bed_folder/try_new.bed') # Hap_SRR521447.bed')
fo=open(bed_out_dir,'w')#'./tmp/readspersite_new.zer','w')
class Read:
def __init__(self,read):
self.snv=read.split('\t')[4].spl... | UTF-8 | Python | false | false | 1,726 | py | 55 | get_depth_old.py | 51 | 0.577057 | 0.540556 | 0 | 71 | 23.28169 | 102 |
stymphalide/teaching | 16,320,875,769,435 | 568cd0f25264c9fb374806fa8a0ab18826410dea | ff1b0b0f66c1c0c3b02b8b466956a8a55545e7cf | /nachhilfe/while_mit_randint.py | 2811c75b04eb3d25010342ef6d8a84964055a43d | [] | no_license | https://github.com/stymphalide/teaching | 4b4ac57f9d150fc35689f600fc90f3036fa950c8 | ba8f83d9fe90bb6db6098b9db8bbfac2934f32ab | refs/heads/master | 2021-05-09T11:09:32.296533 | 2018-03-04T15:04:02 | 2018-03-04T15:04:02 | 118,984,791 | 0 | 0 | null | null | null | null | null | null | null | null | null | null | null | null | null | import random
#random.seed(0)
liste = []
i = 0
while i < 30:
liste.append(random.randint(0, 36))
i += 1
print(liste) | UTF-8 | Python | false | false | 119 | py | 19 | while_mit_randint.py | 11 | 0.647059 | 0.579832 | 0 | 9 | 12.333333 | 36 |
Samechanchan/TokyoGasINetHackathon-1 | 16,149,077,034,171 | a1832620f141a8e5c5e5b0e553bde5d5ff97ea80 | aa691f4fce334eb4296e29b806c6296779cafa47 | /DangerMap/urls.py | a27f9bf67d8f1672300ecdbf56f61d6e33690974 | [] | no_license | https://github.com/Samechanchan/TokyoGasINetHackathon-1 | 428f2521be23d658738623bbcfbdb11fa1deef7a | ec293d37683707637acb5d1eb16dbc9af0bdb153 | refs/heads/master | 2023-01-20T12:11:15.400267 | 2020-11-22T01:04:25 | 2020-11-22T01:04:25 | null | 0 | 0 | null | null | null | null | null | null | null | null | null | null | null | null | null | from django.urls import path
from . import views
urlpatterns = [
path('', views.index, name='index'),
path('regist', views.regist, name='regist')
] | UTF-8 | Python | false | false | 156 | py | 7 | urls.py | 6 | 0.666667 | 0.666667 | 0 | 7 | 21.428571 | 47 |
banjarajanardan/algorithmicToolboxUniversityOfSanDiego | 5,274,219,852,885 | 3872746240df240c3a3696bd4e7213246471bc04 | 46931a382db32299c905cf42cb536c5bfdf63848 | /week3_greedy_algorithms/4_maximum_advertisement_revenue/dot_product.py | ed5cd5c990603fb486dd2745dbabc42a4bd592a7 | [] | no_license | https://github.com/banjarajanardan/algorithmicToolboxUniversityOfSanDiego | c188dfba04a632993bdf26694cd36941c27f61a3 | b06bec5b6f4d1e3a0f56f919df83f11d0a8e80da | refs/heads/master | 2020-12-19T12:12:36.895275 | 2020-02-12T04:38:09 | 2020-02-12T04:38:09 | 235,730,532 | 1 | 0 | null | null | null | null | null | null | null | null | null | null | null | null | null | #Uses python3
import sys
def max_dot_product(a, b):
#write your code here
res = 0
for i in range(len(a)):
res += max(a) * max(b)
a.remove(max(a))
b.remove(max(b))
return res
if __name__ == '__main__':
n = int(input())
a = input()
b = input()
a = list(map(int, a... | UTF-8 | Python | false | false | 403 | py | 13 | dot_product.py | 12 | 0.498759 | 0.493797 | 0 | 20 | 18.9 | 33 |
MichaelDarku/Python-for-crypto | 10,488,310,141,852 | 01e4c46113ac1e9505fbd17d703035daac57fd9c | bd86fe0cf5cb27017de1efa7072896968fd7f7dd | /bitoin price ticker.py | d9d76dec4562ac68a15a119d69e26372f52cac33 | [] | no_license | https://github.com/MichaelDarku/Python-for-crypto | 0087fb40f1a3c397f1511e3b288ed21a5fd39118 | 3257c67f389be26cc401be94bb9f31944a76d924 | refs/heads/master | 2023-07-24T10:16:01.568039 | 2021-09-06T07:08:18 | 2021-09-06T07:08:18 | null | 0 | 0 | null | null | null | null | null | null | null | null | null | null | null | null | null | # -*- coding: utf-8 -*-
"""
Created on Sat Jan 13 03:49:53 2018
@author: jacques
"""
import time
import requests
r = requests.get('https://api.coindesk.com/v1/bpi/currentprice.json')
j=(' Cuz Jacques says so and he controls the internet')
print(' The current price of Bitcoin ... | UTF-8 | Python | false | false | 409 | py | 8 | bitoin price ticker.py | 8 | 0.586797 | 0.552567 | 0 | 14 | 27.285714 | 93 |
uktrade/lite-api | 1,211,180,783,964 | 516600015c3d4c75075d7163e7bc33f4680e1c60 | 2509936d814fb6cdd283c2549c518c8dfad9450c | /api/licences/migrations/0002_licence_decisions.py | dae16bb75df5b3651ed411d9ba857be37a98f534 | [
"MIT"
] | permissive | https://github.com/uktrade/lite-api | 19f829119fa96de3f4862eb233845508b0fef7eb | b35792fc981220285ed9a7b3659aba460f1b207a | refs/heads/dev | 2023-08-25T10:11:17.594001 | 2023-08-24T14:24:43 | 2023-08-24T14:24:43 | 172,914,199 | 4 | 3 | MIT | false | 2023-09-14T17:36:47 | 2019-02-27T12:46:22 | 2023-03-02T15:55:05 | 2023-09-14T17:36:47 | 16,182 | 3 | 5 | 5 | Python | false | false | # Generated by Django 2.2.11 on 2020-04-01 13:21
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
("decisions", "0001_initial"),
("licences", "0001_initial"),
]
operations = [
migrations.AddField(
model_name="licence",
... | UTF-8 | Python | false | false | 458 | py | 1,096 | 0002_licence_decisions.py | 1,038 | 0.59607 | 0.543668 | 0 | 19 | 23.105263 | 90 |
prosecurity/Pyllywood | 2,216,203,133,162 | 9ce18f92ed4aaf5eeaf512935943b3cd86ee2854 | 052cc19e31a4e445358892842c14ccbed97cf796 | /libs/attack_creds_first.py | 3eb9582a53cf200b420b50ed4e1f1571c2d1ad7e | [] | no_license | https://github.com/prosecurity/Pyllywood | affb28abd93d10d90b72573e50b97791c7fd92ef | b217d7a835d92659d7d6998a0e1991ff3860956e | refs/heads/master | 2022-08-22T03:52:56.662150 | 2020-05-20T21:19:24 | 2020-05-20T21:19:24 | null | 0 | 0 | null | null | null | null | null | null | null | null | null | null | null | null | null | import socket, os, json
from . import attack_routes as ar
from . import auth_helper as ah
from colorama import init
from termcolor import colored
init()
def attackRoutesWithCreds(target, username, password, port, authmethod):
try:
foundStreams = [] # List of found streams for current target:port
w... | UTF-8 | Python | false | false | 4,946 | py | 7 | attack_creds_first.py | 6 | 0.609584 | 0.596442 | 0 | 90 | 53.966667 | 179 |
przemekmaniecki/terminarz_floty | 4,380,866,651,369 | d545848ba2bee9a8896a06cc92c5af16e1a15ec8 | ca72e9bee45e4c18072a9fc42f90fe1a7de501dc | /flota/Pojazdy/views.py | 9e634d9f7f3a1d6e22a090eecd47d440c558198e | [] | no_license | https://github.com/przemekmaniecki/terminarz_floty | 4dc1051878b5e95c957f420ed01c83895f37e6ab | 491b8c942b53b81a8bbe976b7f5c0f831e8dd4a7 | refs/heads/master | 2022-08-16T19:41:51.100639 | 2020-05-24T09:19:14 | 2020-05-24T09:19:14 | 266,500,466 | 0 | 0 | null | null | null | null | null | null | null | null | null | null | null | null | null | from django.contrib.auth.mixins import LoginRequiredMixin
from django.core.exceptions import ValidationError
from django.shortcuts import render, redirect
from django.http import HttpResponse
from django.views import View
from Pojazdy.forms import AddVehicleForm, BT_Form, TACHO_Form, ADR_Form, EURO_Form, FRC_Form, UDT_... | UTF-8 | Python | false | false | 15,835 | py | 43 | views.py | 26 | 0.594208 | 0.593513 | 0 | 373 | 41.402145 | 124 |
tanvitiwari17/opencv | 1,073,741,871,328 | e365143167812ba1a9338b61275b200d057eb7fb | 9ed44196a423f4d85cb6d3ce264cc2565b2f7b4e | /Hand_Gesture_image.py | 13454184e370e6705a6a78f63452e00df98aab20 | [] | no_license | https://github.com/tanvitiwari17/opencv | 48bc7455aa7a2b8f7479a183a4edbdb537375266 | 86baade5211e461ba47e4f8167550383cbeb9e1c | refs/heads/master | 2023-03-06T04:04:07.574858 | 2021-02-17T11:13:00 | 2021-02-17T11:13:00 | 301,128,225 | 0 | 0 | null | null | null | null | null | null | null | null | null | null | null | null | null | # -*- coding: utf-8 -*-
"""
Created on Thu Oct 15 18:54:12 2020
@author: tanvi
"""
# convex hull :
#technique to find out the pixel of outer edges of any abject and connects them
import cv2
import numpy as np
hand = cv2.imread('cap.jpg',0)
ret, the = cv2.threshold(hand,70,255,cv2.THRESH_BINARY)
# to find connect... | UTF-8 | Python | false | false | 695 | py | 27 | Hand_Gesture_image.py | 27 | 0.716547 | 0.658993 | 0 | 30 | 22.166667 | 80 |
Kotaimen/awscfncli | 11,914,239,320,990 | c99ac935604a333fdf78d37f92f41164c5e4977e | ce8fe099312b3f70145c3b983f686353ce7ad803 | /tests/unit/runner/test_bobo3_profile.py | 7a4859bc53bbe4a3b3dcad56a45d683fde79184d | [
"MIT"
] | permissive | https://github.com/Kotaimen/awscfncli | 53876e5c85a59e443663907b9bfe12060a4969fa | 91b5eb6d73a90691d0a9e0634b8cf1054209c64f | refs/heads/develop | 2023-01-09T03:59:22.675633 | 2022-07-09T12:01:27 | 2022-07-09T12:01:27 | 77,896,914 | 62 | 17 | MIT | false | 2022-12-27T16:56:34 | 2017-01-03T08:11:09 | 2022-10-24T21:18:55 | 2022-12-27T16:56:33 | 715 | 55 | 13 | 27 | Python | false | false | from awscfncli2.runner import Boto3Profile
class TestStackSelector(object):
def test_update(self):
s1 = Boto3Profile('foo','bar')
s2 = Boto3Profile('foo', 'baz')
assert s1.region_name == 'bar'
s1.update(s2)
| UTF-8 | Python | false | false | 246 | py | 124 | test_bobo3_profile.py | 71 | 0.626016 | 0.589431 | 0 | 10 | 23.6 | 42 |
dagege1993/codeformyself | 5,196,910,475,926 | 350398060e3d3b946563ed3a2c7e81e4fa92ad94 | 1787eb394653a963377f977980125e0d05a2ddbb | /flashtripdemo/competitor/api/competitor/routers.py | 08553b76925cfb73e93e7a33b9d560d5790876f3 | [] | no_license | https://github.com/dagege1993/codeformyself | 51283169b819309e63c135ebca501f87d37a1651 | 0b32c6e1b224f543d23e284104d311f2a5c41475 | refs/heads/master | 2021-10-25T01:23:59.036132 | 2019-06-06T06:23:37 | 2019-06-06T06:23:37 | 146,266,239 | 7 | 8 | null | false | 2021-10-06T23:16:41 | 2018-08-27T08:03:11 | 2021-07-14T12:44:14 | 2021-10-06T23:16:40 | 40,736 | 7 | 9 | 14 | HTML | false | false | from api.types.handler import HealthCheck
from api.competitor.v1 import AvaiCompetitor, PrepCompetitor
routers = [
(r"/", HealthCheck),
(r"/api/v1/competitor/availability", AvaiCompetitor),
(r"/api/v1/competitor/preparation", PrepCompetitor),
] | UTF-8 | Python | false | false | 257 | py | 715 | routers.py | 617 | 0.743191 | 0.731518 | 0 | 8 | 31.25 | 60 |
foreloner87/Guvi-player | 6,992,206,766,698 | 3295e72669fbe91b7d1806c0a57e5189c19b48c2 | b0cce56edd7f08649ec0dc2fe744cdc15e3ddfef | /set4-31.py | bfaadc22697f203a29db259f3eaa217d3ba70748 | [] | no_license | https://github.com/foreloner87/Guvi-player | 406c99fd451310ecc5ad8102652fd0e15a94bc0c | 4d665ab7f817dbac7a90beaf4609ec2df873e0da | refs/heads/master | 2020-03-28T15:53:06.564284 | 2019-03-12T03:43:33 | 2019-03-12T03:43:33 | 148,634,766 | 0 | 0 | null | null | null | null | null | null | null | null | null | null | null | null | null | s=input()
f=0
for x in s:
if(x=='('):
f+=1;
if(x==')'):
f-=1;
if(f==0):
print("yes")
else:
print("no")
| UTF-8 | Python | false | false | 135 | py | 10 | set4-31.py | 9 | 0.355556 | 0.325926 | 0 | 11 | 11.272727 | 16 |
TarzanQll/dataanalysis | 14,783,277,482,400 | b85727c1672ff42274a8cda5c0f5da6774b3237d | 08bbe31eff30a121ec55f156881af52d9a3eaa96 | /dmlib/src/main/python/nlp/cluster/LDA/GensimLDA.py | d08646dd8cbf0854639a50f1f82938b7c0477ff7 | [] | no_license | https://github.com/TarzanQll/dataanalysis | aeea3945727817d3431f872903121d7af8b2524f | 5ac975a828ef222cb3875114dcee63f0db5376e6 | refs/heads/master | 2021-06-01T11:51:05.012191 | 2020-12-07T10:06:14 | 2020-12-07T10:06:14 | 103,211,255 | 1 | 1 | null | null | null | null | null | null | null | null | null | null | null | null | null | import gensim
import os
import jieba
import re
filepath = "/home/nyh/work/workspace/dataanalysis/dmlib/data/news/"
text = []
fp = open('/home/nyh/work/workspace/dataanalysis/dmlib/data/nlp/stopWords.txt', 'r')
StopWordsList = [line.strip() for line in fp]
for filename in os.listdir(filepath):
file = open(filepath ... | UTF-8 | Python | false | false | 1,730 | py | 100 | GensimLDA.py | 76 | 0.540767 | 0.478417 | 0 | 50 | 32.38 | 134 |
pemj/crawlblr | 8,735,963,505,288 | e39db6d8c57498256319cefca39ee83e523a7e01 | f1e81c4c4076afc6a023f388024b0e8ba6c4e0d4 | /crawlblr/crawltech.py | 4f602bf791cabd4b1d04c75400d0564543312174 | [] | no_license | https://github.com/pemj/crawlblr | 5a3e46cf524804a6e379c541803bde1e8f4eff6f | 6165780ed97a4613029d1bde69ab55416ade1da7 | refs/heads/master | 2021-07-08T06:07:11.140753 | 2014-07-22T07:28:57 | 2014-07-22T07:28:57 | 17,350,827 | 4 | 0 | null | false | 2021-06-01T21:57:57 | 2014-03-03T00:40:27 | 2017-10-07T01:14:52 | 2021-06-01T21:57:54 | 2,094 | 6 | 0 | 1 | Python | false | false | from urllib import request, error
import socket
from queue import Empty
import os
import json
# for some user
# opens a URL, uses JSON decoding to turn it into a dictionary, checks
# for validity. Retries a few times if it breaks
# Parameters:
# url: type: string, contents: URL representing a tumblr API request
# se... | UTF-8 | Python | false | false | 5,476 | py | 12 | crawltech.py | 8 | 0.542549 | 0.536888 | 0 | 153 | 34.705882 | 100 |
betty29/code-1 | 18,116,172,074,787 | b53ff2166642196a679b8541a1becadc062a5408 | 50008b3b7fb7e14f793e92f5b27bf302112a3cb4 | /recipes/Python/440694_Determine_size_console_window/recipe-440694.py | cf1781ca82f9c7a9dd7d29c3250b2feffeef807e | [
"Python-2.0",
"MIT"
] | permissive | https://github.com/betty29/code-1 | db56807e19ac9cfe711b41d475a322c168cfdca6 | d097ca0ad6a6aee2180d32dce6a3322621f655fd | refs/heads/master | 2023-03-14T08:15:47.492844 | 2021-02-24T15:39:59 | 2021-02-24T15:39:59 | 341,878,663 | 0 | 0 | MIT | false | 2021-02-24T15:40:00 | 2021-02-24T11:31:15 | 2021-02-24T12:00:22 | 2021-02-24T15:39:59 | 8,183 | 0 | 0 | 0 | Python | false | false | from ctypes import windll, create_string_buffer
# stdin handle is -10
# stdout handle is -11
# stderr handle is -12
h = windll.kernel32.GetStdHandle(-12)
csbi = create_string_buffer(22)
res = windll.kernel32.GetConsoleScreenBufferInfo(h, csbi)
if res:
import struct
(bufx, bufy, curx, cury, wattr,
left, ... | UTF-8 | Python | false | false | 557 | py | 8,810 | recipe-440694.py | 3,493 | 0.694794 | 0.658887 | 0 | 20 | 26.85 | 83 |
linhthi/ranking-explorer | 17,008,070,505,719 | 8b6afb9bf47d1bd6673188e581e8c7b037bb2ef2 | 07c322357a7f056f25a9ea822e4bc5d732762ee3 | /config/config.py | 8d5d6bad077edead2903d73bad4eea2f16072440 | [] | no_license | https://github.com/linhthi/ranking-explorer | b4252742698d48b62c9e205e200215ebce797b3c | f6ae74b2b07c5ef0bec865da1ea74a63238f294e | refs/heads/master | 2022-12-06T19:50:21.529340 | 2020-08-26T01:18:10 | 2020-08-26T01:18:10 | 289,407,463 | 1 | 0 | null | null | null | null | null | null | null | null | null | null | null | null | null | import os
import yaml
basedir = os.path.abspath(os.path.dirname(__file__))
with open('./config/test.yaml') as f:
data = yaml.load(f, Loader=yaml.FullLoader)
MYSQL_DATABASE = data.get('mysql.database')
MYSQL_HOST = data.get('mysql.host')
MYSQL_USER = data.get('mysql.username')
MYSQL_PASSWORD = data.get('mysql.pass... | UTF-8 | Python | false | false | 714 | py | 29 | config.py | 19 | 0.687675 | 0.680672 | 0 | 22 | 31.5 | 77 |
KammerBernd/krauler | 8,332,236,576,786 | 6e86b063226eda01fb95b525d0929afcf51e8ea7 | 965873b4748d7fbe75fbeb7731a8912cdde66aeb | /krauler.py | 639fc08da81246d30fd8a043ea5706262d56cc36 | [] | no_license | https://github.com/KammerBernd/krauler | c46894c46d5ed81f10c779de89422a1d12305636 | a6e0c1d9185a782c0dfd856de41141cae9ef9496 | refs/heads/master | 2021-01-15T11:43:28.030462 | 2014-08-16T17:45:16 | 2014-08-16T18:07:11 | null | 0 | 0 | null | null | null | null | null | null | null | null | null | null | null | null | null | import gevent
from gevent import monkey
monkey.patch_all() # get HTTP working
monkey.patch_thread()
from gevent.queue import Queue
import argparse
import requests
import re
import os
import sys
class Krauler:
def __init__(self, threadcount=4, chunksize=1024, chan='krautchan'):
self.threadcount = thr... | UTF-8 | Python | false | false | 3,116 | py | 2 | krauler.py | 1 | 0.528562 | 0.51733 | 0 | 103 | 29.242718 | 172 |
OidaTiftla/CarND-Vehicle-Detection | 15,229,954,062,995 | 32ea9b4bad208b41276c7ebdb92290e02ba5f28c | c3217e75b660540278d3dcd43902c9552b04779c | /create_non_vehicle_data.py | 1479d5b489380f1ad78730091e2936334157428d | [
"MIT"
] | permissive | https://github.com/OidaTiftla/CarND-Vehicle-Detection | a6fe96c3652e9ac43177e0198e3e5aef89aee563 | f1e84156afa4374390a734d6e57f7bd1ff32f64f | refs/heads/master | 2020-03-19T10:34:34.805234 | 2018-06-11T15:57:37 | 2018-06-11T15:57:37 | 136,383,639 | 0 | 0 | null | true | 2018-06-06T20:39:08 | 2018-06-06T20:39:07 | 2018-06-04T05:36:21 | 2018-02-10T00:13:35 | 29,568 | 0 | 0 | 0 | null | false | null | import numpy as np
import cv2
import time
import matplotlib.pyplot as plt
import random
import os
import glob
import helper
import matplotlib.image as mpimg
filenames = glob.glob('test_images/project_video_*.jpg')
classify_img_size = (64, 64)
neg_range_float = ((0, 0.35), (0.5, 1))
neg_samples = [
(64, 16),
(... | UTF-8 | Python | false | false | 1,566 | py | 10 | create_non_vehicle_data.py | 9 | 0.588761 | 0.555556 | 0 | 44 | 34.590909 | 105 |
zshimanchik/battlecity | 6,846,177,908,982 | 16a087a492ec71b21c9de5cd347811a614e607e1 | 10b26c4b5756eddf0b9fa962a193f4bc2f27969d | /battlecityplayer/tactics/hunt.py | 3546b7c79680238c83a72731f960ce63fdf1b13d | [] | no_license | https://github.com/zshimanchik/battlecity | b43b16a36f86e31e9726aeac678c0547602f22c4 | 5fa74de38824cd8d20a0c17ec2d2324e83c5babb | refs/heads/master | 2020-08-21T23:11:03.941571 | 2019-10-19T20:44:10 | 2019-10-19T20:44:10 | 216,268,633 | 0 | 0 | null | null | null | null | null | null | null | null | null | null | null | null | null | from collections import deque
from models import Direction
from tactics import Tactics
from constants import *
class Hunt(Tactics):
def update(self, player):
self.usability = 0
self.action = ''
board = player.board
path = self.find_path_to_enemy(board)
if path and len(path... | UTF-8 | Python | false | false | 2,172 | py | 20 | hunt.py | 17 | 0.508748 | 0.50046 | 0 | 54 | 39.222222 | 89 |
blackhen/Python | 10,934,986,769,426 | edd575b3c7a8114bdcf9708a341c197aff755b82 | ca7a03fd57f02a832fbb08c170b1bd08f389bc3e | /HW_Dealer.py | 28c55d9affe1dbb19142b3ca87223d9412352548 | [] | no_license | https://github.com/blackhen/Python | 5ac428f17e7e16ae25abac2a81cbcb2b896ea741 | 0edf3fbbd37b0088c0a0d63fb31c9d81287c7bf1 | refs/heads/master | 2020-05-16T21:01:54.944888 | 2015-02-26T09:01:49 | 2015-02-26T09:01:49 | 31,358,400 | 0 | 0 | null | null | null | null | null | null | null | null | null | null | null | null | null | '''HW_Dealer'''
def dealer(number_order):
'''total price of order'''
for _ in range(number_order):
weight_spe = input()
weight_nor = input()
for _ in range(input()):
weight = input()
piece = input()
if weight >= weight_spe:
ans = piece+... | UTF-8 | Python | false | false | 535 | py | 154 | HW_Dealer.py | 151 | 0.46729 | 0.450467 | 0 | 17 | 30.470588 | 59 |
keysona/qq | 6,476,810,724,440 | cef4026203b58f28e4c68955a751c49c40247dee | 1999bf6b07051534dbec753e45dc4c3c8d340c6d | /miniqq/admin.py | aba50b5192dd64d12c77004c07557babd420c0fc | [] | no_license | https://github.com/keysona/qq | 898e8f3a55f09cfe64be7b2391dabfe0ee672547 | a3dca71dafddb37d14aecac53448cf7292b8a153 | refs/heads/master | 2016-08-10T11:11:28.403040 | 2015-12-26T16:24:27 | 2015-12-26T16:24:27 | 48,616,365 | 1 | 0 | null | null | null | null | null | null | null | null | null | null | null | null | null | #!/usr/bin/env python
# -*- coding: utf-8 -*-
# @Author: key
# @Date: 2015-12-18 12:35:48
# @Last Modified by: key
# @Last Modified time: 2015-12-27 00:23:47
from django.contrib import admin
from .models import User,Friend
# Register your models here.
admin.site.register(User)
admin.site.register(Friend)
| UTF-8 | Python | false | false | 311 | py | 7 | admin.py | 7 | 0.70418 | 0.610932 | 0 | 12 | 24.916667 | 42 |
IanCallaghan/script.service.superepg | 18,932,215,850,549 | 051930a41a7dfdf84956db7dbf3bc2c954629c67 | 1797e8e837696ca3f18564ee6a8f17346d88f470 | /resources/lib/superepg/models/iDisplayShow.py | 7a841a3989d69c6f4f502a5279bc30fd8285b3f9 | [] | no_license | https://github.com/IanCallaghan/script.service.superepg | a12ea4a45f872649014162584b34b8814d9b8215 | b813417566fc0515c5b52def15ce44679e797081 | refs/heads/master | 2020-06-02T03:55:58.091854 | 2014-07-28T20:23:15 | 2014-07-28T20:23:15 | null | 0 | 0 | null | null | null | null | null | null | null | null | null | null | null | null | null | '''
Created on 17 Jun 2014
@author: Ian
'''
class IDisplayShow(object):
'''
classdocs
'''
json = {};
def __init__(self, params):
'''
Constructor
'''
def grabNext(self):
return None;
def getDescription(self):
return "description";
... | UTF-8 | Python | false | false | 567 | py | 53 | iDisplayShow.py | 47 | 0.492063 | 0.474427 | 0 | 37 | 14.351351 | 34 |
Wolverine-17/Solves_Codeforces | 1,597,727,841,686 | 786317bcb09279a017c994e16b036117b8973002 | 2c8984e1c6ca359513959709ebb870428f350c9b | /D/101375D.py | acd84a8253a136c7ce8d5d8b84746ed184f334e8 | [] | no_license | https://github.com/Wolverine-17/Solves_Codeforces | cb298f6dbcf4f5127ac58a633b50684b5da13e0c | 6d659c2d0f6e3528c769ba14087988bd762f5bd9 | refs/heads/master | 2020-04-07T08:45:13.720627 | 2019-05-14T11:33:38 | 2019-05-14T11:33:38 | null | 0 | 0 | null | null | null | null | null | null | null | null | null | null | null | null | null | n = int(input())
h = list(map(int, input().split()))
k = sum(h)**2
s = 0
for i in h:
s+=i**2
print((k-s)//2) | UTF-8 | Python | false | false | 110 | py | 45 | 101375D.py | 45 | 0.509091 | 0.472727 | 0 | 7 | 14.714286 | 35 |
nigeljonez/newpyfibot | 13,460,427,550,617 | ea786a4f4074385fc2bb0044435a0f39cd305ad7 | 5b166e7bb66bec25126ce6622162075956397d07 | /modules/module_sqliteseries.py | 00593818009d61f7245d0a88e7fb6ffd6e6ac747 | [
"BSD-3-Clause"
] | permissive | https://github.com/nigeljonez/newpyfibot | 15f859c9434629a7d579346d0400f326dcad87b1 | de090f1521dee8523d4a083b9665298e4e97d847 | refs/heads/master | 2021-01-22T11:46:22.344509 | 2012-09-12T10:25:28 | 2012-09-12T10:25:28 | 936,129 | 2 | 2 | null | null | null | null | null | null | null | null | null | null | null | null | null | try:
import sqlite3
except:
import sqlite
import time
import datetime
# create table series (id INTEGER PRIMARY KEY, uid TEXT UNIQUE, serie TEXT, season INTEGER, episode INTEGER, title TEXT, airdate DATE);
# insert into series values(null, 'Alias', 1, 1, 'Pilot', date('2006-01-01'));
# select * from series whe... | UTF-8 | Python | false | false | 3,558 | py | 32 | module_sqliteseries.py | 31 | 0.569983 | 0.559584 | 0 | 96 | 36.0625 | 135 |
subhasmith/vagamap | 738,734,423,495 | a6eeeb95051d96264bd214a498affd0d297aa8c2 | 605d10b7df9ad4da2742c7bacd784511acd41888 | /src/vagamap/pages/place.py | ccf41299501fb8781362eb5047fe6dfb6b78d74f | [] | no_license | https://github.com/subhasmith/vagamap | 947e7d71e582f4a2a2453166884238a3b0827508 | a1243005970ac3b0780fef7cafe8464de6c20fa2 | refs/heads/master | 2016-09-12T18:23:06.343550 | 2012-03-28T15:16:11 | 2012-03-28T15:16:11 | 56,242,001 | 0 | 0 | null | null | null | null | null | null | null | null | null | null | null | null | null | import webapp2
import wtforms
import jinja2
import new
import base
from wtforms.ext.appengine.db import model_form
from vagamap.models import *
import logging
jinja_environment = base.jinja_environment
class PlaceForm(model_form(Place)):
pass
class ListPlaceHandler(webapp2.RequestHandler):
de... | UTF-8 | Python | false | false | 978 | py | 27 | place.py | 16 | 0.630879 | 0.624744 | 0 | 36 | 25.222222 | 85 |
vSahakian/pltPySegy | 10,677,288,727,946 | ceccf6bfb32b1b48ee7288632e9b605d200a0cc3 | 7c9e7bb5fffc86a5b71e91ccd12b44e41877551b | /navtools.py | 5aa8ab6eddad772b3aedee7ff9b54f3c1789b807 | [] | no_license | https://github.com/vSahakian/pltPySegy | a45fee7d003c65b3a04f53242b91694cc142f92c | 9b87e7703d97ba891c03cc5a6fd508ebcfcda9bf | refs/heads/master | 2021-01-10T02:10:39.473676 | 2020-12-11T18:28:20 | 2020-12-11T18:28:20 | 53,089,064 | 0 | 1 | null | null | null | null | null | null | null | null | null | null | null | null | null | def getnav(segyfile,navfile):
'''
VJS 1/2016
Extract nav from a segy
Input:
segyfile: String with segy file to extract nav
navfile: String with output nav file
Output:
To navfile
Shot Lon Lat
'''
import numpy as np
import obspy as obs
... | UTF-8 | Python | false | false | 1,880 | py | 8 | navtools.py | 8 | 0.569681 | 0.537234 | 0 | 74 | 24.351351 | 71 |
peletiah/poab | 9,225,589,759,142 | 4df188148559791c5e91bc9d5ef2655bfe883f23 | 330aceb15268d5cdeeb7d8e4e906c0129d44cb2c | /odd_functions/sql_add_prefix.py | 210a17a7c90ed71b265c80fcfa3cc9d25e2cacd2 | [] | no_license | https://github.com/peletiah/poab | 03e64a94e65c4800f809953be9f508651cfed22c | eb7462a026747e1d4eb411d6af1549e67b12b598 | refs/heads/master | 2021-01-21T13:36:57.811316 | 2010-09-12T13:24:41 | 2010-09-12T13:24:41 | 82,160 | 2 | 0 | null | null | null | null | null | null | null | null | null | null | null | null | null | from sqlalchemy import and_, or_
import hashlib
import ConfigParser
import urllib
import os
import hashlib
import sys
sys.path.append('/root/poab')
from image_functions import sortedlistdir as sortedlistdir
from fill_photos_db import resize_990 as resize_990
import talk2flickr
import db_functions
from getfromxml import... | UTF-8 | Python | false | false | 2,277 | py | 268 | sql_add_prefix.py | 29 | 0.737374 | 0.725955 | 0 | 57 | 38.947368 | 109 |
FlorianPf/ATAT_VASP | 42,949,698,523 | 53cd13b18ddd9c6b8a039f8382119e65d28b08b0 | d5afc5fbbf3a03363ee8a38446d852b41d53f398 | /atat_poscar.py | 75e6d31f3dc9bb8702a7e9eadbecc01bdc7b3eed | [] | no_license | https://github.com/FlorianPf/ATAT_VASP | 8fe2935c1fa0383e1dde5249e67c90a354a57bd8 | 2f4659bc8f525287aa060c6b8c6a3b6e24756021 | refs/heads/main | 2023-01-14T10:48:25.131633 | 2020-11-19T18:48:58 | 2020-11-19T18:48:58 | 314,338,425 | 2 | 1 | null | null | null | null | null | null | null | null | null | null | null | null | null | #!/opt/local/bin/python
import os # Miscellaneous operating system interfaces (e.g. for manipulating directories). https://docs.python.org/3/library/os.html
import sys # System-specific parameters and functions (e.g. for exiting after error). https://docs.python.org/3/library/sys.... | UTF-8 | Python | false | false | 9,905 | py | 9 | atat_poscar.py | 8 | 0.585664 | 0.579303 | 0 | 185 | 52.545946 | 228 |
Byeongryul/kmu_chatbot_AI | 5,841,155,559,302 | 930e88e04100b431f266306eb3c957b7cecdd7fe | e1bbf5515afd187614a2ddef45769fdd8755e9a9 | /test.py | a565c0025942cedaa9a254d45117a1132a20a630 | [] | no_license | https://github.com/Byeongryul/kmu_chatbot_AI | 5576dbbe1cb917776990bf8d8d360aa2c872a492 | 3f637665f07ef2d02017b1041e00a92e7c9e28c7 | refs/heads/main | 2023-04-30T19:58:13.601943 | 2021-05-12T09:24:59 | 2021-05-12T09:24:59 | 362,439,226 | 0 | 0 | null | null | null | null | null | null | null | null | null | null | null | null | null |
print(df)
# qs = pd.read_csv('rsc/data_mapping/sholaship_qu_mapping.csv').drop('Unnamed: 0', axis = 1)
# q = '토익'
# qr = '?'
# for row in qs.T:
# if qs['0'][row] in q or q in qs['0'][row]:
# qr = qs['1'][row]
# break
# print(qr)
# wards = pd.read_csv('rsc/data_mapping/scholaship_name_mapping.csv')... | UTF-8 | Python | false | false | 538 | py | 30 | test.py | 13 | 0.537736 | 0.518868 | 0 | 19 | 26.894737 | 98 |
fengjianque/access_monitor | 10,788,957,859,427 | e5b43fab356a827a44eab44662dd6ecb17817d8a | 6f29b47e69fee14ea32f15947fe38559c6665dab | /monit.py | abc4a7c85e696bef74e67274425875ef08f872f0 | [] | no_license | https://github.com/fengjianque/access_monitor | bf12e70ba552580f1a583a1daa39fe91fc323272 | fcca8b9834a3b0480580fa4a1169537dcb60032e | refs/heads/master | 2021-01-01T17:49:03.182380 | 2017-09-15T03:36:24 | 2017-09-15T03:36:24 | 98,163,463 | 0 | 0 | null | null | null | null | null | null | null | null | null | null | null | null | null | #!/usr/bin/env python
#-*- coding: utf-8 -*-
import sys
import os
import time
import traceback
import optparse
from datetime import date, datetime
import logging
import logging.config
from core import pygtail
from core import util
from config import setting as sfg
from core.daemon import Daemon
current_dir = os.getc... | UTF-8 | Python | false | false | 4,129 | py | 8 | monit.py | 6 | 0.591184 | 0.588278 | 0 | 127 | 31.511811 | 144 |
XJCasper/Lab_3x | 9,457,518,002,543 | d6cb96e8475abca9c46e67d4ad9f2a42be0f3e59 | f4ea34d41f639a652883835c76c5209c71989af7 | /problem_2.py | 1d880b9f4b15d8b3c8720452d2ba373b6a835579 | [] | no_license | https://github.com/XJCasper/Lab_3x | 5398dcd6e5d0e8fd55d6a676e33458d6f9dc0271 | 022824a97c0e4d6dce910fde83442b6dcfed19b2 | refs/heads/master | 2021-04-12T05:09:57.267124 | 2014-10-22T00:54:18 | 2014-10-22T00:54:18 | null | 0 | 0 | null | null | null | null | null | null | null | null | null | null | null | null | null | gis_file = open ("GIS_is_the_best.txt",'r')
file_list = gis_file.read()
system_count = 0
science_count = 0
geographic_count = 0
information_count = 0
other_count = 0
total_words = 0
for word in file_list.split(' '):
if word.lower() == 'systems':
system_count += 1
elif word.lower() == 'science':
science_count +=... | UTF-8 | Python | false | false | 604 | py | 4 | problem_2.py | 4 | 0.675497 | 0.657285 | 0 | 25 | 23.16 | 88 |
EasonSun/e2eClaimVerif | 4,449,586,140,005 | ff0a336cb093353b9ff8bb2db51d9c2f0ce471d9 | 2df649f0b335963da4a53ce7ffaaec0b172bb123 | /snopesDataCrawling/extractTopic.py | f7d9697589179c53827fdceb8e01bf7bca0c9b79 | [] | no_license | https://github.com/EasonSun/e2eClaimVerif | 0df315e12e0f9f9266458e399d752b36893c0ce4 | 5774ec9f9301230ada764074b1a157fa4b1704a9 | refs/heads/master | 2021-08-22T17:57:00.834683 | 2017-11-30T21:22:38 | 2017-11-30T21:22:38 | 112,644,392 | 0 | 0 | null | null | null | null | null | null | null | null | null | null | null | null | null | import json
filename = 'cleaned_data.json'
topics = set()
outfile = open('topics.txt', 'w')
with open(filename, 'r') as f:
data = json.load(f)
for entry in data:
if entry['topic'] == '':
topics.add("_")
else:
topics.add(entry['topic'])
for topic in topics:
outfile.write(topics+'\n') | UTF-8 | Python | false | false | 298 | py | 10 | extractTopic.py | 7 | 0.634228 | 0.634228 | 0 | 15 | 18.933333 | 33 |
heheddff/python2018 | 14,748,917,730,815 | c9889f714c2166386a60e0fdd64d37895a90e60e | ec87c361be4a2f9f842695b6a6e8601ebd735e83 | /Speak.py | 7fd58d13c37f3fb3d4d05707c8f5615b5784265d | [] | no_license | https://github.com/heheddff/python2018 | 357d51bee7ea39f6a1df82101fb49c1568250e24 | 77a240dd155f679fffe33b62df57f689a8c85082 | refs/heads/master | 2020-03-27T23:13:38.789249 | 2018-12-08T14:55:21 | 2018-12-08T14:55:21 | 147,302,979 | 1 | 0 | null | null | null | null | null | null | null | null | null | null | null | null | null | name = input("请输入你想说话的对方名字")
s = input("请输入你想说的话")
print("{},我必须要告诉你:{}".format(name,s*3))
| UTF-8 | Python | false | false | 149 | py | 8 | Speak.py | 7 | 0.634409 | 0.623656 | 0 | 3 | 29.333333 | 39 |
tefra/xsdata-w3c-tests | 13,134,009,998,052 | 31b788845f4dc192baba3a299f9a3cdb8c6d32da | ad13583673551857615498b9605d9dcab63bb2c3 | /output/models/ms_data/regex/re_k3_xsd/__init__.py | 9a1ff7e3b970fd14e678a0da7cfbf744fa1b3de7 | [
"MIT"
] | permissive | https://github.com/tefra/xsdata-w3c-tests | 397180205a735b06170aa188f1f39451d2089815 | 081d0908382a0e0b29c8ee9caca6f1c0e36dd6db | refs/heads/main | 2023-08-03T04:25:37.841917 | 2023-07-29T17:10:13 | 2023-07-30T12:11:13 | 239,622,251 | 2 | 0 | MIT | false | 2023-07-25T14:19:04 | 2020-02-10T21:59:47 | 2023-01-18T19:44:58 | 2023-07-25T14:19:02 | 36,096 | 2 | 0 | 0 | Python | false | false | from output.models.ms_data.regex.re_k3_xsd.re_k3 import Doc
__all__ = [
"Doc",
]
| UTF-8 | Python | false | false | 86 | py | 18,966 | __init__.py | 14,569 | 0.616279 | 0.593023 | 0 | 5 | 16.2 | 59 |
zhangwuyi1234/github | 4,209,067,970,405 | 0602ff2e0739ee3caa79d96a3e40918b5d79bcc7 | 8b1e9a3d36858bd131489ccffe48656ae141c67b | /file/image/data/upMongo.py | 407db23a8cc39cd4ac6e0c367beac868b6ad12b7 | [] | no_license | https://github.com/zhangwuyi1234/github | c1ee8fcdb60c9dbff048e258c7a71f0e22c5acf2 | 277bcd30e767a0b1190efea697d9f4a27706317b | refs/heads/master | 2017-10-11T15:48:16.146604 | 2017-10-11T04:00:13 | 2017-10-11T04:00:13 | 85,694,967 | 0 | 0 | null | null | null | null | null | null | null | null | null | null | null | null | null | # -*- coding: utf-8 -*-
import os
import shutil
import oss2
access_key_id = os.getenv('OSS_TEST_ACCESS_KEY_ID','LTAIOEOb5yeFEcQT')
access_key_secret = os.getenv('6OSS_TEST_ACCESS_KEY_SECRET','qrEVuVmYVOcxZRHtKCTquXtFFz5u5p')
bucket_name = os.getenv('OSS_TEST_BUCKET', 'zhangwuyishare')
endpoint = os.getenv('OSS_TEST_... | UTF-8 | Python | false | false | 970 | py | 18 | upMongo.py | 7 | 0.710309 | 0.689691 | 0 | 31 | 30.290323 | 93 |
fermi-lat/pointlike | 9,758,165,724,158 | 14158065f2f4b8a3e36a8ca802c788178f437b71 | 0ae50405d60e245a025c6f984cb315a7afeb6833 | /python/uw/like2/plotting/__init__.py | 4ce08315693de48e0b518a39d53a81b726232d6c | [
"BSD-3-Clause"
] | permissive | https://github.com/fermi-lat/pointlike | 65977ee0085670c24800982ffa0855dba6c46680 | edcdc696c3300e2f26ff3efa92a1bd9790074247 | refs/heads/master | 2021-11-11T19:18:42.676557 | 2020-01-23T20:57:54 | 2020-01-23T20:57:54 | 103,187,044 | 1 | 3 | BSD-3-Clause | false | 2021-11-05T15:33:32 | 2017-09-11T20:52:43 | 2020-11-13T18:39:01 | 2021-08-19T17:37:18 | 70,531 | 0 | 4 | 1 | Python | false | false | """
Package devoted to plotting code
$Header: /nfs/slac/g/glast/ground/cvs/pointlike/python/uw/like2/plotting/__init__.py,v 1.3 2012/01/27 15:07:14 burnett Exp $
Authors: T. Burnett, M. Kerr, E. Wallace, M. Roth, J. Lande
"""
from . import sed, tsmap, counts
| UTF-8 | Python | false | false | 261 | py | 292 | __init__.py | 260 | 0.697318 | 0.632184 | 0 | 7 | 36.285714 | 124 |
ihciah/BGmi | 3,418,794,006,407 | e9a2b0f9eaa90adced11bd15b641de168257f2f1 | 5c25b126bcadcaa24782412a679e46d63c812f2a | /setup.py | 4215d521122a5121de294b4e4114207cd1c24685 | [
"MIT"
] | permissive | https://github.com/ihciah/BGmi | 0adf8424729d9338368580e2b9577b2dd4a32970 | da0d0e78cbe3e6c971b3748dcc2189f29af6471b | refs/heads/master | 2021-01-20T01:57:45.323756 | 2017-04-25T11:40:25 | 2017-04-25T11:40:25 | 89,352,123 | 1 | 0 | null | true | 2017-04-25T11:18:55 | 2017-04-25T11:18:54 | 2017-04-17T18:19:02 | 2017-04-11T12:48:15 | 2,549 | 0 | 0 | 0 | null | null | null | # coding=utf-8
import os
import codecs
from setuptools import setup, find_packages
from setuptools.command.install import install
from bgmi import __version__, __author__, __email__
with open('requirements.txt', 'r') as f:
requirements = f.read().splitlines()
ROOT = os.path.abspath(os.path.dirname(__file__))
d... | UTF-8 | Python | false | false | 1,742 | py | 17 | setup.py | 10 | 0.615959 | 0.609644 | 0 | 56 | 30.107143 | 70 |
ushakov/TX | 3,487,513,448,520 | 4fb0227512789838e18e5f2448dd1c4d632ef8b4 | 3a4ccc1e06f042751b90f4deffdaea21696ebe5c | /host/ser.py | e6182bf88763a196216421b9cbb86ec5fcf742c0 | [] | no_license | https://github.com/ushakov/TX | 5cad2f5a85a3a0fc59fa9009a97ba6befc5902c2 | 73013586cb99153644f342f6fff0c44869880f4e | refs/heads/master | 2021-01-01T17:46:59.659317 | 2010-06-23T17:35:47 | 2010-06-23T17:35:47 | null | 0 | 0 | null | null | null | null | null | null | null | null | null | null | null | null | null | import serial
import gtk
import model
import vis
class Data(object):
def __init__(self, comm):
self.array = []
self.comm = comm
def Get(self, location):
return self.array[location.offset]
def Set(self, location, value):
if self.array[location.offset] != value:
... | UTF-8 | Python | false | false | 2,603 | py | 21 | ser.py | 9 | 0.44295 | 0.429504 | 0 | 99 | 25.282828 | 78 |
atvf000/Alice | 7,765,300,890,761 | 950c658627f6bdb5055dc2eb62449e4284b1f9e2 | 4d6ae11c3c07606c07adabd64882805b6489b724 | /alice.py | aa365ef6f9ffd1fe7efafd7e8bcd32f714b435d1 | [] | no_license | https://github.com/atvf000/Alice | f8db6308d0be12c961ddb98a23eee406facab669 | fe6a22e3a06bdc25319da0053f612c0df6891570 | refs/heads/master | 2020-11-24T01:57:04.019366 | 2019-12-14T08:31:46 | 2019-12-14T08:31:46 | 227,915,281 | 7 | 0 | null | null | null | null | null | null | null | null | null | null | null | null | null | ##@package alice
# Файл с реализацией самой игры Алисы
from __future__ import unicode_literals
from random import randint
RULES = '''\n- Число в ячейке показывает, сколько мин скрыто вокруг данной ячейки\n
- Если рядом с открытой ячейкой есть пустая ячейка, то она откроется автоматически.\n
- Если вы открыли ячейку с... | UTF-8 | Python | false | false | 18,105 | py | 6 | alice.py | 4 | 0.544924 | 0.526835 | 0 | 470 | 31.110638 | 90 |
Rodot-/SpaceGameThing | 1,855,425,878,728 | 92dec1f4274d15e68c9000ac64cdf5eaaeb97649 | bdb58bd6aac41da284e79e3d136db48b2cefc4e7 | /test/plotDat.py | cca3db19edcccaf6ca38655edc1587b289a496d4 | [] | no_license | https://github.com/Rodot-/SpaceGameThing | bdc10a95d1fa1f7affa5cc8f12f6661377c35747 | 8510495cddb19b9ae50d6c227c6d9125271a8efa | refs/heads/master | 2021-01-09T20:01:07.974115 | 2018-08-28T20:09:17 | 2018-08-28T20:09:17 | 61,905,924 | 0 | 0 | null | null | null | null | null | null | null | null | null | null | null | null | null | from matplotlib.pyplot import subplots, show
import numpy as np
import sys
import time
fig, ax = subplots(1,1)
fig.canvas.draw()
show(False)
for i in sys.argv[1:]:
with open(i,'r') as f:
data = np.array([map(float, line.split()) for line in f])
line = {}
ax.set_xlim(0,26)
ax.set_ylim(0, 5)
for j in xrange(... | UTF-8 | Python | false | false | 636 | py | 76 | plotDat.py | 56 | 0.624214 | 0.592767 | 0 | 27 | 22.518519 | 59 |
DataDog/datadog-api-client-python | 16,303,695,889,429 | 5b50bfe8a69167dba5542299bb7a018b40f384fc | 80d50ea48e10674b1b7d3f583a1c4b7d0b01200f | /src/datadog_api_client/v1/model/synthetics_step_detail.py | b3499dfdd80a3b1c2a132ae5673345d93ccae9e2 | [
"Apache-2.0",
"BSD-3-Clause",
"MIT",
"MPL-2.0"
] | permissive | https://github.com/DataDog/datadog-api-client-python | 3e01fa630278ad0b5c7005f08b7f61d07aa87345 | 392de360e7de659ee25e4a6753706820ca7c6a92 | refs/heads/master | 2023-09-01T20:32:37.718187 | 2023-09-01T14:42:04 | 2023-09-01T14:42:04 | 193,793,657 | 82 | 36 | Apache-2.0 | false | 2023-09-14T18:22:39 | 2019-06-25T22:52:04 | 2023-09-04T20:58:53 | 2023-09-14T18:22:38 | 127,694 | 77 | 35 | 29 | Python | false | false | # Unless explicitly stated otherwise all files in this repository are licensed under the Apache-2.0 License.
# This product includes software developed at Datadog (https://www.datadoghq.com/).
# Copyright 2019-Present Datadog, Inc.
from __future__ import annotations
from typing import Any, List, Union, TYPE_CHECKING
... | UTF-8 | Python | false | false | 8,159 | py | 1,490 | synthetics_step_detail.py | 1,425 | 0.632063 | 0.629857 | 0 | 198 | 40.207071 | 119 |
c-mattingly/CarCollector | 5,884,105,229,239 | 0e6f894a7cd5571a6e1d5d7db6eaea2b0494e7d8 | b301b95be9df28457d40d7761892f254a8570d3d | /main_app/models.py | e5074c1bb61d761cb53bb3a974b2430c7e0724e4 | [] | no_license | https://github.com/c-mattingly/CarCollector | 88e1988f71b7b21f979f73d2c7abf996cc306922 | cbb4fb9c7ad52efdae29b8ce916103ebd7eb0ddd | refs/heads/main | 2023-06-13T08:04:43.856784 | 2021-07-08T23:19:54 | 2021-07-08T23:19:54 | 383,950,979 | 0 | 0 | null | null | null | null | null | null | null | null | null | null | null | null | null | from django.db import models
from django.urls import reverse
# Create your models here.
WORKS = (
('O', 'Oil Changed'),
('T', 'Tune Up'),
('R', 'Tire Rotation'),
)
class Part(models.Model):
name = models.CharField(max_length=50)
type = models.CharField(max_length=50)
def __str__(self):
... | UTF-8 | Python | false | false | 1,221 | py | 11 | models.py | 6 | 0.618346 | 0.604423 | 0 | 49 | 23.836735 | 63 |
martolini/djanglide | 14,499,809,625,391 | 59dfab6aa64fadb53336a8dca132a103c31a94f2 | db6772617d320342ea1120424b47a3b143eff682 | /glide/app/marketplace/views.py | 817f7822dc807a909e2b0d55ab9c3803d2e9a167 | [] | no_license | https://github.com/martolini/djanglide | a03a7acc615448ba76f57008c62449408fe24d82 | 9063099c0e035265b8e622a894713c0a5a34dadc | refs/heads/master | 2016-09-06T04:26:41.794471 | 2014-02-03T00:53:12 | 2014-02-03T00:53:12 | null | 0 | 0 | null | null | null | null | null | null | null | null | null | null | null | null | null | from django.contrib.auth.decorators import login_required
from django.shortcuts import render
from glide.app.marketplace.forms import SearchForm
from glide.core.profiles.models import Profile
from glide.app.interests.models import Interest
from django.db.models import Q
from glide.core.models import City
from math impo... | UTF-8 | Python | false | false | 3,295 | py | 99 | views.py | 59 | 0.713202 | 0.712291 | 0 | 104 | 30.682692 | 91 |
wq/django-data-wizard | 9,380,208,590,773 | 52e1e7cde4fe5c75a035e3e7d44a929e069cd069 | 3f39a707fdcf8bd0184cf044a6cb039e659738b7 | /data_wizard/sources/migrations/0003_model_options.py | 8adf6e995e354739e301a2b32e4c132a56412e1b | [
"MIT"
] | permissive | https://github.com/wq/django-data-wizard | b166882c163d19d3facb9cc648dc442ab8f64a51 | 2cf34acd96e6e6ad8eaff5f2fb5dee6dd94416d5 | refs/heads/main | 2023-07-20T03:59:38.137970 | 2023-07-13T21:33:40 | 2023-07-13T21:33:40 | 25,331,283 | 331 | 56 | MIT | false | 2023-06-08T15:57:41 | 2014-10-17T01:26:45 | 2023-06-08T03:29:25 | 2023-06-08T15:48:33 | 2,290 | 311 | 52 | 3 | Python | false | false | # Generated by Django 4.2.2 on 2023-06-27 11:01
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
("sources", "0002_source_user"),
]
operations = [
migrations.AlterModelOptions(
name="filesource",
options={
... | UTF-8 | Python | false | false | 1,156 | py | 205 | 0003_model_options.py | 96 | 0.50346 | 0.481834 | 0 | 41 | 27.195122 | 85 |
mkgray/mancala-reinforcement-learning | 1,400,159,380,408 | d16514b959c218f69c792d2db26a0d875479acda | 389fa90c3a3387aaf01e493fdf9add7aec76200d | /mancala/mancala.py | 90bb16453ff898ffadaf72a9439148f77a5c29d7 | [
"MIT"
] | permissive | https://github.com/mkgray/mancala-reinforcement-learning | 9563bd94f0a2f5fdc1afdd278b063dc88cd7648c | 5baee0a775ed41e30d498419692c51881047140f | refs/heads/master | 2023-01-23T09:19:19.435932 | 2020-12-01T01:11:57 | 2020-12-01T01:11:57 | 112,622,220 | 0 | 0 | MIT | false | 2017-12-08T20:47:49 | 2017-11-30T14:39:23 | 2017-11-30T21:30:20 | 2017-12-08T20:47:49 | 35 | 0 | 0 | 0 | Python | false | null | # -*- coding: utf-8 -*-
"""
Spyder Editor
This is a temporary script file.
"""
import random
import numpy as np
import agent
class Mancala:
def __init__(self, mancala_agent=None):
self.pockets = self.initialize_board()
# Load Mancala agent if necessary
if mancala_agent is None:
... | UTF-8 | Python | false | false | 12,862 | py | 7 | mancala.py | 5 | 0.52037 | 0.497357 | 0 | 332 | 37.743976 | 107 |
RuaBe/C4T-BO4 | 1,211,180,825,819 | 1a86a9e329188a5c99078b827cd7e159d7462fd9 | ed523365d990f353a2b78e015bb1a6438afaa90b | /Session10/drill6.py | cd4c38b3fac74c57f0fe7f5c09cccbab566cf5d0 | [] | no_license | https://github.com/RuaBe/C4T-BO4 | 1cea76d7ac444952c6de8be8a38a3f28676be001 | fdbba46946b52d15176d95196c0944d3854abb2c | refs/heads/master | 2020-06-05T20:41:25.956034 | 2019-07-20T13:35:08 | 2019-07-20T13:35:08 | 192,540,777 | 0 | 0 | null | null | null | null | null | null | null | null | null | null | null | null | null | bangLuong = [
{
"name" : "Huy",
"job" : "Waiter",
"age" : 12,
"salary" : 0.8,
},
{
"name" : "Huyen",
"job" : "Waitress",
"age" : 14,
"salary" : 1,
}
]
for i in range(len(bangLuong)):
luong = bangLuong[i]["age"]*bangLuong[i]["salary"]
... | UTF-8 | Python | false | false | 326 | py | 33 | drill6.py | 33 | 0.389571 | 0.368098 | 0 | 17 | 17.823529 | 54 |
gerlaxrex/Robotics-Car-Project | 1,606,317,776,019 | 4d0fa887e5b8554aa90961d44629c285815e51ea | 93a65e1cd4816628050f49967deb02d545d07c0f | /robotics_project_1/cfg/parameters.cfg | 94a2037321fc3c38d8f77739002ebc052be89f00 | [] | no_license | https://github.com/gerlaxrex/Robotics-Car-Project | 13ab90fb93790df8c6ad8f7d02a0310092e58e1b | f45a316d4da97ea8ae34f57bf68985f93e03c695 | refs/heads/master | 2020-09-29T01:59:08.855580 | 2019-12-09T16:52:52 | 2019-12-09T16:52:52 | 226,921,252 | 0 | 0 | null | null | null | null | null | null | null | null | null | null | null | null | null | #!/usr/bin/env python
PACKAGE = "robotics_project_1"
from dynamic_reconfigure.parameter_generator_catkin import *
gen = ParameterGenerator()
odometry_type = gen.enum([gen.const("Differential", bool_t, False, "Differential Drive odometry publishing"), gen.const("Ackerman", bool_t, True, "Ackerman Drive odometry pu... | UTF-8 | Python | false | false | 830 | cfg | 7 | parameters.cfg | 5 | 0.706024 | 0.648193 | 0 | 12 | 67.333333 | 210 |
npnet/MyCode | 3,186,865,746,882 | c0c81363924ca0871d1be8db5f3b9ae3ea06df33 | 8d7514271b08caaa8c757d0747853d54642e9e63 | /tools/py/parse_mem_cfg.py | c150c2543362dfa1de35ce1096a25aa52b31a199 | [
"BSD-3-Clause"
] | permissive | https://github.com/npnet/MyCode | 0bd3e32d5890c411b16e01cdb8acf5624c7c0a02 | 9fa7aa78d62f1cd3c2a39a36875cb41cf00522fe | refs/heads/master | 2023-07-23T13:19:29.575050 | 2018-07-05T13:01:09 | 2018-07-05T13:01:09 | 140,229,839 | 1 | 2 | null | false | 2023-07-21T10:21:01 | 2018-07-09T04:07:28 | 2023-06-04T13:37:34 | 2023-07-16T23:03:36 | 1,644,585 | 1 | 2 | 0 | C | false | false | import os, sys
import re
import locale
import tempfile
import subprocess
from optparse import OptionParser
# from parse_mem_cfg_fpm_table import *
# =============== Const Setting ==================
g_build_path = r'%s\build'
g_cfg_path = r'%s\plutommi\Customer\ResGenerator\debug\mmi_mem_cfg.txt'
g_app_data_path = r... | UTF-8 | Python | false | false | 38,581 | py | 7,634 | parse_mem_cfg.py | 260 | 0.472383 | 0.461419 | 0 | 1,097 | 34.169553 | 332 |
YesVen/Interview-Prep-All | 13,357,348,335,022 | 1361cf2b4d2c58de89142e8e51fdcfb0826f8821 | d9d8174ab88f88b588396cf58f96f3a5e5317d18 | /src/main/java/com/practice/python/unique_paths.py | 4726b69b22950a8abd1ca335018d22d3f322c60c | [] | no_license | https://github.com/YesVen/Interview-Prep-All | fb4c88292e9113a009b7cf3331f1b1974e5efe46 | ec123195958bebad85d9ce9fa7d903a799ddd4d8 | refs/heads/master | 2020-03-18T18:44:36.255814 | 2017-10-29T01:12:05 | 2017-10-29T01:12:05 | null | 0 | 0 | null | null | null | null | null | null | null | null | null | null | null | null | null | # O(m*n) time, O(m*n) space
class Solution(object):
def uniquePaths(self, m, n):
"""
:type m: int
:type n: int
:rtype: int
"""
if m <= 0 or n <= 0:
return 0
dp = [[0] * n for i in xrange(m)]
for i in xrange(m):
dp[i][0... | UTF-8 | Python | false | false | 936 | py | 716 | unique_paths.py | 703 | 0.391026 | 0.370726 | 0 | 39 | 23.025641 | 50 |
alxhar/mayak | 13,640,816,164,765 | 701a44eb8e566c008704383cc00e4e2d39bb8d86 | be1392cc36fd1ca3c4549bdd318aab39eb2cb20d | /hotel/migrations/0001_initial.py | f96ebe4f63dcc5594f61bc73cb11140702f136d6 | [] | no_license | https://github.com/alxhar/mayak | 7be35b83ecd661aa583ccf85a7840bbf627f82f1 | 19bdf7775338719f0241f7d4feb0828f2278633f | refs/heads/master | 2020-03-06T01:15:34.966894 | 2017-06-29T10:03:04 | 2017-06-29T10:03:04 | 93,789,430 | 0 | 0 | null | null | null | null | null | null | null | null | null | null | null | null | null | # -*- coding: utf-8 -*-
# Generated by Django 1.11.2 on 2017-06-18 07:23
from __future__ import unicode_literals
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
initial = True
dependencies = [
]
operations = [
migrations.Crea... | UTF-8 | Python | false | false | 2,291 | py | 35 | 0001_initial.py | 16 | 0.577602 | 0.552974 | 0 | 47 | 44.787234 | 160 |
chizel/os_dj | 8,400,956,045,453 | 7e6fc075e691af2fbc3f9d379a08a97183017be2 | 7b1b75dd21cc9acf7a9ad4f40adadfb4c1ef8fd8 | /wsgi/openshift/settings.py | ef8e1c932f05965020da1f5f0fc9503fb1340007 | [] | no_license | https://github.com/chizel/os_dj | 2fe5525dfd3e451b4e22b9696aff0661f8be781f | 96e7f2c6613d9f515a371e08b36f4b9a42c5736c | refs/heads/master | 2021-01-01T19:28:29.641230 | 2015-01-30T13:39:23 | 2015-01-30T13:39:23 | 20,371,950 | 0 | 0 | null | null | null | null | null | null | null | null | null | null | null | null | null | # Build paths inside the project like this: os.path.join(BASE_DIR, ...)
import os
import imp
import socket
# my settings
SECRET_KEY="vm4rl5*ymb@2&d_(gc^gb-^twq9w(u69hi--%&5xrh!xk(t%hw"
# email
EMAIL_HOST_USER = 'mydjangotest@gmail.com'
EMAIL_HOST_PASSWORD = 'MYDJ@NG)T*ST'
# twitter
SOCIAL_AUTH_TWITTER_KEY="ywIdQZ8GE... | UTF-8 | Python | false | false | 5,302 | py | 55 | settings.py | 29 | 0.702188 | 0.67748 | 0 | 181 | 28.292818 | 152 |
YSRKEN/eer-search-client | 14,998,025,807,467 | a064bd597eaf6a3314124a9a6178d3d32063a62c | 17f3038fa5e7e60931fc6402e5ab8aeb0f04e9d5 | /server/scraping.py | 7edaac9a0af995b8c550d08ec43ea6440d00a86f | [] | no_license | https://github.com/YSRKEN/eer-search-client | 94fbcca74c4b43a940ceebca941a1e17c431d71b | c1a2e27b67369ef4808bd069f0deda09c8e72388 | refs/heads/master | 2023-01-08T19:39:30.026374 | 2021-09-02T03:20:58 | 2021-09-02T03:20:58 | 226,133,634 | 0 | 0 | null | false | 2023-01-05T16:22:11 | 2019-12-05T15:33:45 | 2021-09-02T03:21:09 | 2023-01-05T16:22:09 | 2,066 | 0 | 0 | 21 | TypeScript | false | false | import time
from typing import List, Dict, Union
import requests
from lxml import html
from constant import WAIT_TIME
class DomObject:
dom: html.HtmlElement
@staticmethod
def from_string(page_data: str):
dom = DomObject()
dom.dom = html.fromstring(page_data)
return dom
@sta... | UTF-8 | Python | false | false | 2,668 | py | 9 | scraping.py | 5 | 0.569954 | 0.541284 | 0 | 84 | 30.142857 | 110 |
KuznetsovKirill/GeekBrains | 13,623,636,294,322 | a5a69f055df4a07574089d47cc89de1b2e4ba52d | e600f379ff44c8fec6df376a69d47294d0fb99c3 | /python_1/main.py | d4008292f1c148e823ec3ed3707f46427c5e219b | [] | no_license | https://github.com/KuznetsovKirill/GeekBrains | 4bd3665a45468488eed2f2d36f373537f6593c18 | 1b5799c4026d8dc9bf3cb9f4cbb52c9b4ccd1269 | refs/heads/master | 2022-12-18T21:42:36.469793 | 2020-09-28T10:06:08 | 2020-09-28T10:06:08 | 287,452,299 | 0 | 0 | null | false | 2020-09-28T10:06:09 | 2020-08-14T05:35:15 | 2020-09-23T14:08:09 | 2020-09-28T10:06:08 | 15,347 | 0 | 0 | 0 | Python | false | false | #made by Shyi
#----------------------------task number 1
var1 = 0
var2 = 0.1
var3 = "0"
print("First var", type(var1), var1)
print("Second var", type(var2), var2)
print("Third var", type(var3), var3)
input1 = input("Fisrt var: ")
input2 = input("Second var: ")
input3 = input("Third var: ")
print("First var -> ", inp... | UTF-8 | Python | false | false | 1,902 | py | 8 | main.py | 7 | 0.536639 | 0.518457 | 0 | 72 | 24.222222 | 81 |
gavinong10/CarND-Behavioral-Cloning-P3 | 1,434,519,122,239 | e9017bc811cd1feac6d77715419eab472bb6e262 | 0a86b720be44c596f44b4fec22226b8142cf74bc | /model_runner_4.py | 3ad225136c66a305652f7814c655c36609968dcc | [] | no_license | https://github.com/gavinong10/CarND-Behavioral-Cloning-P3 | 5f020603afb4d7fb9afb577f87e87c684df92975 | cc2ebd45fa6b24fce6fee99a1ce14de21b6fbe6e | refs/heads/master | 2021-01-22T05:43:26.855695 | 2017-03-11T22:18:02 | 2017-03-11T22:18:02 | 81,690,034 | 0 | 0 | null | null | null | null | null | null | null | null | null | null | null | null | null | from model import *
import pandas as pd
from keras.models import load_model
from keras.optimizers import Adam, Nadam
train_batch_size = 9000
VAL_PORTION = 0.1
template = {
"optimizer": 'Adam',
"lr": 0.0001,
"dropout": 0.5,
"min_perc_val": 0.75,
"max_perc_val": 0.85,
"track1_data_dirs": ['data_... | UTF-8 | Python | false | false | 2,384 | py | 17 | model_runner_4.py | 9 | 0.612836 | 0.580956 | 0 | 69 | 33.565217 | 142 |
mabasith/Project1 | 14,671,608,321,135 | 005d698ec8bdd12938e0b860c1de488297e8415c | ad4d8db8ca96ccf9d99412613c773744b2480d06 | /python_dev/Udemy/Udemy/gui_program.py | 82b6f1e21b3815edfdb3c49465d471de3ea7e7bb | [] | no_license | https://github.com/mabasith/Project1 | 5bcb436e0cc87686c73c0ddad65375399a7668d3 | 87f1dd72459b362b756c2b837bedccbbaf6920b2 | refs/heads/master | 2022-11-28T20:45:33.095608 | 2020-08-08T16:44:39 | 2020-08-08T16:44:39 | 286,009,587 | 0 | 0 | null | null | null | null | null | null | null | null | null | null | null | null | null | from tkinter import *
canvas_height = 50
canvas_width = 100
class App:
def __init__(self, master, width = canvas_width, height=canvas_height):
frame = Frame( master, width = canvas_width, height = canvas_height)
frame.pack()
self.button = Button(frame, text = 'Close', fg='red', command = f... | UTF-8 | Python | false | false | 1,223 | py | 115 | gui_program.py | 111 | 0.645953 | 0.629599 | 0 | 43 | 27.465116 | 94 |
Price47/advent-of-code | 5,446,018,571,810 | da12fb348039ed9d62387bb38be8b8b7255394a7 | da3d79607c7787e1d8036c291615c7996d262c1c | /AOC_20/day_13/bus_scheduler.py | 0a87dc175c5295b4522ce89fd65b585f065b517d | [] | no_license | https://github.com/Price47/advent-of-code | 2b3512e2134cb958af7e0425643ad39c835192f4 | e691b9276fd0f82e9760707da17a522ae512b9b0 | refs/heads/master | 2022-12-07T23:10:32.846923 | 2022-12-05T06:11:46 | 2022-12-05T06:11:46 | 160,543,240 | 1 | 0 | null | null | null | null | null | null | null | null | null | null | null | null | null | import math
from core import DefaultLogger, AOCBase
from collections import defaultdict
import re
log = DefaultLogger.get_log()
class BusScheduler(AOCBase):
"""
https://adventofcode.com/2020/day/13
"""
def __init__(self):
data = self.read_input()
self.depart_time = int(data[0])
... | UTF-8 | Python | false | false | 3,734 | py | 91 | bus_scheduler.py | 91 | 0.543921 | 0.527317 | 0 | 119 | 30.369748 | 102 |
JulianWack/MPhysProject | 3,951,369,956,430 | 1c9f617ae723db95658204129e1b924d2abe818c | deb16f5ca3f4c5f686e5638fdeda8668b49995d1 | /SU2xSU2_preproduction/tests.py | eed016ea031ac76d3940dee8df4afe87ce7cc99c | [] | no_license | https://github.com/JulianWack/MPhysProject | bb851296b338ca127d72c87b139c1b2500e3fcd1 | d53328bc17d2f56e23326540a6157d7f0ff035f7 | refs/heads/master | 2023-08-18T07:23:58.013885 | 2023-08-13T10:11:04 | 2023-08-13T10:11:04 | 548,388,590 | 0 | 0 | null | null | null | null | null | null | null | null | null | null | null | null | null | import numpy as np
from matplotlib.ticker import MaxNLocator
import matplotlib.pyplot as plt
import matplotlib as mpl
from cycler import cycler
from astropy.stats import jackknife_stats
from scipy.optimize import curve_fit
from alive_progress import alive_bar
import timeit
import time
from datetime import timedelta
pl... | UTF-8 | Python | false | false | 25,380 | py | 58 | tests.py | 23 | 0.596414 | 0.571474 | 0 | 727 | 33.911967 | 189 |
FabadaLitoral/PMDMDjango | 15,298,673,508,596 | 2708c3b14ee8f5a634e4091040049441bdbf327f | b71c3e15f81e77d9eed6de2002352ab8774100cf | /polls/urls.py | 238a683c5018be05c8f1ea07f68e04328eef5996 | [] | no_license | https://github.com/FabadaLitoral/PMDMDjango | cc063548b2b5a69507ee08322ab442426a7b24b9 | 3d90221f05b4f08e39b300716b49208a84f67a9c | refs/heads/master | 2023-03-03T00:37:50.175981 | 2021-02-17T14:55:27 | 2021-02-17T14:55:27 | 331,359,994 | 0 | 0 | null | null | null | null | null | null | null | null | null | null | null | null | null | from django.urls import path, include
from rest_framework import routers
from . import views
router = routers.DefaultRouter()
router.register(r'question', views.QuestionViewSet)
router.register(r'choice', views.ChoiceViewSet)
urlpatterns = [
path('', include(router.urls)),
path('', views.index, name='index')
]
| UTF-8 | Python | false | false | 317 | py | 2 | urls.py | 2 | 0.753943 | 0.753943 | 0 | 13 | 23.384615 | 51 |
Summerotter/heist | 5,927,054,875,916 | bbfffec73133b868ebbb9ad7fcbd1596e33ec1b7 | 8a20ef42e37a5524fff484d6b0dc3c3bcf00dbaa | /game_data/__init__.py | 337e298d95377053367dba70e89868d20c342b03 | [] | no_license | https://github.com/Summerotter/heist | ae128d20a73f5e2a3676a0ed99f94cfc16b97c50 | bd141a5e582bbb922703f86cb4cdec5076b25943 | refs/heads/master | 2021-01-18T21:32:09.606718 | 2016-09-27T02:28:48 | 2016-09-27T02:28:48 | 51,196,693 | 0 | 0 | null | null | null | null | null | null | null | null | null | null | null | null | null | #I don't know my BBF Jill?
__all__ = ["events"," heist_storage","items","option_storage","text_blurbs"] | UTF-8 | Python | false | false | 103 | py | 24 | __init__.py | 20 | 0.650485 | 0.650485 | 0 | 2 | 51 | 76 |
Keshav885/python-1 | 16,054,587,785,393 | 477c264e4101fee027fb612241a479f03197c893 | f2e9986c99334c84da183d51d4fcdbc725ed261e | /Sample_code/ranks.py | 6113e71a86a1d0a79e7a91fbcea9895c96a96c19 | [] | no_license | https://github.com/Keshav885/python-1 | 9488403fb9e8e3c083eaa3e8f1ad2436c7af79b3 | 194c8911108dfd2c0bdf0b9a14a48d6e1aead8d7 | refs/heads/master | 2021-01-22T06:12:40.108616 | 2017-11-01T18:16:25 | 2017-11-01T18:16:25 | 92,531,084 | 0 | 0 | null | null | null | null | null | null | null | null | null | null | null | null | null | print('Enter your name')
name =str(input())
print('Enter your rollno. ')
rollno=int(input())
print('Enter your marks in subjects')
sub1= int(input())
sub2= int(input())
sub3= int(input())
total = sub1+sub2+sub3
average = float((total/3))
if average > 80:
print(name)
print(rollno)
print(average)
else:
p... | UTF-8 | Python | false | false | 334 | py | 34 | ranks.py | 24 | 0.667665 | 0.640719 | 0 | 17 | 18.647059 | 37 |
the-fusy/VinnieJonesBot | 11,982,958,770,612 | c6ab1f3a64358ef793dea5c7637a3bcc8dcc349d | 340f98d0774f43203552bd53c39892f4a54325f2 | /vinniejonesbot/fns/migrations/0001_initial.py | 24da1c8f15f25ac4f1f44a18315279d67dac5723 | [] | no_license | https://github.com/the-fusy/VinnieJonesBot | d10ea9fbdf10582394475c8209075f9730ab41c3 | c031971b32a4ae6260dab3f6a3d439f5ad0f2f55 | refs/heads/master | 2020-05-27T16:24:52.110686 | 2019-07-14T04:56:43 | 2019-07-14T04:56:43 | 188,700,082 | 0 | 0 | null | false | 2020-06-05T21:38:48 | 2019-05-26T15:26:50 | 2019-07-14T04:57:11 | 2020-06-05T21:38:47 | 42 | 0 | 0 | 1 | Python | false | false | # Generated by Django 2.2.3 on 2019-07-06 14:19
from django.db import migrations, models
import phonenumber_field.modelfields
class Migration(migrations.Migration):
initial = True
dependencies = [
]
operations = [
migrations.CreateModel(
name='FnsUser',
fields=[
... | UTF-8 | Python | false | false | 677 | py | 21 | 0001_initial.py | 17 | 0.611521 | 0.581979 | 0 | 23 | 28.434783 | 126 |
Provab-Solutions/erp5 | 16,501,264,364,468 | 3a955f5fb5d592852dcebb22150ab994bc223ea6 | d283c7cd57705b66e9cba658156dad4b7a0b0ba8 | /erp5/util/testnode/SlapOSControler.py | ade1ce2e9b65a241cef7c107748b0cb6ec7583ae | [] | no_license | https://github.com/Provab-Solutions/erp5 | 818cff4f102627541fca1248876745c1a42f14bf | 72ec5cfd78e99c336b561c2ecf73a4abd4adb98a | refs/heads/master | 2020-02-26T10:41:37.412947 | 2012-05-22T04:00:13 | 2012-05-22T04:01:34 | null | 0 | 0 | null | null | null | null | null | null | null | null | null | null | null | null | null | ##############################################################################
#
# Copyright (c) 2011 Nexedi SA and Contributors. All Rights Reserved.
#
# WARNING: This program as such is intended to be used by professional
# programmers who take the whole responsibility of assessing all potential
# consequences result... | UTF-8 | Python | false | false | 6,973 | py | 113 | SlapOSControler.py | 48 | 0.606912 | 0.598021 | 0 | 141 | 48.453901 | 121 |
jacobcheatley/Euler | 5,454,608,479,058 | 34a5ee7f7baf3d866d15f97fa611fddb3da11d89 | d50c0f15888a270282395622e65e6fc22cff2b86 | /Problems 051 - 100/Problem 060.py | 68367e5c5590ef0623c440886ac5763afc263700 | [] | no_license | https://github.com/jacobcheatley/Euler | 6229244488a100251d5a8aa2990ee3f153e0cf49 | 3aeee5a5e94b5836f0d86cf44eb0866cdac48220 | refs/heads/master | 2021-01-17T14:24:17.434299 | 2015-06-28T09:17:32 | 2015-06-28T09:17:32 | 36,707,944 | 1 | 0 | null | null | null | null | null | null | null | null | null | null | null | null | null | # TODO: Something other than brute force
from custom.math import is_prime, primes
prime_list = list(primes(10000))
def valid_pair(a, b):
if is_prime(int(str(a) + str(b))) and is_prime(int(str(b) + str(a))):
return True
return False
valid_fives = []
# Actually finds the answer faster than 97
for p1 ... | UTF-8 | Python | false | false | 1,147 | py | 70 | Problem 060.py | 69 | 0.543156 | 0.496077 | 0 | 28 | 39.964286 | 123 |
Const-Babar-Tortue/Flask-Server | 16,853,451,687,836 | a68030a4554c8fb1577a0c65e62fc13bcdfebfed | 96237ee876d86726cf43b97270b015900c7c547e | /interface-test/index.py | a180b560fd868c082b637f050fa7fde8f2a3d36b | [] | no_license | https://github.com/Const-Babar-Tortue/Flask-Server | dc40c887154e7cd7299b7e82deab43a1130d4f74 | e8b2564d13b77df05d06fe6ffe0007f8b235ef0e | refs/heads/master | 2020-12-28T16:36:04.750357 | 2020-05-27T17:19:31 | 2020-05-27T21:50:12 | 238,407,555 | 0 | 1 | null | null | null | null | null | null | null | null | null | null | null | null | null | from datetime import datetime, date
from SHIDev.web import webPage
import admin_tableaub
import mod_tableaub
import etu_tableaub
import prof_tableaub
from yattag import Doc
if __name__ == '__main__':
from SHI.session import loginRequired
@loginRequired
def page(S=None):
doc, tag, text = Doc().tag... | UTF-8 | Python | false | false | 918 | py | 61 | index.py | 39 | 0.569717 | 0.569717 | 0 | 33 | 25.818182 | 81 |
computermuseumarnhem/cma_inventoryapp | 11,338,713,706,641 | bf96c0f5967149572a94eaa80f207f107ad0b330 | 1a039789052be75bd5f23c6851f8b46c17e8e53f | /tmp/check.py | 4aea27bb1d05a9a6f1f29875de7b54ab0f43b2e3 | [] | no_license | https://github.com/computermuseumarnhem/cma_inventoryapp | 10da7dc2330ee93e8fa50c0726a89da07d676925 | 070ec36d5e75fbb7ada45b821285723bb21cd3f6 | refs/heads/main | 2023-04-17T19:53:27.973619 | 2021-04-26T14:44:13 | 2021-04-26T14:44:13 | 352,157,285 | 0 | 0 | null | null | null | null | null | null | null | null | null | null | null | null | null | #!/usr/bin/env python3
import sheet
for item in sheet.row():
if item['picture']:
print(item)
print() | UTF-8 | Python | false | false | 123 | py | 25 | check.py | 16 | 0.577236 | 0.569106 | 0 | 9 | 12.777778 | 24 |
aiporre/QuinoaMarketForecast | 14,972,256,024,508 | 77cfd36b65d609b44e3fa1b960fbfb54748bfadd | e9172452ed3777653ec7a4c7ef6d2269a2309a4c | /pandasRollingStats.py | 30244426f797b5c72c4db22f9f4bba209db9fc6a | [] | no_license | https://github.com/aiporre/QuinoaMarketForecast | ec7163ea52e7c63c34448c302d4539b96270a3dd | b76bf5380b930859392a7c6c46eade2464a94143 | refs/heads/master | 2021-09-24T09:20:13.704502 | 2016-10-03T06:51:14 | 2016-10-03T06:51:14 | null | 0 | 0 | null | null | null | null | null | null | null | null | null | null | null | null | null |
import pandas as pd
import quandl
import matplotlib.pyplot as plt
from matplotlib import style
style.use('fivethirtyeight')
def get_zinc_price():
api_key = open('data/myApiKey.txt', 'r').read()
gold = quandl.get('ODA/PZINC_USD', authtoken=api_key)
pd.DataFrame(gold).to_pickle('data/zinc.pickle')
def ge... | UTF-8 | Python | false | false | 1,524 | py | 25 | pandasRollingStats.py | 15 | 0.679134 | 0.652887 | 0 | 53 | 27.698113 | 65 |
Djambek/Django_project | 19,378,892,473,313 | 4892b7185a6c89f7c57b9ffd2010095802bc922c | eb831224d2867b7bb98b8ef818c81b022ab06868 | /books/form_profile.py | 62d7908a8b6757d4753ebc74efbc3433c6f976ea | [] | no_license | https://github.com/Djambek/Django_project | de86dff9910820e311e7d38d598afb3c66b364fe | e0aeee0aeaea6bdbe08158e454d3532e11915294 | refs/heads/master | 2023-08-27T23:17:50.151198 | 2021-09-28T13:18:13 | 2021-09-28T13:18:13 | null | 0 | 0 | null | null | null | null | null | null | null | null | null | null | null | null | null | """Форма для смены ника или почты"""
from django import forms
from django.contrib.auth.models import User
class Profile(forms.Form):
username = forms.CharField(max_length=200)
email = forms.CharField(max_length=200)
| UTF-8 | Python | false | false | 250 | py | 21 | form_profile.py | 10 | 0.751111 | 0.724444 | 0 | 6 | 36.333333 | 46 |
jamco88/FOS_analytics | 9,629,316,713,471 | 53a9b08d71d543d3c7f96e167442e718cec636ef | d5bc3e337e18052561672b32e762e7a52094295e | /server.py | d8a2403e341db37a215b5e078143ba6c33f0cfe6 | [
"Apache-2.0"
] | permissive | https://github.com/jamco88/FOS_analytics | c1f58591af187309cf84088fd4c583f059d01134 | c47fe174b149c673997ade313c4f4305ce0898bc | refs/heads/master | 2020-07-27T07:39:23.524767 | 2019-09-17T09:59:42 | 2019-09-17T09:59:42 | 209,018,034 | 0 | 0 | Apache-2.0 | false | 2019-10-30T06:34:49 | 2019-09-17T09:51:32 | 2019-09-17T10:23:35 | 2019-10-30T06:34:45 | 33,798 | 0 | 0 | 1 | Python | false | false | import os
from apscheduler.schedulers.background import BackgroundScheduler
from apscheduler.triggers.interval import IntervalTrigger
from flask import Flask, send_from_directory, render_template
from werkzeug.utils import secure_filename
from scraper.scraper import scrape_ahead_n_complaints
from config import FI... | UTF-8 | Python | false | false | 2,765 | py | 17 | server.py | 6 | 0.635081 | 0.626763 | 0 | 73 | 35.876712 | 116 |
ManishAradwad/Competitive-Programming | 5,093,831,235,324 | da14e867948c6057609b215ff820a64a58d895b2 | 15ace1f492ebaf11d8e1221bf16321277242d0fa | /Codeforces/StonesOnTheTable(266A).py | 7ed75f2513a76226c540680abd75b6957b577eb8 | [] | no_license | https://github.com/ManishAradwad/Competitive-Programming | 1818b800e8a8995e754f2aabd2923474341e454e | b49e863425209c24da9c27d2ba9ec4d7016850b1 | refs/heads/master | 2020-09-01T00:10:05.985713 | 2020-04-13T18:01:15 | 2020-04-13T18:01:15 | 218,823,391 | 1 | 0 | null | null | null | null | null | null | null | null | null | null | null | null | null | n = int(input())
stones = input()
print(sum([1 for i in range(n-1) if stones[i]==stones[i+1]])) | UTF-8 | Python | false | false | 95 | py | 80 | StonesOnTheTable(266A).py | 79 | 0.621053 | 0.589474 | 0 | 3 | 31 | 61 |
Cyberpunk3HAB/python.GUI.2 | 16,200,616,684,973 | 497d402e159dff51d94732f7e04f98387ec65223 | f4c128ad43c50c8c6a2e9fc3ae412238f330af42 | /python.GUI.2/python.GUI.2.py | bc505958bd60f6789f903b281e024861fc302e6e | [] | no_license | https://github.com/Cyberpunk3HAB/python.GUI.2 | 22bc08acb7e0a237648b8e25a3874e0e44a43a03 | 11d4ea37446be1950ca09da78cc288d1a9d817b4 | refs/heads/master | 2023-04-06T15:32:39.616674 | 2021-04-21T11:17:02 | 2021-04-21T11:17:02 | 360,140,828 | 0 | 0 | null | null | null | null | null | null | null | null | null | null | null | null | null | from tkinter import *
def Button_click():
output_text.delete(1.0, END)
manipulated_text = "1. Dogs can see in the dark because of the tapetum lucidum 2.a mirror-like membrane in dogs’ eyes 3.There are light-and-motion sensitive cells in the retina that are referred to as rods"
output_text.insert(END, manip... | UTF-8 | Python | false | false | 2,305 | py | 2 | python.GUI.2.py | 1 | 0.727906 | 0.688724 | 0 | 49 | 45.877551 | 210 |
ComputerVisionaries/PSF | 1,967,095,051,614 | d0387846ee925f5ec76758ae17e0c8b5f019c6f6 | 9bdf4e7fffe5f0e47e889c5fe34dab02c0be2574 | /fitness/similarity_gradient.py | 177a7553e0b190c3a849586b98876f9124b197a5 | [] | no_license | https://github.com/ComputerVisionaries/PSF | 314cb2cef092b9ad8a99770e84760b8ff462f13e | 4e5c14f7ee31d9598d1c657fca00cb6efbaf2486 | refs/heads/master | 2020-04-02T18:46:07.765294 | 2018-11-30T03:19:28 | 2018-11-30T03:19:28 | 154,712,335 | 0 | 0 | null | null | null | null | null | null | null | null | null | null | null | null | null | import matplotlib.pyplot as plt
import numpy as np
from RelativePosition import RelativePosition
def Gil(img):
num_rows, num_cols, num_clrs = img.shape
gradients = np.zeros((num_rows, num_clrs))
for p in range(num_rows):
for c in range(num_clrs):
gradients[p, c] = img[p, num_cols-1, c... | UTF-8 | Python | false | false | 3,668 | py | 20 | similarity_gradient.py | 19 | 0.576881 | 0.532715 | 0 | 130 | 27.215385 | 77 |
ClaudioSiqueira/Exercicios-Python | 7,876,970,027,887 | 2be5aa6d5a736c4d94e3a9a17f6e506cc1a4d6ca | 0a007ec5f618fa1774c4119fb65202d3b24557d0 | /Exercicios Python/ex108/moeda.py | 6081369ec4615005de695e0b430b124d664fa420 | [
"MIT"
] | permissive | https://github.com/ClaudioSiqueira/Exercicios-Python | 0fe2830ac296bfac06e9fcf9ccc09b9417933b06 | 128387769b34b7d42aee5c1effda16de21216e10 | refs/heads/master | 2022-07-31T04:35:20.963539 | 2020-05-23T01:43:52 | 2020-05-23T01:43:52 | 266,242,109 | 0 | 0 | null | null | null | null | null | null | null | null | null | null | null | null | null | def metade(preco):
res = preco/2
return res
def aumentar(preco, taxa):
res = preco + (preco * taxa/100)
return res
def diminuir(preco, taxa):
res = preco - (preco * taxa/100)
return res
def dobro(preco):
res = preco * 2
return res
def formatacao(preco = 0, moeda = 'R$'):
retu... | UTF-8 | Python | false | false | 459 | py | 85 | moeda.py | 82 | 0.562092 | 0.535948 | 0 | 27 | 16 | 53 |
faker2081/pikachu2 | 16,724,602,654,670 | 657969e5cc87bb037060c5a1036748fa6d570ecb | 2d2c10ffa7aa5ee35393371e7f8c13b4fab94446 | /projects/ai/naic_seg/gseg/third/SkyWa7ch3r/convert_to_onnx.py | 431ff28573578eab6b9098a2df1b1e1d9e2283b6 | [] | no_license | https://github.com/faker2081/pikachu2 | bec83750a5ff3c7b5a26662000517df0f608c1c1 | 4f06d47c7bf79eb4e5a22648e088b3296dad3b2d | refs/heads/main | 2023-09-02T00:28:41.723277 | 2021-11-17T11:15:44 | 2021-11-17T11:15:44 | null | 0 | 0 | null | null | null | null | null | null | null | null | null | null | null | null | null | import keras2onnx
import tensorflow as tf
from tensorflow import keras
import os
import argparse
import fast_scnn
import deeplabv3plus
import separable_unet
import onnx
import cityscapesscripts.helpers.labels as labels
def convert_logits_to_labels(x):
"""
When this function receives a tensor it should be of
... | UTF-8 | Python | false | false | 6,021 | py | 1,584 | convert_to_onnx.py | 1,248 | 0.539777 | 0.474506 | 0 | 141 | 41.702128 | 111 |
IntroToCompBioLSU/week12 | 8,624,294,355,856 | 095b1eb1ee7b09716cf70c9f5c88621f5b12b8a3 | 2c334358e768153dae8aa74f7b84eb40a94c988f | /assignments/GentryHurst/Week12ghurst2.py | 0b9b3a5eac68960fbec7ae3a249df684677d30de | [] | no_license | https://github.com/IntroToCompBioLSU/week12 | 473106c83e0a31d93bb7411c5597da3b4353db4b | a8e6738007dc7fb307da02be44b75bf18274bc49 | refs/heads/master | 2020-04-05T06:48:43.942324 | 2018-12-12T08:48:31 | 2018-12-12T08:48:31 | 156,652,255 | 0 | 12 | null | false | 2018-12-11T21:40:10 | 2018-11-08T04:57:34 | 2018-12-11T21:38:47 | 2018-12-11T21:40:10 | 10 | 0 | 12 | 0 | Python | false | null | #!/usr/bin/env python
#class that contains generic information
class clothes:
"""This is a class to store information about any item of clothing"""
def __init__(self, type=" ", season=""):
self.type = type
self.season = season
def summarize(self):
if (self.season) == "summer":
print("This item of clothing... | UTF-8 | Python | false | false | 2,302 | py | 25 | Week12ghurst2.py | 24 | 0.668549 | 0.668549 | 0 | 64 | 34.96875 | 113 |
manitejadesetti/django_pro | 8,641,474,239,752 | c5445a562af57aff268a63138ed468b2a4cebbfd | 65c905eecc25addaa3fac5b53e70ebc18078d5e4 | /django/samplepro/EmployeeManagementPortal/apps.py | 62c1ba19c7f0962090b877b26ca5ed1469a6460f | [] | no_license | https://github.com/manitejadesetti/django_pro | 1b53aae7ec74b7c88938dd6db4a4b16d3479eea1 | c5c380a685af61a77a4947a8628a0e7767335875 | refs/heads/master | 2020-04-08T18:27:28.716829 | 2018-12-28T09:27:57 | 2018-12-28T09:27:57 | 159,608,910 | 0 | 0 | null | null | null | null | null | null | null | null | null | null | null | null | null | from django.apps import AppConfig
class EmployeemanagementportalConfig(AppConfig):
name = 'EmployeeManagementPortal'
| UTF-8 | Python | false | false | 123 | py | 26 | apps.py | 11 | 0.821138 | 0.821138 | 0 | 5 | 23.6 | 48 |
hi-august/pyexercises | 3,547,643,018,088 | 5899481c703f189be4028af33c73fe2b6d6fc462 | 7f92a710bc893a6dfc3cf69525368106caae24d9 | /algorithm/selection_sort.py | 555e3140621fe0579548fb39c4669176d3c664af | [] | no_license | https://github.com/hi-august/pyexercises | a64e45412a741aa1a883008d8c39e7664d468551 | 94a731fc517682013e96bbccd69efe90728eb788 | refs/heads/master | 2021-10-22T07:11:57.899710 | 2019-03-09T02:48:12 | 2019-03-09T02:48:12 | 22,276,989 | 0 | 0 | null | null | null | null | null | null | null | null | null | null | null | null | null | # coding=utf-8
'''
首先在未排序序列中找到最小(大)元素,
存放到排序序列的起始位置,然后,
再从剩余未排序元素中继续寻找最小(大)元素,
然后放到已排序序列的末尾。
以此类推,直到所有元素均排序完毕。
'''
# 选择排序 * 选择最大或者最小置于起始或者末尾
def selectionSort(list):
list_length = len(list)
for x in range(list_length):
min = x
for y in range(x+1,list_length):
if list[mi... | UTF-8 | Python | false | false | 749 | py | 135 | selection_sort.py | 93 | 0.553271 | 0.538318 | 0 | 23 | 21.26087 | 47 |
DragonWarrior15/HackerEarth | 3,212,635,572,073 | 179161c6d285afdddb024044419a1efcfb69385f | 0e9c5d81c2e31139255844d44ffe82c94fe5c9ea | /Python/Greedy/max_strength_cats.py | 60d52b47319e1a70f823051e9c4a3f8a6ee64d63 | [] | no_license | https://github.com/DragonWarrior15/HackerEarth | f4172b96e744387399aa313d014c6e33d81ce3b1 | 83b2ae73aeadf49d1dcc33598f00a747e0178180 | refs/heads/master | 2021-01-19T13:36:51.216568 | 2020-10-04T16:58:40 | 2020-10-04T16:58:40 | 82,396,807 | 0 | 0 | null | null | null | null | null | null | null | null | null | null | null | null | null | '''
Ashima has brought home n cats. Now, being a cat lover, she is taking care of the cats
and has asked me to bring cat food for them. Being a guy with no idea what to buy,
I brought some n packets of cat food (I atleast knew that each and every cat being a
good junkie will completely eat a whole packet of cat food... | UTF-8 | Python | false | false | 1,936 | py | 122 | max_strength_cats.py | 118 | 0.743763 | 0.732848 | 0 | 44 | 42.727273 | 137 |
Inzaghi2012/tumblr_crawler | 15,882,789,105,778 | 46fd1fb05319cf799c7beedcd4f8372738863987 | e500a1b70ec14edccc2d5a632e84ff899a17569e | /tumblr.py | a2489e8e13e104c0410bf5a796e17c45e6762e7b | [
"MIT"
] | permissive | https://github.com/Inzaghi2012/tumblr_crawler | 55e2f4ec62068106c83ddaa8556eda28030760fb | 94b40dad757ed82432943c43e9755388632593c7 | refs/heads/master | 2020-12-25T04:54:07.985689 | 2016-01-18T16:23:02 | 2016-01-18T16:23:02 | null | 0 | 0 | null | null | null | null | null | null | null | null | null | null | null | null | null | #!/usr/bin/python
# -*- coding: utf-8 -*-
import gevent
from gevent import monkey
monkey.patch_all()
import os
import sys
import urllib2
import json
import re
from bs4 import BeautifulSoup
MAP_FILEEXT = {'video/mp4': 'mp4'}
NUM_WORKER = 20
class TumblrCrawler(object):
def __init__(self, url):
self.ur... | UTF-8 | Python | false | false | 6,446 | py | 1 | tumblr.py | 1 | 0.470214 | 0.465405 | 0 | 186 | 33.655914 | 129 |
Aasthaengg/IBMdataset | 5,050,881,573,105 | 6b696c640c7ca15076971adc04c1bab6553f78fa | ca7aa979e7059467e158830b76673f5b77a0f5a3 | /Python_codes/p03418/s196221636.py | a2ac656cc8587d49ecbe4c8e4e52a7718f82ac88 | [] | no_license | https://github.com/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 | null | null | null | null | null | null | null | null | null | n, k = map(int, input().split())
ans = 0
for i in range(k+1, n+1):
d, m = divmod(n, i)
ans += d*(i-k) + max(0, m-k+1) - (k==0)
print(ans)
| UTF-8 | Python | false | false | 154 | py | 202,060 | s196221636.py | 202,055 | 0.454545 | 0.415584 | 0 | 6 | 24.666667 | 47 |
Ilhampratama43/Project-Wabot | 16,088,947,517,269 | c0a82dda1fa33a6b82f9c104e417ec2e377decde | 4e77b9cfd26a77b8655cd0dcc13b24c2ea2d0f84 | /modelWA.py | 6a106b6d648c4fc9d545249bdb63df7573003ec7 | [] | no_license | https://github.com/Ilhampratama43/Project-Wabot | 673f35e8bb1ccc1c8768f26507cc421a8f1fd238 | a72db263b2cba364a34276b09e9b4b0b60c6ec57 | refs/heads/main | 2023-07-17T01:02:13.682954 | 2021-09-02T14:14:47 | 2021-09-02T14:14:47 | null | 0 | 0 | null | null | null | null | null | null | null | null | null | null | null | null | null | from selenium import webdriver
from selenium.webdriver.common.by import By
from selenium.webdriver.support.ui import WebDriverWait
from selenium.webdriver.support import expected_conditions as EC
#automatic open chrome driver when whatsapp class created
#use specific profile chrome
# options = webdriver.ChromeOptions... | UTF-8 | Python | false | false | 3,540 | py | 2 | modelWA.py | 2 | 0.579661 | 0.574859 | 0 | 112 | 30.616071 | 117 |
timspencer/idaho_covid_dashboard_scraper | 18,262,200,954,716 | 8b544b9f5b0d5da4e7679844fe536de19179ff42 | ee370b3bc056bd8c3cab1fa1e05642267d03f8c7 | /list_idaho_covid_pages.py | d0d8a0a9af416f69d9076aa0b4862c739b0a72a0 | [] | no_license | https://github.com/timspencer/idaho_covid_dashboard_scraper | 713e5f62f071d21b282f8930b175291b1f23de92 | 0feed0e242293e955c72970b6ed550c183580d0f | refs/heads/main | 2023-01-08T18:58:01.199287 | 2020-11-15T17:57:18 | 2020-11-15T17:57:18 | 302,999,637 | 0 | 0 | null | null | null | null | null | null | null | null | null | null | null | null | null | #!/usr/bin/env python3
import requests
from bs4 import BeautifulSoup
import json
import re
url = "https://public.tableau.com/views/DPHIdahoCOVID-19Dashboard/Home"
r = requests.get(
url,
params={
":showVizHome": "no",
}
)
soup = BeautifulSoup(r.text, "html.parser")
tableauData = json.loads(soup.f... | UTF-8 | Python | false | false | 965 | py | 4 | list_idaho_covid_pages.py | 3 | 0.678756 | 0.673575 | 0 | 36 | 25.805556 | 119 |
anil-chhetri/OpenCV | 7,808,250,563,539 | 21ecdbea135b8ff19e6d57dc715efe179df17a7c | f085a680e736226192b734b8327877e10875a35b | /checkerboard.py | e3f6b1fafed99a148142c7a9a30c7fe926c9f221 | [] | no_license | https://github.com/anil-chhetri/OpenCV | 854cadd86fab1f4c5f6af7886606966850035a4e | abbe8b6659e87d11e534494376cadf599ec41c1f | refs/heads/main | 2023-01-06T17:50:27.233754 | 2020-11-03T16:23:28 | 2020-11-03T16:23:28 | 308,003,911 | 0 | 0 | null | null | null | null | null | null | null | null | null | null | null | null | null | import numpy as np
import cv2
canvas = np.zeros((300, 300, 3), dtype = "uint8")
# loop over the image in 10 pixel blocks
for (row, y) in enumerate(range(0, 300, 20)):
for (col, x) in enumerate(range(0, 300, 20)):
# initialize the color as red
color = (0, 0, 255)
# check to see if BOTH the row and column are
... | UTF-8 | Python | false | false | 593 | py | 37 | checkerboard.py | 37 | 0.625632 | 0.546374 | 0 | 25 | 22.72 | 49 |
prakhar21/Automatic-Ticket-Booking | 14,834,817,080,110 | 66f373e75d8f6233af00816849d984904377dd45 | 217e5c1fb4b35c9a0d4ada7588573de3416e919e | /bookTicket.py | 43a25de0c7f85782b00f4b42eef8dd7910384a9e | [] | no_license | https://github.com/prakhar21/Automatic-Ticket-Booking | a932cdc069d730348759be1df67a559830123b7d | 4f0bd0f1dbf0308e7edcdd526e18344f8ff280cd | refs/heads/master | 2020-12-31T04:56:28.470641 | 2016-05-24T14:42:25 | 2016-05-24T14:42:25 | 59,579,920 | 1 | 2 | null | null | null | null | null | null | null | null | null | null | null | null | null | '''
@author: Prakhar Mishra
@date: 16/02/2016
'''
from selenium import webdriver
from selenium.webdriver.common.by import By
from selenium.webdriver.support.ui import WebDriverWait
from selenium.webdriver.support import expected_conditions as EC
from selenium.webdriver.common.keys import Keys
from selenium.com... | UTF-8 | Python | false | false | 9,047 | py | 2 | bookTicket.py | 1 | 0.721676 | 0.704875 | 0 | 335 | 26.00597 | 100 |
qbrc-cnap/cnap | 16,939,351,029,246 | 7355527f9d2c54fe596b76c04279233e45000825 | 322ac7676c4af546f6cf2500a8daacfdbc04d1e5 | /base/resource_urls.py | 2d43d4a55a223a21651e68b2035f6709cd070329 | [
"MIT"
] | permissive | https://github.com/qbrc-cnap/cnap | 3842eda379e5c2c0595cfc8f19b16a0ea667e2aa | 624683e91a64c3b4934b578c59db850242d2f94c | refs/heads/master | 2022-12-15T01:37:20.300250 | 2020-03-13T19:03:28 | 2020-03-13T19:03:28 | 184,335,005 | 1 | 0 | MIT | false | 2022-12-08T05:46:57 | 2019-04-30T21:37:38 | 2021-07-08T14:06:04 | 2022-12-08T05:46:57 | 1,909 | 1 | 0 | 24 | Python | false | false | from django.urls import re_path
from rest_framework.urlpatterns import format_suffix_patterns
from base import views
'''
For all the endpoints given here, consult the specific view for
details about the actual methods they support, and what sorts of
info they provide back
'''
urlpatterns = [
# endpoints related ... | UTF-8 | Python | false | false | 846 | py | 169 | resource_urls.py | 87 | 0.705674 | 0.698582 | 0 | 19 | 43.526316 | 105 |
cskanani/codechef_prepare | 3,770,981,330,492 | 34e655789c3f31293a8e9fed34d1400aea41819b | 8bcf7c1ed213d5a296d592a420b3d678f01ff716 | /greedy_algorithms/LEMUSIC.py | f5a8bee1bb19c3e5d198d1cc9423f04ab733786c | [] | no_license | https://github.com/cskanani/codechef_prepare | 237b65455c2294c4a96d72cfa4cdecb8734b48ee | 36075328b0f52dc6237a96a4094358128327dc0b | refs/heads/master | 2020-12-03T14:11:04.963970 | 2020-03-05T17:29:23 | 2020-03-05T17:29:23 | 231,349,403 | 2 | 0 | null | null | null | null | null | null | null | null | null | null | null | null | null | for _ in range(int(input())):
num_songs = int(input())
songs_list = []
for i in range(num_songs):
songs_list.append(tuple(map(int, input().split())))
songs_list.sort(key = lambda x: x[1])
played_list = [False]*num_songs
previously_palyed = {}
sweetness = 0
for i in range(len(song... | UTF-8 | Python | false | false | 718 | py | 68 | LEMUSIC.py | 67 | 0.571031 | 0.562674 | 0 | 20 | 34.9 | 59 |
Pedestrian-794567740/OJCrawler | 5,360,119,203,016 | 68de321360a10e4d24c48d4d05ebbe073e94e958 | 2915b310a4ac6901c8ffabb90188fb57d3a8342b | /HDUProblems.py | a53ba0f666bbeebb25a37a6c48f8843de57678c9 | [] | no_license | https://github.com/Pedestrian-794567740/OJCrawler | 29b7c7b0844be60b304f0e26542e3f65c2336ece | ebc22831a94628ced20a5b095e1444170f0fd369 | refs/heads/master | 2022-03-25T07:32:50.131299 | 2017-08-28T15:02:38 | 2017-08-28T15:02:38 | null | 0 | 0 | null | null | null | null | null | null | null | null | null | null | null | null | null | import requests,re,json,os
from bs4 import BeautifulSoup
HOST = 'http://acm.hdu.edu.cn/'
BASELOC = os.getcwd()
NAME = 'HDUProblems'
def getHTMLText(url):
try:
headers = {'User-Agent':'Mozilla/5.0 (Windows NT 6.1; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/56.0.2924.87 Safari/537.36'}
... | UTF-8 | Python | false | false | 2,517 | py | 7 | HDUProblems.py | 6 | 0.547552 | 0.531364 | 0 | 81 | 29.506173 | 148 |
prestonTao/python-example | 644,245,121,612 | fcdf6c6b756e1cc90a6598d9fd5e1b2ba281ab0e | fe54dbe7dbee690e93c3d61ffc67b627176c2dc2 | /test/test.py | da9826dc39a8651cd1a9f8a9e12cd1c30636bacb | [] | no_license | https://github.com/prestonTao/python-example | 106d9d2de16bb1b008111eec56c967d2dee07295 | ac7feed76db5e34973217858140ced511ea6cb49 | refs/heads/master | 2021-01-10T04:42:35.732990 | 2015-07-03T09:32:27 | 2015-07-03T09:32:27 | 36,269,947 | 0 | 0 | null | null | null | null | null | null | null | null | null | null | null | null | null |
def p(p,day=1):
print(day)
params = {"day":21}
p(params)
u = '1'
print(cmp(u,'1'))
print(cmp(u,'2'))
print(cmp(u,'7'))
params = {'name':'tao','age':18}
print('name' in params)
print '1 ###############################################################'
class Base():
name = "tao"
def __init__(s... | UTF-8 | Python | false | false | 1,063 | py | 37 | test.py | 36 | 0.428034 | 0.41016 | 0 | 71 | 13.873239 | 74 |
shoicchi/python-lesson2 | 1,649,267,486,023 | d4af29fb312619e92c75fbc97a0ff9220fb11dec | 46583b1bc3956da12ae06c4b432400188066eba4 | /file_split_by_module.py | 852f170b84b73d0c58ea8eee39c6aaa726ad3e1a | [] | no_license | https://github.com/shoicchi/python-lesson2 | 9061370a64cf3f72e37350b255c6925a2b309e1d | 54f413a6730f7ea761d83572a5110b24832c1f6b | refs/heads/master | 2020-07-26T22:36:40.522620 | 2019-09-24T15:34:06 | 2019-09-24T15:34:06 | 208,785,825 | 1 | 0 | null | null | null | null | null | null | null | null | null | null | null | null | null | # class User:
# def __init__(self, name):
# self.name = name
# def say_hi(self):
# print("hi {0}".format(self.name))
# class AdminUser(User):
# def __init__(self, name, age):
# super().__init__(name)
# self.age = age
# def say_hello(self):
# print("hello ... | UTF-8 | Python | false | false | 897 | py | 19 | file_split_by_module.py | 2 | 0.604468 | 0.593955 | 0 | 29 | 25.241379 | 63 |
AndrewErmakov/CompanyRepairProject | 2,439,541,452,186 | 969903d108873f05154c3e9d6d4772622d7ab06e | 61da429c2db1183716ef6e4cb2627ea2e2907a58 | /company_repair_project/requests_app/migrations/0002_auto_20210730_0450.py | 385ed690d02e47d727d673c07f1dddb1cb8f4a30 | [] | no_license | https://github.com/AndrewErmakov/CompanyRepairProject | 89dacc0c9486301283a417c822d5d64d08710e10 | d5d1f5205dcf4a2ea589960e059fd0904e17ffa8 | refs/heads/main | 2023-06-21T06:55:35.514399 | 2021-07-30T06:20:53 | 2021-07-30T06:20:53 | 390,953,825 | 0 | 0 | null | null | null | null | null | null | null | null | null | null | null | null | null | # Generated by Django 3.2.5 on 2021-07-30 04:50
from django.conf import settings
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
dependencies = [
migrations.swappable_dependency(settings.AUTH_USER_MODEL),
('requests_app', '0001_ini... | UTF-8 | Python | false | false | 794 | py | 14 | 0002_auto_20210730_0450.py | 11 | 0.633461 | 0.609195 | 0 | 26 | 29.115385 | 164 |
Phoeux/ProgressTaskControl | 19,335,942,783,640 | 59969631319bddc48acd18548edec5c149c0f600 | ec75c67f82968e37dc267ba21edf4af87c0ad835 | /api/management/commands/notifications.py | 38b8fd7c331f32370800284e07ce61da232d0479 | [] | no_license | https://github.com/Phoeux/ProgressTaskControl | d45c4f386f7947f5dd3037c5ee07d6306f40689e | a49bb97572d5f8a4b10bdba7c66648b6ff6983b4 | refs/heads/main | 2023-07-08T08:52:20.766051 | 2021-08-11T11:27:22 | 2021-08-11T11:27:22 | 386,531,520 | 0 | 0 | null | null | null | null | null | null | null | null | null | null | null | null | null | from django.core.mail import send_mail
from django.core.management import BaseCommand
from django.utils.timezone import now
from api.models import Tasks
class Command(BaseCommand):
def handle(self, *args, **options):
task = Tasks.objects.filter(date_to_check=now())
for notif in task:
... | UTF-8 | Python | false | false | 781 | py | 10 | notifications.py | 6 | 0.673469 | 0.673469 | 0 | 17 | 42.235294 | 110 |
wkoki/Workspace | 5,970,004,555,381 | 3ce02036c6d6923c27eba30d7dd82a3a2896e67a | 7dabcbde11781ff4bc709749bc5113bddfb3bdf2 | /python/deep-learning/oreilly/ch04/prac.py | 063b077f9fa4361e0516f3bdc9071349294c6f84 | [
"MIT"
] | permissive | https://github.com/wkoki/Workspace | 64c28581ddad6b68b831c13af060b7f55dbfc69a | 964bbf4db1360e8e6fbab80c8cf130824e89e272 | refs/heads/master | 2021-08-07T01:02:11.191923 | 2017-11-07T08:10:26 | 2017-11-07T08:10:26 | 107,400,107 | 0 | 0 | null | null | null | null | null | null | null | null | null | null | null | null | null | # -*- coding: utf-8 -*- #
import numpy as np
from dataset.mnist import load_mnist
from two_layer_net import TwoLayerNet
(x_train, t_train), (x_test, t_test) = load_mnist(normalize=True, one_hot_label=True)
train_loss_list = []
train_acc_list = []
test_acc_list = []
# 1エポックあたりの繰り返し数
iter_per_epoch = max(train_size/ba... | UTF-8 | Python | false | false | 1,328 | py | 53 | prac.py | 45 | 0.640033 | 0.618616 | 0 | 44 | 26.545455 | 85 |
X00143365/3rdyearprojectX00143365 | 5,050,881,541,889 | 05e3c7c783c20ca51b5fe8320dc418c84e6479a5 | 79e846ceb4eaceedecd97327f4619ea444d379cf | /module_task/urls.py | 2f280b1dbe47888be2fcd9e00c69791ec9d2e556 | [] | no_license | https://github.com/X00143365/3rdyearprojectX00143365 | 172ae9097af335c16d860739300152dab77a45ec | 3252b4ada03de21f621ebdbfe065f2f470e25c00 | refs/heads/master | 2021-01-05T07:12:02.728238 | 2020-02-28T16:22:28 | 2020-02-28T16:22:28 | 240,926,140 | 0 | 0 | null | null | null | null | null | null | null | null | null | null | null | null | null |
from django.urls import path
from . import views
urlpatterns = [
path('',views.index, name='index'),
path('people',views.people, name='people'),
path('task',views.task, name='task'),
path('horses',views.horses, name='horses'),
path('staff',views.staff, name='staff'),
path('rota',views.... | UTF-8 | Python | false | false | 1,234 | py | 28 | urls.py | 20 | 0.668558 | 0.668558 | 0 | 28 | 43.035714 | 82 |
Grigorii-24/Classification-Sympsons | 19,370,302,521,206 | 2bd9b55650e134bd4de34637378756f1b6934445 | 3ca6a34ec4a2f5f2e7073e51c839ed3b6861efb8 | /sympsons.py | a60a45365941a49361257a9d9b3df871d5014622 | [] | no_license | https://github.com/Grigorii-24/Classification-Sympsons | bf9ecf837687ae00815a28812237130248322622 | e99fd007e554c7f7fa8c9f51c8e4d106e2bec533 | refs/heads/main | 2022-12-30T15:10:25.166749 | 2020-10-01T20:10:16 | 2020-10-01T20:10:16 | 300,400,591 | 0 | 0 | null | null | null | null | null | null | null | null | null | null | null | null | null | # -*- coding: utf-8 -*-
"""Sympsons.ipynb
Automatically generated by Colaboratory.
Original file is located at
https://colab.research.google.com/drive/1lBYNd3B0WH4xVyNbzSwQZ1jVMlhnu1tu
"""
!pip install -U torch torchvision
# установка подходящей версии torch
from os.path import exists
from wheel.pep425tags imp... | UTF-8 | Python | false | false | 13,874 | py | 2 | sympsons.py | 1 | 0.629504 | 0.608997 | 0 | 423 | 31.742317 | 135 |
artekw/gpx2map | 9,019,431,331,116 | a9ddff9c7abb2a39cc60e23c93ce27550951e09d | df60348adf898e4d170804a2c8884871ce2c9bcd | /gpx2map.py | 6922ce4437bc5ce96aeb5f95add1412ef5ce3a6e | [
"MIT"
] | permissive | https://github.com/artekw/gpx2map | fbfcba719a8fd1f92bb6df8199d413fd0495523d | f33916d868647d3cac1600d0985e6928db0f88b5 | refs/heads/master | 2020-08-30T13:31:09.395509 | 2017-02-05T11:03:26 | 2017-02-05T11:03:26 | 67,627,588 | 1 | 0 | null | false | 2019-11-11T08:26:56 | 2016-09-07T17:09:27 | 2016-09-07T17:09:48 | 2019-11-11T08:26:55 | 18 | 0 | 0 | 1 | CSS | false | false | #!/usr/bin/env python
# -*- coding: utf-8 -*-
"""./ngrok http -region=eu 5000"""
import os
import gpxpy
import gpxpy.gpx
import folium
from flask import Flask, send_file, request, redirect, url_for, render_template, abort, flash
from werkzeug.utils import secure_filename
__version__ = 0.1
__author__ = "Artur Wronow... | UTF-8 | Python | false | false | 2,612 | py | 11 | gpx2map.py | 2 | 0.62524 | 0.617185 | 0 | 96 | 26.166667 | 93 |
RohiteshThakur/CloudAnimatics | 2,508,260,903,762 | 93c91b1ba142171f4369737c0d7ffb34b31b6147 | 43070b2ac3c195936352e31e33375ff5f209483d | /src/blender_functions_obsolete.py | a4f1d020820457b4059df6dd896516d24322f693 | [] | no_license | https://github.com/RohiteshThakur/CloudAnimatics | b9d967c8782df5362cf93008568393ae2fede09f | c09153f070f5e49ed0be62130988d17c36f72160 | refs/heads/master | 2021-08-17T06:54:56.739523 | 2017-11-20T21:55:59 | 2017-11-20T21:55:59 | 107,906,324 | 1 | 0 | null | null | null | null | null | null | null | null | null | null | null | null | null | r"'''"
# Change font size in blender's python console..
# bpy.context.space_data.font_size = 18
# After opening blender you want to save your file first, to access "bpy.data.filepath". This gives Blender a path to search.
# bpy.ops.wm.save_mainfile(filepath=("E:\\AWS\\My Project\\AWS_Blender_programs\\temp.blend")) ... | UTF-8 | Python | false | false | 21,605 | py | 40 | blender_functions_obsolete.py | 9 | 0.644666 | 0.626938 | 0 | 519 | 40.628131 | 173 |
andporfirio/study_python | 14,345,190,807,378 | e3b0994a45b3ca1cf2ef5352cd4c7fad247d2c87 | 3515fa9877df641d89cf99142840a0b68cbd0d8b | /python_zumbis/02.repeticao04.py | bbe513fa069a4177ffc710f6c3c7e2bc2d61b65b | [] | no_license | https://github.com/andporfirio/study_python | a8d9263b6914a1de1768459c4b0ce10f3d52d510 | 4ab40b50c4b0359326ccb2e44776c1ac6e1fe5c6 | refs/heads/master | 2016-09-23T07:12:58.830190 | 2016-06-28T17:59:39 | 2016-06-28T17:59:39 | 61,669,998 | 0 | 0 | null | null | null | null | null | null | null | null | null | null | null | null | null | #!/usr/local/bin/python3
# Repeticao02
# Uso do while para repeticao
#digito = int(input('Digite um numero: '))
x = 1
while x <= 10:
print(x * 3)
x = x + 1 | UTF-8 | Python | false | false | 164 | py | 38 | 02.repeticao04.py | 33 | 0.609756 | 0.560976 | 0 | 9 | 17.333333 | 42 |
sungbin2/pyserver | 18,442,589,575,835 | e46831cd06608e45eed48ebc93bbe1d4e2264076 | d80f0664e2697d1dbb17a6893e2f84fda77c71dd | /server/routes/info/store.py | 99fea7fe1aedd317752e7a4b40e5d774da39e6bd | [] | no_license | https://github.com/sungbin2/pyserver | 4e44bd67f0e869d4aebb50352ce5af4a3c653f23 | 5bd646e7c1213c8dd0a62a5f72a0e0729acb3293 | refs/heads/master | 2020-03-27T00:48:10.331199 | 2018-08-22T05:00:31 | 2018-08-22T05:00:31 | 145,658,239 | 0 | 0 | null | null | null | null | null | null | null | null | null | null | null | null | null | from server.main_ import app, orm, c
from dateutil import parser
from datetime import datetime, date
def _get_store(store_id):
with orm.session_scope() as ss: # type:c.typeof_Session
only = ss.query(orm.정보_가게) \
.filter_by(s=store_id) \
.one()
return c.OBJ_cp(only)
@app... | UTF-8 | Python | false | false | 5,876 | py | 17 | store.py | 2 | 0.388536 | 0.375132 | 0 | 166 | 33.162651 | 91 |
Aunsiels/pyformlang | 5,257,039,993,888 | 1911a3d334f0508844e94624b2c7ffb34e888802 | adc39afdb117e343a4ff3a1309a10ed04c78a51c | /pyformlang/finite_automaton/tests/test_symbol.py | 63a893dad9a85b0c0073e84d0802bf5c26ea6f17 | [
"MIT"
] | permissive | https://github.com/Aunsiels/pyformlang | 29485caaad2f3f60b93ac9782f193bbf512edc0f | 49abbaeef84dcc8f6e5122f0939c950f812f8b16 | refs/heads/master | 2023-07-31T09:18:54.528110 | 2023-04-18T19:11:56 | 2023-04-18T19:11:56 | 164,653,723 | 28 | 9 | MIT | false | 2022-06-02T19:42:56 | 2019-01-08T13:22:11 | 2022-05-28T08:40:06 | 2022-06-02T19:42:56 | 386 | 13 | 5 | 1 | Python | false | false | """
Tests for the symbols
"""
import unittest
from pyformlang.finite_automaton import Symbol
class TestSymbol(unittest.TestCase):
""" Tests for the symbols
"""
def test_can_create(self):
""" Tests the creation of symbols
"""
self.assertIsNotNone(Symbol(""))
self.assertI... | UTF-8 | Python | false | false | 1,282 | py | 104 | test_symbol.py | 86 | 0.596724 | 0.573323 | 0 | 49 | 25.163265 | 47 |
haolinnie/piSurveillance | 14,791,867,416,247 | f2f9aff74d271d9b9015bf928c3b450fe5da195e | 9f13db220e07d23eadb4922880d0a1d79e36004d | /main.py | b6897aea4043c7025f93d016cd8843181376d6fc | [] | no_license | https://github.com/haolinnie/piSurveillance | 1e916c1f03d3f6a94c861ac470c67c9fd3f0875a | 6b1af9f9be628c87db29149aa23db90f71d12731 | refs/heads/master | 2020-08-06T23:22:12.021634 | 2019-11-14T03:40:07 | 2019-11-14T03:40:07 | 213,196,216 | 0 | 0 | null | null | null | null | null | null | null | null | null | null | null | null | null | import sys
import time
import datetime
import threading
import cv2
import imutils
from motiondetector import MotionDetector
from imutils.video import VideoStream
from flask import Response, Flask, render_template
# Initialise output frames and a lock to ensure thread-safe exchange
# of the output frames
outputFrame =... | UTF-8 | Python | false | false | 3,543 | py | 4 | main.py | 1 | 0.623483 | 0.604008 | 0 | 113 | 30.345133 | 144 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.