blob_id stringlengths 40 40 | directory_id stringlengths 40 40 | path stringlengths 2 616 | content_id stringlengths 40 40 | detected_licenses listlengths 0 69 | license_type stringclasses 2
values | repo_name stringlengths 5 118 | snapshot_id stringlengths 40 40 | revision_id stringlengths 40 40 | branch_name stringlengths 4 63 | visit_date timestamp[us] | revision_date timestamp[us] | committer_date timestamp[us] | github_id int64 2.91k 686M ⌀ | star_events_count int64 0 209k | fork_events_count int64 0 110k | gha_license_id stringclasses 23
values | gha_event_created_at timestamp[us] | gha_created_at timestamp[us] | gha_language stringclasses 213
values | src_encoding stringclasses 30
values | language stringclasses 1
value | is_vendor bool 2
classes | is_generated bool 2
classes | length_bytes int64 2 10.3M | extension stringclasses 246
values | content stringlengths 2 10.3M | authors listlengths 1 1 | author_id stringlengths 0 212 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
23fc787c792a031893f18ff36949854abf5f4aa8 | ed5758e192cc608f5e00ef0028b94c8d7b7a34f2 | /GIBSDownloader/tile.py | 3305ff71944125bf720b7a93cf6b3d02355e63e3 | [] | no_license | bigdatasciencegroup/GIBS-Downloader | 8757557038548a2efa3f3c73ffbb767a642a90e6 | 707aac63a53800200ab70a92a4ec66df13b962fc | refs/heads/main | 2023-08-03T09:45:35.105815 | 2021-09-21T14:46:54 | 2021-09-21T14:46:54 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 219 | py | # Stores tiling information
class Tile():
def __init__(self, width, height, overlap, handling):
self.width = width
self.height = height
self.overlap = overlap
self.handling = handling | [
"flisboa@fnal.gov"
] | flisboa@fnal.gov |
a1aadb6d641395324d851879b73a6b06411f9e31 | 49c65ec1525873452d3dd2c9a08021124e89ab67 | /usb_video.py | b22e170c709875a0e562bb7760d8b96a693f8cd3 | [] | no_license | heyiheng1024/SimpleFaceRec | 2f170f712045e53126a84e96396c20b19916df13 | c4c0a01cbde3b520d07f726f0173fa6d42ea986f | refs/heads/master | 2020-09-17T10:07:26.009782 | 2019-11-26T01:57:40 | 2019-11-26T01:57:40 | 224,072,179 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,083 | py | #coding utf-8
import cv2
import sys
#视频流来源(摄像头or本地视频)
cap = cv2.VideoCapture("迪丽热巴.jpg")
# cap.set(cv2.CAP_PROP_FRAME_WIDTH, 720)
# cap.set(cv2.CAP_PROP_FRAME_HEIGHT, 480)
#人脸分类器
classfire = cv2.CascadeClassifier("Classifier/haarcascade_frontalface_alt2.xml")
#颜色BGR
blue = (255,0,0)
green = (0,255,0)
red = (0,0... | [
"noreply@github.com"
] | heyiheng1024.noreply@github.com |
b5aa9f19a9d125eb3707e06d131800bfce86c1d8 | 50be5bf642b14bc04a1bccb087468eb708016bbf | /kili/mutations/label/__init__.py | d2a4cfd8920037072dd4a1edb70797896035b733 | [
"Apache-2.0"
] | permissive | marcenacp/kili-playground | 706ac55d3e83da60fb15c6fabafe18b1bb53c002 | d3a711d1908725d127cc99ceb504301482bf41d8 | refs/heads/master | 2022-04-20T09:33:58.662465 | 2020-04-10T15:54:29 | 2020-04-10T15:54:29 | 254,937,647 | 0 | 0 | Apache-2.0 | 2020-04-11T19:13:51 | 2020-04-11T19:13:50 | null | UTF-8 | Python | false | false | 2,837 | py | from json import dumps
from typing import List
from ...helpers import format_result
from .queries import (GQL_APPEND_TO_LABELS, GQL_CREATE_HONEYPOT,
GQL_CREATE_PREDICTIONS, GQL_UPDATE_LABEL,
GQL_UPDATE_PROPERTIES_IN_LABEL)
def create_predictions(client, project_id: str, ex... | [
"edouard@kili-technology.com"
] | edouard@kili-technology.com |
e41d0c75f331e9e116ec8f60283bcfd4f5d53701 | def49b9d97c44b54d5efd4e88c759b26949221b3 | /schemas.py | 44c72ad8072d2d3bca43c73e326f15bf21713190 | [] | no_license | Keovkevin/fast_api | 28576244213231f8e67bc0304231cf61fba2aebd | 4b71a197844c9bcc7c3f1fa85c5abd820ff544c7 | refs/heads/main | 2023-06-01T10:55:46.166407 | 2021-07-03T16:11:41 | 2021-07-03T16:11:41 | 382,623,253 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 478 | py | import pydantic as _pydantic
import datetime as _dt
class Store(_pydantic.BaseModel):
id:int
name:str
code:str
active:bool
address:str
gst_no:int
email:str
mobile_no:int
service_tax:int
commission_percentage:int
is_online_payment:bool
class config:
orm_mode=Tru... | [
"shubhamshekhar089@gmail.com"
] | shubhamshekhar089@gmail.com |
7f85583384768b3415318e38004daf64dd0a996d | e2def11fa25b0852d4535d45384a6f1c9c762a02 | /Projeto/projetoTCC/projetoTCC/settings.py | db0aaebc745c5ccd3b04c71620ce5d508d6d89f2 | [] | no_license | Olinad21/APIDjango | 4de4ac76c2646632bab313ce4a53c2e8082b7777 | 0e1157855380d233e848e1b1ee7e5487c06c997c | refs/heads/master | 2020-04-01T06:36:45.587500 | 2019-02-06T19:58:53 | 2019-02-06T19:58:53 | 152,955,346 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,283 | py | """
Django settings for projetoTCC project.
Generated by 'django-admin startproject' using Django 2.1.2.
For more information on this file, see
https://docs.djangoproject.com/en/2.1/topics/settings/
For the full list of settings and their values, see
https://docs.djangoproject.com/en/2.1/ref/settings/
"""
import os... | [
"danilooliveira79@gmail.com"
] | danilooliveira79@gmail.com |
ce84cfc7e6a9774842cef1a393e8ef625284ae06 | 7f189b1d917785da079276674276f68baa30df7f | /kmmall/pipelines.py | 1d30292b0e08e1835ac775ee2d640e6b34c9e8bb | [] | no_license | eninem123/kangmeimallspider | b79ed43781328d67e893652433e59ed094ec941a | b2bcca0efe0b634ca97f331242351e9cfd52c2f7 | refs/heads/master | 2022-12-24T04:31:31.169097 | 2018-09-20T09:58:41 | 2018-09-20T09:58:41 | 149,369,473 | 1 | 0 | null | 2022-12-08T00:45:48 | 2018-09-19T00:38:33 | Python | UTF-8 | Python | false | false | 2,637 | py | # -*- coding: utf-8 -*-
# Define your item pipelines here
#
# Don't forget to add your pipeline to the ITEM_PIPELINES setting
# See: https://doc.scrapy.org/en/latest/topics/item-pipeline.html
# import json
# from scrapy.exporters import CsvItemExporter
import csv
# class KmmallPipeline(object):
# def process_item... | [
"xwp_fullstack@163.com"
] | xwp_fullstack@163.com |
5f7c0cdac07becdf70d55f1915794e2a91b1e177 | 8c51aff248eb6f463d62e934213660437c3a107b | /django_project/users/views.py | fe5316a90de09acd0372252d67941f52e802b19c | [] | no_license | wonjun0901/WJ_Develop_Individually | 5f839932c189adf2b2b34f7dadbdeaa8744f8d0e | e0402f5dbdda8ae8292cace124d381e29f707183 | refs/heads/master | 2021-01-02T00:13:38.851832 | 2020-02-18T01:10:15 | 2020-02-18T01:10:15 | 239,406,395 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 613 | py | from django.shortcuts import render, redirect
#from django.contrib.auth.forms import UserCreationForm
from django.contrib import messages
from .forms import UserRegisterForm
def register(request):
if request.method == 'POST':
form = UserRegisterForm(request.POST)
if form.is_valid():
fo... | [
"wonjun0901@gmail.com"
] | wonjun0901@gmail.com |
e82585fce52c800d045ff51b94242a83f0126930 | 653a3d9d66f3d359083cb588fc7c9ece8bb48417 | /test/runtime/frontend_test/onnx_test/defs_test/math_test/max_test.py | 8aaf5db7ac2b8cfd0529aa58330acb3221cbd3dc | [
"Zlib",
"MIT"
] | permissive | leonskim/webdnn | fec510254b15f3dec00f5bed8f498737b372e470 | f97c798c9a659fe953f9dc8c8537b8917e4be7a2 | refs/heads/master | 2020-04-15T18:42:43.632244 | 2019-01-10T10:07:18 | 2019-01-10T10:07:18 | 164,921,764 | 0 | 0 | NOASSERTION | 2019-01-09T19:07:35 | 2019-01-09T19:07:30 | Python | UTF-8 | Python | false | false | 1,306 | py | import numpy as np
from test.runtime.frontend_test.onnx_test.util import make_node, make_tensor_value_info, make_model
from test.util import wrap_template, generate_kernel_test_case
from webdnn.frontend.onnx import ONNXConverter
@wrap_template
def template(n_x, x_shape, description: str = ""):
vxs = [np.random.r... | [
"y.kikura@gmail.com"
] | y.kikura@gmail.com |
8ba38a6f5ef8558650a4ba5c6605d6a09cbf9ae5 | 860aa5bf3e9bd4de9d9b1d6826663e95c4363d0e | /Python/DynamicProgramming/LongestPalindromicSubSeq.py | 6d1f4b846479d46c4c6dcc0fe7b1c35c24a4a9de | [] | no_license | anirudh-deshpande/Old-Programming | e0e72e691ac094bdcc5180d3777010121f03b9ae | c5a1d9513264ebfe699af304b054ce9e477d04d9 | refs/heads/master | 2020-12-11T05:23:59.157076 | 2016-04-08T01:04:57 | 2016-04-08T01:04:57 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,142 | py | __author__ = 'Anirudh'
# Recursive
def LCSRec(s1,s2):
l1 = len(s1)
l2 = len(s2)
ret = ""
if l1 is 0 or l2 is 0:
return ret
if s1[l1-1] is s2[l2-1]:
ret=s1[l1-1]+LCSRec(s1[0:l1-1],s2[0:l2-1])
else:
l1rem = LCSRec(s1[0:l1-1],s2)
l2rem = LCSRec(... | [
"deshpana@usc.edu"
] | deshpana@usc.edu |
60c9b57a2eda6c2eaf8e4755cfd166017886804e | af172343e2d564dacefd382ea4689dd8c6646e7d | /backend/selenium/driverFactory.py | e1e510dd7a7052a6ffc03464008a437060419efa | [] | no_license | simalda/Quiz | ba6187d600e8b7f93640ecac82b00a6d165e43b8 | 5a66d85a4dce4dc98db67212c11cdf556c49c8a2 | refs/heads/master | 2021-06-23T15:28:45.422751 | 2020-06-02T11:47:06 | 2020-06-02T11:47:06 | 194,924,234 | 0 | 0 | null | 2021-03-12T10:12:10 | 2019-07-02T19:37:32 | JavaScript | UTF-8 | Python | false | false | 449 | py | from selenium import webdriver
# import LogInPage from "./LogInPage";
class DriverFactory():
def createDriverChrome(self):
driver = webdriver.Chrome()
driver.implicitly_wait(10)
return driver
def createAndOpenChrome(self):
driver = webdriver.Chrome()
driv... | [
"simalda83@gmail.com"
] | simalda83@gmail.com |
073109a1808364b51f6c6f0eca2a28dead822370 | 1045a1b49c91ba6b57c2f82fbb6b70ee74e8fa0f | /ApiAutoTest/utils/__init__.py | e12566fb0e8390d3e5390aae969517548a3c0118 | [] | no_license | NewDragonZhong/AutomationTest | acd3fd861971d23f60703126f2c42f7f6663ccc1 | 7636ed8c6e0260c7c1b8937599c597ab9a152802 | refs/heads/master | 2020-07-28T02:27:31.861430 | 2019-10-16T07:30:38 | 2019-10-16T07:30:38 | 209,280,237 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 155 | py | # -*- coding: utf-8 -*-
#@Time : 2018/5/3 14:44
#@Author : chenjinlin
#@Email : chenjinlin@bbdservice.com
#@File : __init__.py
#@Software: PyCharm | [
"change@qq.com"
] | change@qq.com |
75528b21f1eac2877ca966946d1370e81593004b | 05c6b9f1f769ff359b757a913e0d43aeb1dfb9c6 | /hcf.py | f5cd7c9c45512a220634fefb6a6049cfbdbaad6c | [] | no_license | samarthchadda/pypi | bc92c0f7086ead65cb7242f7ea827470817a3b55 | 0c3308be995c8952c8db6b56aae46e58722d4d82 | refs/heads/master | 2020-04-01T16:48:13.337978 | 2018-11-04T10:17:59 | 2018-11-04T10:17:59 | 153,399,057 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 323 | py | def computeHCF(x,y):
if x>y:
smaller=y
else:
smaller=x
for i in range(1,smaller+1):
if((x%i==0) and (y%i==0)):
hcf=i
return hcf
num1=int(input("Enter first number:"))
num2=int(input("Enter second nunber:"))
print("H.C.F of",num1,"and",num2,"is",computeHCF(num1,num2... | [
"samarthchadda@gmail.com"
] | samarthchadda@gmail.com |
24789063096590a802a1056294cdd304c87b6226 | b07525d4470aa7f2f38e972e3c9b49b4b4f2d031 | /exercism/python/word-count/word_count_test.py | f22a7a3807d35183ee6214a4b0c781259582b954 | [] | no_license | Supakron123/testPython | 82721df5ce61e85967d1b61f96993bdea8fefcbf | 18303eb605a44fe68c02ed935f04f61b351eb28d | refs/heads/master | 2021-05-13T20:14:25.608935 | 2018-01-15T11:07:50 | 2018-01-15T11:07:50 | 116,908,345 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,967 | py | import unittest
from word_count import word_count
class WordCountTests(unittest.TestCase):
def test_count_one_word(self):
self.assertEqual(
word_count('word'),
{'word': 1}
)
def test_count_one_of_each(self):
self.assertEqual(
word_count('one of ea... | [
"supakron.o@codium.co"
] | supakron.o@codium.co |
2310513ea34ee18675a9e0138f458cbe5884acc4 | e169fd5ea9e79bb3be21e7148900eae700778a50 | /gis_utils/out_parsers/geojson_to_topojson.py | 6258ba5f0c3b1614e7b5b2490765fb29c0cd6e34 | [
"MIT"
] | permissive | Daniel-M/gis_utils | e1b8c8f1b6fd0949e57ae41fa17aa0b0c77eabf9 | a3497d5e235b57fb2db3f3e780e7efa6e4b4cbad | refs/heads/master | 2021-09-07T12:08:58.295120 | 2018-02-20T22:00:56 | 2018-02-20T22:00:56 | 122,255,346 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 792 | py | import os
import sys
import subprocess as sp
from pathlib import PurePath
PARSER_PATH = sys.modules[__name__].__file__
def geojson_to_topojson(infile,outfile):
"""
geojson_to_topojson converts a geojson file into a topojson file.
This function uses [https://github.com/topojson/topojson-server](https://git... | [
"danielmejia55@gmail.com"
] | danielmejia55@gmail.com |
229180ad1e2533852864dffc7899175eec257119 | 44175eeef9109b9879ca1318b7e73af8f50dbbc5 | /Lab2_11.py | 2ea93603a2bd578efee6485b1983ebc77fd1a73e | [] | no_license | Alhzz/Python3 | fb0dd79d8839bdfef5569958bfdbe289d30cf0aa | c20db5e6f14d4b2875846f56be55b1174fdb0eab | refs/heads/master | 2020-03-26T05:23:48.399950 | 2018-11-16T17:02:11 | 2018-11-16T17:02:11 | 144,554,764 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 637 | py | ''' FoodGrade I '''
def main():
''' Main Function '''
good = 0
good += check()
good += check()
good += check()
good += check()
print(good)
def check():
''' Input and Check '''
good = 0
num = int(input())
if 50 <= num <= 70:
good += 1
num = int(input())
if 50... | [
"Aloha_sonza@hotmail.com"
] | Aloha_sonza@hotmail.com |
adb17ca10b7a353fcc42e56c097b7fa3a4337871 | 43f0952a8e5f99e4e63d8155c27d7a3d4819bb05 | /model/decoder2.py | 7085389fbe968928e65c008c9a98ea28d2bab531 | [] | no_license | DeepLearnXMU/ABD-NMT | dc39b7f7a92d543111162958214cda800ba46766 | 833d28d0c55faf5b644e744837ac17124141736f | refs/heads/master | 2021-01-23T14:21:54.345472 | 2017-09-12T08:20:27 | 2017-09-12T08:20:27 | 102,686,231 | 35 | 9 | null | null | null | null | UTF-8 | Python | false | false | 9,157 | py | import itertools
import theano
import theano.tensor as T
import nn
import ops
from bridge import attention, map_key
class Decoder:
def __init__(self, n_src, dim_y, dim_hid, dim_key, dim_value, n_y_vocab, *args, **kwargs):
"""
:param dim_y:
:param dim_hid: dimension of decoder's hidden s... | [
"angel123goo@gmail.com"
] | angel123goo@gmail.com |
0a3c21e99a75a04a3fc14ba53e02be8c8efebdcc | 8e81186012ecbee07ad901ae9dbb79a7e3e4a72d | /Snake.py | 5cfe623c7291c3247f68f72394014d30700d457d | [] | no_license | spnarkdnark/snek | 9dbb67a47ff21c32341421debba00195fe0e8c59 | 048436e7cd578b9f80782d0902a306ece6012a60 | refs/heads/master | 2020-04-15T04:29:21.427487 | 2019-01-09T02:46:30 | 2019-01-09T02:46:30 | 164,385,526 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,892 | py | import operator
UP = (0,1)
class Snake:
"""
A Snake Object
"""
def __init__(self,body,direction):
"""
Initialize the snake with a body and direction
:param body: an array of tuples containing snakes position during game
:param direction: UP,DOWN,LEFT, or RIGHT
"... | [
"samuelfudala@gmail.com"
] | samuelfudala@gmail.com |
fe7ec225c5974261c1e5b62ab61c82217aea3869 | 50435cc917161e9feaf3bf4c4034dec317827b15 | /Comb.py | 44fbe5a67f25537a177bb7f56009cde982c30973 | [] | no_license | MirzaRaiyan/Program-For-Comb-Sort.py | a679f6b2a62c1a6b8704049205dff2c001e4160a | f3ca97bd54f7c35230ed7104c92c32061ee69686 | refs/heads/main | 2023-02-16T19:39:53.765818 | 2021-01-17T09:10:48 | 2021-01-17T09:10:48 | 330,352,379 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,164 | py | # Python program for implementation of CombSort
# To find next gap from current
def getNextGap(gap):
# Shrink gap by Shrink factor
gap = (gap * 10)/13
if gap < 1:
return 1
return gap
# Function to sort arr[] using Comb Sort
def combSort(arr):
n = len(arr)
... | [
"noreply@github.com"
] | MirzaRaiyan.noreply@github.com |
c0d01549392c14b63f25cf3ca994a4bb47d47047 | 770537437474c63f6878c26a10a5853a9687c649 | /Service/app/subscriber.py | fc7c5667b54bc22b29bbde8c6796ec4cd403f98a | [] | no_license | Makalolu/BRKACI-2945-CLUS | 89013da0a2c828abe43b2ab39f8bb85587c625ff | 197702202ca146e6c82cb39ad48fad8569d1393d | refs/heads/master | 2022-02-22T19:00:47.438095 | 2018-06-17T17:27:52 | 2018-06-17T17:27:52 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,783 | py |
import logging, sys
from .utils import (setup_logger, get_app, pretty_print, db_is_alive, init_db,
get_apic_session, get_class, subscribe,
)
# module level logging
logger = logging.getLogger(__name__)
def dns_subscriptions(db):
""" build subscription to APIC dns objects and keep consistent values in
... | [
"agossett@cisco.com"
] | agossett@cisco.com |
18e350c9f21878bc1409a1ec2b3304e103c6c660 | 528c811306faa4a34bf51fca7955b7a24ac2e30c | /Python/Triangle.py | da2d8206529278895eea530d8c2d8f3d4bc40ef4 | [] | no_license | ganjingcatherine/LeetCode-1 | 1addbd7e4d9254a146601f9d5e28b8becb8235a6 | 488782d3f1e759da2d32b4e82dbf55b96c431244 | refs/heads/master | 2021-05-11T03:15:16.810035 | 2016-02-06T06:19:18 | 2016-02-06T06:19:18 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,529 | py | """
Given a triangle, find the minimum path sum from top to bottom. Each step you may move to adjacent numbers on the row below.
For example, given the following triangle
[
[2],
[3,4],
[6,5,7],
[4,1,8,3]
]
The minimum path sum from top to bottom is 11 (i.e., 2 + 3 + 5 + 1 = 11).
Note:
Bonus point if you... | [
"anthonyjin0619@gmail.com"
] | anthonyjin0619@gmail.com |
3396d6c761448a379ff7daa72b1bf3da2deb0c49 | 00d7e9321d418a2d9a607fb9376b862119f2bd4e | /utils/appendix_figure_renderer.py | 3b234fb896d68ad1a3003e3c74ea40a594132ff7 | [
"MIT"
] | permissive | baluneboy/pims | 92b9b1f64ed658867186e44b92526867696e1923 | 5a07e02588b1b7c8ebf7458b10e81b8ecf84ad13 | refs/heads/master | 2021-11-16T01:55:39.223910 | 2021-08-13T15:19:48 | 2021-08-13T15:19:48 | 33,029,780 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 10,405 | py | #!/usr/bin/env python
import os
from collections import OrderedDict
from pims.files.pdfs.pdfjam import PdfjamCommand
from pims.files.pdfs.pdftk import convert_odt2pdf, PdftkCommand
from pims.files.pdfs.pdfjam import CpdfScalePageCommand, CpdfStampCommand
from pims.files.utils import listdir_filename_pattern
from appy.... | [
"silversnoopy2002@gmail.com"
] | silversnoopy2002@gmail.com |
6c3a45b7e30af37035ddeb17f4a158de42f658c1 | af3b8f03ac53cafada0394a46306bdca5d4c8fce | /timaknormblog/asgi.py | 8ba0d46a0fdca52732f7375adc7b7dee409c9a2b | [] | no_license | timaknormtak/timaknormblog-project | 95869bc9d6186621e806a512c874beb5bec8c2f9 | 34c346cafa64196a2e80842d8569250b5b93cf97 | refs/heads/main | 2023-01-19T10:06:17.370618 | 2020-11-23T06:37:56 | 2020-11-23T06:37:56 | 312,988,272 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 403 | py | """
ASGI config for timaknormblog project.
It exposes the ASGI callable as a module-level variable named ``application``.
For more information on this file, see
https://docs.djangoproject.com/en/3.1/howto/deployment/asgi/
"""
import os
from django.core.asgi import get_asgi_application
os.environ.setdefault('DJANGO... | [
"timakov.1308@gmail.com"
] | timakov.1308@gmail.com |
e15fa7f87879efa8feb072d967fe6fed1b84646c | be4f4362cca2761706e0b23321f7c456f78e49fc | /Algorithms/Quick Union-Find - Application (Percolation).py | 59c8362d733345a4b746f4645dde3628f3dda027 | [] | no_license | Suhail727/GeneralProgramming | 8947ded48c970fa8975445523c42e1d0371d0c44 | 80fb482960f5bd1cdace78b552d3cd08a914bd72 | refs/heads/master | 2021-11-28T07:12:51.198277 | 2021-10-06T15:38:17 | 2021-10-06T15:38:17 | 167,709,868 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,908 | py | #-----------------------------------------------------------------------
# percolation.py
#-----------------------------------------------------------------------
import stdio
import stdarray
#-----------------------------------------------------------------------
# isOpen is a matrix that represents the open sites ... | [
"noreply@github.com"
] | Suhail727.noreply@github.com |
f6e1d812b7b8da141c5f17cca2a99a1ec105bdae | 7b6b96be5e7dbc3cdda900f11614c161c2821200 | /lib_wp_remover_2014_10_24/get_items.py | ecdb77af4fb571e2ecb443396f686174a2d6fc33 | [] | no_license | polymorphm/wp-remover | 8c59715ebe63969ca467de93c2d8d549eb26c310 | e1efb8a458991c9774dc3c3c4b2c7a7d6450245c | refs/heads/master | 2021-01-01T16:13:46.928136 | 2014-10-24T16:03:23 | 2014-10-24T16:03:23 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,146 | py | # -*- mode: python; coding: utf-8 -*-
#
# Copyright (c) 2012, 2013, 2014 Andrej Antonov <polymorphm@gmail.com>
#
# Permission is hereby granted, free of charge, to any person obtaining a copy
# of this software and associated documentation files (the "Software"), to deal
# in the Software without restriction, includin... | [
"polymorphm@gmail.com"
] | polymorphm@gmail.com |
717bca05b8a8d2018645de701f06918e166c9a41 | 7d8f781b4d20cb61f9acbad0be3af677183f2a45 | /main.py | 4a68b7219b6e8bcc17e332bd5365bebf4bb300d2 | [] | no_license | viicrow/yes_no | a0985d7243180299b5d10bc58f4375ef607046d2 | 783d0e7ce596dbddaadaeb14536b87db6d7ad709 | refs/heads/master | 2023-04-27T08:59:09.380913 | 2021-05-20T22:23:32 | 2021-05-20T22:23:32 | 369,353,575 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,136 | py |
# functions go here...
def yes_no(question):
valid = False
while not valid:
response = input(question).lower()
if display_instructions == "yes" or display_instructions == "y":
response = "yes"
return response
elif display_instructions == "no" or display_instructions == "n":
resp... | [
""
] | |
ffc250bf877ff503e92d4c78eb2aec0583876523 | 741df1fd9f835f86e864fe82d964c90e6e6a7d9a | /accounts/migrations/0001_initial.py | 09a59efd72c6d66b999ae43d4c685981fd6a534e | [] | no_license | RishavRaj19/OnlineExam | 8dd6c09cd643bd915eaec8498567286896fc064e | 358f6f0a34928fa1abe075d65083d8bbbe4ddef8 | refs/heads/master | 2022-11-13T00:32:51.617367 | 2020-07-03T16:37:10 | 2020-07-03T16:37:10 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,946 | py | # Generated by Django 2.2.13 on 2020-07-02 21:32
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
initial = True
dependencies = [
]
operations = [
migrations.CreateModel(
name='Student',
fields=[
... | [
"rishavraj.sbg@gmail.com"
] | rishavraj.sbg@gmail.com |
fc88ba2c959cbb2126c1a6c8c7c8164e058a2dd8 | af25301cb505594b63dba2753c394e1660263e36 | /plot_ccf.py | 8360a3f180557cc2540ec7d5ad5fa753d270b01a | [] | no_license | nzarifi/tsmodels | 03229338d510daea3002bc03cabdc5c70bba658c | 243b8ff730d7c8817d2a3f292c040b8762ed2032 | refs/heads/master | 2023-02-02T01:02:12.035018 | 2020-12-15T13:25:57 | 2020-12-15T13:25:57 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,590 | py | import numpy as np
import pandas as pd
from math import sqrt
import matplotlib.pyplot as plt
def plot_ccf(x, y, lags=20, figsize=(14,6)):
'''
This function plots the cross correlation between two time series.
'''
xname = pd.DataFrame(x).columns.values[0]
yname = pd.DataFrame(y).colu... | [
"noreply@github.com"
] | nzarifi.noreply@github.com |
870f951e60904860957c4cbf1986c8aaa11fa262 | 7dab00e63b7193010344a0f05e0cc641d7091f5f | /students/david_russo/lesson07/RDBMS/RDBMS/personjobdepartment_model.py | 8b75c2d98afa74545922c5fed997878bc21a5157 | [] | no_license | aurel1212/Sp2018-Online | 9307e872c14c5ddd795bdc738b325de087895d55 | 263685ca90110609bfd05d621516727f8cd0028f | refs/heads/master | 2020-04-05T18:35:49.761140 | 2018-06-19T18:24:27 | 2018-06-19T18:24:27 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,855 | py | """
Simple database example with Peewee ORM, sqlite and Python
Here we define the schema
Use logging for messages so they can be turned off
"""
import logging
from peewee import *
logging.basicConfig(level=logging.INFO)
logger = logging.getLogger(__name__)
logger.info('One off program to build the classes... | [
"david.luiz.russo@gmail.com"
] | david.luiz.russo@gmail.com |
d7da85ffc7cbcb65f57bb197ce31ee9419b6cef7 | 806dba902649dbc8c26db0bc105b26217c9f5f45 | /src/react_ssr/mixins/default_state.py | ffabcb8706782061d655ce9672c26501e847b5c3 | [
"BSD-2-Clause"
] | permissive | urantialife/react-ssr-backend | b03ec62fd1b745e82ac8f7a7d239de5c4dd42be4 | f4d094fbd15ff1eb2178aeac0bf9bec8c70414f7 | refs/heads/master | 2020-06-09T06:54:23.345503 | 2019-06-03T16:23:55 | 2019-06-03T16:23:55 | 193,395,009 | 1 | 0 | BSD-2-Clause | 2019-06-23T20:59:54 | 2019-06-23T20:59:54 | null | UTF-8 | Python | false | false | 1,462 | py | import requests
from ..exceptions import GetDefaultStateError
from ..settings.default_state import (
DEFAULT_STATE_TIMEOUT,
DEFAULT_STATE_URL,
DEFAULT_STATE_HEADERS
)
class DefaultStateMixin(object):
default_state_timeout = DEFAULT_STATE_TIMEOUT
default_state_url = DEFAULT_STATE_URL
default_... | [
"16756928+alexseitsinger@users.noreply.github.com"
] | 16756928+alexseitsinger@users.noreply.github.com |
96f235f5684df134779fb924924785ed85bf2164 | e7b30d912e69f7b1d6a6f774ae4573c06859af2d | /Htube/wsgi.py | a2a9de939e8a4b8789ff4e74879fef8dc28be112 | [] | no_license | haiderAli62/Htube-video-streaming-django | ff4f2eb3b1a204caa5920f741f8538a90f201f88 | 3400ddb9ae7689a329f2932c20e25f051ddc6be2 | refs/heads/master | 2020-06-15T05:09:42.340309 | 2019-07-04T09:59:24 | 2019-07-04T09:59:24 | 195,211,443 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 403 | py | """
WSGI config for Htube project.
It exposes the WSGI callable as a module-level variable named ``application``.
For more information on this file, see
https://docs.djangoproject.com/en/2.1/howto/deployment/wsgi/
"""
import os
from django.core.wsgi import get_wsgi_application
os.environ.setdefault('D... | [
"noreply@github.com"
] | haiderAli62.noreply@github.com |
3d98ad2af60c8f5391c53f249b2be5d49e4a5712 | 28df46f33feb507577e41f1140334d27f14f510c | /forgerock-auth-filters/branches/1.3/forgerock-authn-filter/forgerock-jaspi-robot-tests/variables.py | 564207c3a023a5345207442a7d10072b5d4d1b10 | [] | no_license | deepakchanalia/forgerock-commons | 3dc5c0ac6c541ac2f5fbbe8fdf79b21e90bc8a5e | dd83127c17428e9397a568b3eaac46a72d1aa087 | refs/heads/master | 2021-01-11T21:00:12.193770 | 2015-07-23T22:46:14 | 2015-07-23T22:46:14 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,118 | py | ###########################
# MANDATORY CUSTOMISATION #
###########################
# location of JASPI runtime jar
JASPI_TEST_SERVER_WAR_PATH = '/Users/Phill/ForgeRockDev/tmp-old-repos/forgerock-commons-auth-filters-1.3.0/forgerock-commons-auth-filters-1.3.0/forgerock-authn-filter/forgerock-jaspi-test-server/target/j... | [
"phillcunnington@ca16bcf9-9eb2-46e4-97b8-9b07c30c95dc"
] | phillcunnington@ca16bcf9-9eb2-46e4-97b8-9b07c30c95dc |
81e95253e7fc79ef1c6289862335413d5a76dbba | 7d38fb1baff08bb2f438f4b2c2972ef506bafcf9 | /cbi.py | 0923fc86360da717b7b2cb9bf4c1330cc7dafda5 | [] | no_license | rendinam/CBPM | a301eab02a9925782d02ecae99a2361a60646c4e | d3662f1279848da0bf8aea660ca8b062c3e47c17 | refs/heads/master | 2023-03-07T00:23:26.680674 | 2021-02-09T17:45:05 | 2021-02-09T17:45:05 | 337,477,219 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,502 | py | #----------------------------------------------
# Automatically generated python3 module code
# for core communication data structures.
#----------------------------------------------
from cbi_core import *
#---------------------------------------
# Necessary constants imported from
# header files.
#-----------------... | [
"matt.rendina@gmail.com"
] | matt.rendina@gmail.com |
ac914612ce2117c1765de9ca6321750ef3079aef | 838b09e0e25280cccf754e788af8febbfb1275f7 | /app/__init__.py | f460a89951f37c5aa6fabc5ec077d2699df1e3c1 | [] | no_license | Pincenti/fakebook-march | acf1dcb0cb16770353026f3e7f112709cda8bc5e | 46be080bcc26ea661817bcb295804ff443a02b6d | refs/heads/main | 2023-04-09T05:06:16.000529 | 2021-04-23T19:02:10 | 2021-04-23T19:02:10 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 75 | py | from flask import Flask
app = Flask(__name__)
from .import routes, models | [
"derekh@codingtemple.com"
] | derekh@codingtemple.com |
68b03c73feb62075825cdf3e27d8073937e5af7c | 79ecfdc98e9d44cf9c7d698f057a66f2c2cad2f7 | /main.py | 8e13e343f031c4e5d9029b68c43e901c06e96f4b | [] | no_license | bohunicka14/Automorphism-and-symmetries | d099a5be4d8aa02ef2db3c2b5449dfd7baafe666 | c3307fe1db87f81026c6250c4988d93284939b8a | refs/heads/master | 2021-07-24T16:07:37.509945 | 2019-03-27T15:11:24 | 2019-03-27T15:11:24 | 174,871,729 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,678 | py |
class Node(object):
def __init__(self, value, children = []):
self.value = value
self.children = children
def __str__(self, level=0):
ret = "\t"*level+repr(self.value)+"\n"
for child in self.children:
ret += child.__str__(level+1)
return ret
def is_leaf... | [
"bohunicka.ingrid@gmail.com"
] | bohunicka.ingrid@gmail.com |
03b2064a1b169b166d88744f2437bf69ef5cbf8d | c7e37db2fb70358d8ad178efa0a2862161ef1af4 | /backend/migrations/versions/522c2917c182_.py | fa4ddf2deb33dd7ea6d5cc72a5992aaabd1e84c4 | [
"MIT"
] | permissive | JohnDamilola/URL-Shortener-2.0 | 9ef2b5af096b842f0d1763a143bf840908c98c82 | 7413928b7de6acb0230c09e5d3eaa748ebb6287b | refs/heads/main | 2023-04-14T00:09:41.708237 | 2022-12-06T03:04:01 | 2022-12-06T03:04:01 | 561,389,222 | 1 | 1 | MIT | 2022-12-04T20:09:51 | 2022-11-03T15:29:17 | TypeScript | UTF-8 | Python | false | false | 1,865 | py | """empty message
Revision ID: 522c2917c182
Revises: ca5354b4cc9e
Create Date: 2022-11-23 12:52:31.176215
"""
from alembic import op
import sqlalchemy as sa
from sqlalchemy.dialects import postgresql
# revision identifiers, used by Alembic.
revision = '522c2917c182'
down_revision = 'ca5354b4cc9e'
branch_labels = None... | [
"johndamilola03@gmail.com"
] | johndamilola03@gmail.com |
377669007b7547803f582137ed3be4c23f4a71d3 | f7b1bd000d9483343f915f057ac8e36a2de78334 | /experiment-2/BiDirectionalLSTM.py | cc69df9abe5f2ea80a07b3795efeb7b9a28f60fe | [] | no_license | spencergritton/Time-Series-Predictions | 511ded04f88e296eb4d30b98f58ac29c9d7e4668 | 76dcc7c61cd61b7c231796abee6ea5b3c4f870d8 | refs/heads/master | 2021-09-28T06:01:57.439727 | 2020-05-13T04:07:56 | 2020-05-13T04:07:56 | 251,520,448 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,916 | py | import os
import os.path
import numpy as np
from matplotlib import pyplot as plt
import matplotlib.patches as mpatches
import pickle
import time
import random
import pandas as pd
import tensorflow as tf
from tensorflow.keras.models import Sequential, Model
from tensorflow.keras.layers import LSTM, Dense, Bidirectional... | [
"SpencerGritton@Spencers-MBP.lan"
] | SpencerGritton@Spencers-MBP.lan |
23946605d8fdc78913a7ec206ccf8d74fde4c824 | c9ce0cf9c193ebe35c31b39bba11d698a950bbf1 | /nico/test_nico.py | 384754e971255ba9dcd2e6bbf432961aff323068 | [] | no_license | KhlopotovAI/codewars-py | 93f89e3f62edd92acf76faa7ba212029206cc4f6 | 16a1eee25f35f7ccaead595e011963f0911dda4c | refs/heads/master | 2020-04-26T04:21:32.730010 | 2019-07-13T07:17:29 | 2019-07-13T07:17:29 | 173,299,121 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 486 | py | from unittest import TestCase
from .kata import nico
class TestNico(TestCase):
def test_nico(self):
self.assertEqual("cseerntiofarmit on ", nico("crazy", "secretinformation"))
self.assertEqual("abcd ", nico("abc", "abcd"))
self.assertEqual("2143658709", nico("ba", "1234567890"))
... | [
"akhlopotov@list.ru"
] | akhlopotov@list.ru |
b63d3a9b7793acce97e3ced2c4196729f5895884 | 22e2a4e9392f8a33d18823ef039220ffdb5856d4 | /basic/wordcount.py | 423ee85665a2f24565d5cb65ec9f8daccfa5a920 | [
"Apache-2.0"
] | permissive | inyoka/google-python-exercises | 176961a2b69132d068c2c1731101ed26b9bde98b | 466b532a13d4634144bcdce361b1619a50b0152e | refs/heads/master | 2021-08-24T13:21:01.286377 | 2017-11-21T08:09:09 | 2017-11-21T08:09:09 | 111,513,334 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,166 | py | #!/usr/bin/python -tt
# Copyright 2010 Google Inc.
# Licensed under the Apache License, Version 2.0
# http://www.apache.org/licenses/LICENSE-2.0
# Google's Python Class
# http://code.google.com/edu/languages/google-python-class/
"""Wordcount exercise
Google's Python class
The main() below is already defined and comp... | [
"simonmarkholland@gmail.com"
] | simonmarkholland@gmail.com |
08e5a9b538fd82c4fcfea17f6b179b383278f0a9 | 3499ea55947cb8d71202a1ea795af1480ed61f32 | /venv/Scripts/pip3.7-script.py | 17fc0769f266a67dd72333fd5491f6596b371936 | [] | no_license | qianhuideng/BankCard | 67ef424940f5f059cf2d0de41a2544cb84ac899a | 9b898b2cc1d71088ad1230ca8459a65cc3e78202 | refs/heads/master | 2020-12-04T08:53:31.917798 | 2020-10-10T02:23:23 | 2020-10-10T02:23:23 | 231,702,502 | 1 | 0 | null | null | null | null | WINDOWS-1256 | Python | false | false | 432 | py | #!C:\Users\22018\Desktop\deng\بي¼±\BankCard\venv\Scripts\python.exe -x
# EASY-INSTALL-ENTRY-SCRIPT: 'pip==19.0.3','console_scripts','pip3.7'
__requires__ = 'pip==19.0.3'
import re
import sys
from pkg_resources import load_entry_point
if __name__ == '__main__':
sys.argv[0] = re.sub(r'(-script\.pyw?|\.exe)?$', '',... | [
"2201891435@qq.com"
] | 2201891435@qq.com |
b2a671dfca5e7fc447b993c10a529875dc54603f | c7061fb106b801c12fb40ff331d927a5bb24da80 | /BasicExerciseAndKnowledge/w3cschool/n16_format_datetime.py | b0f4e62a46fdd8c480a544be789ecdafb00a1d3a | [
"MIT"
] | permissive | Jonathan1214/learn-python | 34e6b5612beeb1a46b5964b0a4e306656355fe84 | 19d0299b30e953069f19402bff5c464c4d5580be | refs/heads/master | 2020-03-27T09:03:16.785034 | 2018-08-31T02:48:34 | 2018-08-31T02:48:34 | 146,310,191 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 377 | py | #coding:utf-8
# 题目:输出指定格式的日期
import time
import datetime
# 目的在于熟悉这个模块
print time.ctime() # localtime
print time.asctime(time.localtime())
print time.asctime(time.gmtime()) # gmt
print datetime.datetime(2018, 8, 12)
# print datetime.tzinfo
print datetime.date.today()
print datetime.date.fromtime... | [
"jonathan1214@foxmail.com"
] | jonathan1214@foxmail.com |
bcf3423ae08422d25b002fef9f89225e22e04cd2 | f1cf923e6e819edf2444d3ae74e1f400415075ab | /dftbpp.py | 5ee69ec3b24091c6bc1b8b5edc70800d173cfd54 | [] | no_license | fbonafe/realtimedftb | f62b66883100f2161bb3aace70ef8edfb23d2c21 | 7e186bd03ac058751ec85799a94c1f04f5c62841 | refs/heads/master | 2020-03-25T00:33:31.114419 | 2018-08-01T18:31:11 | 2018-08-01T18:31:11 | 143,192,312 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 10,583 | py | import numpy as np
import os
class mycoords:
""" Object to accumulate coordinates, each in an (natoms x nsteps) array"""
def __init__(self, x, y, z, name, time=None, vels=None):
self.name = name
self.x = x
self.y = y
self.z = z
self.nframes = x.shape[1]
self.nato... | [
"fbonafe@unc.edu.ar"
] | fbonafe@unc.edu.ar |
85baa7b9dbc58edbbe2aa259e9295d59cbff831e | c7d98beb689410cbba2c712a01c25863f267b5dc | /scripts/python/experiments/cocktail_party/postprocessing/results_summary_helpers.py | de9dd4f0f44dc5b0a55a88047c2b7567c76adab6 | [] | no_license | ml4ai/hamlet_experiment_py2 | 2b8d5b21e9c3c62bc17409da4971869aaf13f705 | 2d49f797d0ee0baa0447e0965468e7c15e796bb7 | refs/heads/master | 2021-03-27T11:41:43.494446 | 2017-11-06T14:31:18 | 2017-11-06T14:31:18 | 61,496,702 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 4,207 | py | __author__ = 'clayton'
import collections
import os
import sys
import prettytable
from utilities import util
def append_data_to_dict(d, data_set_name, data_set_LT, data_set_LT_num, value):
# print d
if data_set_name not in d:
d[data_set_name] = collections.OrderedDict()
d[data_set_name][dat... | [
"claytonm@email.arizona.edu"
] | claytonm@email.arizona.edu |
259e4f08f748d01aa87961620832501edc5c97b5 | 473c5ab1373df90836a5ce127f7c71209464603b | /Machine learning/Decision Tree/12.6.Bagging.py | 36cd3cff03c4749b86a734d97d994af5049f39d5 | [] | no_license | LN512/hello-liu | 025b7f47e8070fd0290b413a92721829fc30576d | 77c94870af9a0b66d6b0f179a61a760fe0985f6f | refs/heads/master | 2021-06-16T12:52:08.171134 | 2021-01-12T01:25:09 | 2021-01-12T01:25:09 | 89,233,352 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,988 | py | # /usr/bin/python
# -*- encoding:utf-8 -*-
import numpy as np
import matplotlib.pyplot as plt
import matplotlib as mpl
from sklearn.linear_model import RidgeCV
from sklearn.ensemble import BaggingRegressor
from sklearn.tree import DecisionTreeRegressor
from sklearn.pipeline import Pipeline
from sklearn.prepr... | [
"noreply@github.com"
] | LN512.noreply@github.com |
c7a04b037644a21f6b2eb0ec0be6fbe5139ab9fe | d029f315bc22fd48566df819ec8f5e28b2c11cbc | /wave_app/uploader/urls.py | 59824ba2cbae2ad55ab4547d4731a1136450c775 | [] | no_license | Onjrew/se-challenge | 35a9fbc7a05d39c9a2460a00bc32047beed9c420 | c18e46a7198511c9bc1ddc40c9b80e772bd15287 | refs/heads/master | 2020-06-12T16:03:03.294338 | 2016-12-07T03:31:48 | 2016-12-07T03:31:48 | 75,795,894 | 0 | 0 | null | 2016-12-07T03:32:45 | 2016-12-07T03:32:45 | null | UTF-8 | Python | false | false | 299 | py | from django.conf.urls import url
from . import views
app_name = 'uploader'
urlpatterns = [
url(r'^$', views.index, name='index'),
url(r'^upload', views.upload, name='upload'),
url(r'^totals', views.totals, name='totals'),
url(r'^parse_csv', views.parse_csv, name='parse_csv'),
]
| [
"andrew.scott.ferguson@gmail.com"
] | andrew.scott.ferguson@gmail.com |
93fcbf474fda2d35b532f00d1d4261cb7d961531 | 145c9faee52e69f1f7b1cf6b9ac84facf7819911 | /userSorter/user_file_builder.py | faa2b4a28e1e66eb4218d67769ca900d976cb69a | [] | no_license | zafodB/HealthData | 63ddde8efa6e6ceb2f924502b6eb714381d4e935 | 2359b9997816c6b5ae39879641e99eb0c09384be | refs/heads/master | 2022-04-04T18:05:43.394547 | 2020-01-29T20:07:54 | 2020-01-29T20:07:54 | 201,798,022 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,096 | py | '''
Structure:
{
"username":"someone",
"url":"123465",
"status":"very eHealthy"
"weburl": "http://..."
"posts":{
"342823":{
"date":"23-11-2011",
"title":"pregnancy problem",
"text":"this is a sample post",
"category":"pregnancy",
"status":"newPost"
... | [
"filiplama@gmail.com"
] | filiplama@gmail.com |
49f0bec871aede1626dd9b0823050f24018b7413 | c703b8ac3b5545857f6c95efa2d61eaf7a664021 | /iPERCore/tools/human_digitalizer/deformers/__init__.py | e0d6c7b177b6946f7ec4806e5c0de347eece34a1 | [
"MIT",
"LicenseRef-scancode-unknown-license-reference",
"LicenseRef-scancode-proprietary-license",
"Apache-2.0",
"BSD-2-Clause"
] | permissive | iPERDance/iPERCore | d29681d229b3098b3517b1abf4f7ea65f579de73 | fcf9a18ffd66bf3fdd3eea4153a3bc4785131848 | refs/heads/main | 2023-07-30T15:04:15.835396 | 2023-04-12T14:21:23 | 2023-04-12T14:21:23 | 313,664,064 | 2,520 | 339 | Apache-2.0 | 2023-05-12T03:26:52 | 2020-11-17T15:36:25 | Python | UTF-8 | Python | false | false | 1,117 | py | # Copyright (c) 2020-2021 impersonator.org authors (Wen Liu and Zhixin Piao). All rights reserved.
import torch
from .sil_deformer import SilhouetteDeformer
from .clothlinks_deformer import ClothSmplLinkDeformer
def run_sil2smpl_offsets(obs_sils, init_smpls, image_size, device=torch.device("cuda:0"),
... | [
"liuwen@shanghaitech.edu.cn"
] | liuwen@shanghaitech.edu.cn |
322b370d6d03d1c9bfafe46a87d7b9c8a55eaae6 | ce0f8956c4c308c67bd700d31fe8d5a17b16ac08 | /Python3/src/23 Miscellaneous Topics/PDF Manipulation/02_createWatermark.py | b055027b0fc51eb03efc7fb7e50e4af5484af4a7 | [] | no_license | seddon-software/python3 | 795ae8d22a172eea074b71d6cd49d79e388d8cc6 | d5e6db1509a25c1a3040d5ae82d757539a2ff730 | refs/heads/master | 2021-07-10T15:48:31.893757 | 2020-07-16T20:29:22 | 2020-07-16T20:29:22 | 175,872,757 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 554 | py | from reportlab.pdfgen import canvas
point = 10
inch = 72
TEXT = "watermark"
def make_pdf_file(output_filename):
title = output_filename
h = 8.5 * inch
v = 11 * inch
grey = 0.9
c = canvas.Canvas(output_filename, pagesize=(h, v))
c.setStrokeColorRGB(0,0,0)
c.setFillColorRGB(grey, grey, grey... | [
"seddon-software@keme.co.uk"
] | seddon-software@keme.co.uk |
6117d1e662033b69ada4163ef95dad63dd91fca1 | 059c3bb5e0e8552f09768c3442b7af8614ca72f6 | /Lab7/CodingBat/Warmup-1/sum_double.py | 0bfcd81918208702cae91b103672123c1d6e5f38 | [] | no_license | tdinaraa/WebDev | 04ac88369cdf14e199841caf08a90723e73b4ccf | b99bdb93756b6a63b2835c0eee5b8d24309f7e00 | refs/heads/master | 2023-01-22T08:32:06.405670 | 2020-04-22T04:32:53 | 2020-04-22T04:32:53 | 240,984,305 | 0 | 0 | null | 2023-01-07T21:54:04 | 2020-02-16T23:41:57 | null | UTF-8 | Python | false | false | 90 | py | def sum_double(a, b):
sum = a + b
if a == b:
sum = sum * 2
return sum | [
"45028995+tdinaraa@users.noreply.github.com"
] | 45028995+tdinaraa@users.noreply.github.com |
8ac2ee19d3ffee62c28321a1125e6adee92ee362 | 6f15695787ca5fa482c0b95d79b24ad787e75e18 | /optimization.py | 153d71dde50e6e50f06c2ca4dfc4454db3df2e3e | [] | no_license | ingez/Programming_Collective_Intelligence | 04925e6776f3048ec8de452323dae4bf9ff2fd22 | d3062831a838f8546fb3ef05e5d051e5ccd3a480 | refs/heads/master | 2021-01-10T09:47:48.504799 | 2015-12-07T09:23:51 | 2015-12-07T09:23:51 | 44,954,589 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,168 | py | import time
import random
import math
people = [('Seymour', 'BOS'),
('Franny', 'DAL'),
('Zooey', 'CAK'),
('Walt', 'MIA'),
('Buddy', 'ORD'),
('Les', 'OMA')]
#LaFuradia AirPort in NewYork
destination = 'IGA'
flights = { }
for line in file('schedule.txt'):
origin, dest, depart, arrive, price = line.strip().... | [
"hznge@qq.com"
] | hznge@qq.com |
a1f44f892947d2880844171869bd61cf7fc59208 | 50cc8ba16cf08ecd5850440d34058c1abb05157b | /xml-parser-barrapunto.py | dda7852af16da98776f48ee23a4223e73602785b | [] | no_license | imfar/X-Serv-XML-Barrapunto | 243c648662a879689445156de9ccb37a9beb5197 | d796ab9e0f7eb15a10893d9f991b9fafe457d303 | refs/heads/master | 2020-03-13T14:32:59.020377 | 2018-04-26T18:25:44 | 2018-04-26T18:25:44 | 131,160,679 | 0 | 0 | null | 2018-04-26T13:35:24 | 2018-04-26T13:35:23 | null | UTF-8 | Python | false | false | 1,691 | py | #!/usr/bin/python
# -*- coding: utf-8 -*-
#
# Simple XML parser for the RSS channel from BarraPunto
# Jesus M. Gonzalez-Barahona
# jgb @ gsyc.es
# TSAI and SAT subjects (Universidad Rey Juan Carlos)
# September 2009
#
# Just prints the news (and urls) in BarraPunto.com,
# after reading the corresponding RSS channel.
... | [
"far9508@gmail.com"
] | far9508@gmail.com |
71bbfff45e7ae85a6330b07e06dfb3bae056f560 | c7e9ee96c2a890aff28a0370146007d1ee62150e | /moviesite/analysitcs/models.py | fccd0d685a19a5e498813f58dce46017ddcd0428 | [] | no_license | ishikawa407/Moviesite | 768761724b4519d4ee2d4990adbf92d646f76573 | 56d2f04be9dc8b2f828a1a2444866ee90d726ed2 | refs/heads/master | 2022-12-10T10:15:46.109292 | 2019-07-14T15:27:37 | 2019-07-14T15:27:37 | 196,013,042 | 0 | 0 | null | 2022-12-08T01:22:36 | 2019-07-09T13:20:52 | HTML | UTF-8 | Python | false | false | 683 | py | from django.db import models
class Rating(models.Model):
user_id = models.CharField(max_length=16)
movie_id = models.CharField(max_length=16)
rating = models.DecimalField(decimal_places=2, max_digits=4)
rating_timestamp = models.DateTimeField()
type = models.CharField(max_length=8, default='explic... | [
"shimeng407@gmail.com"
] | shimeng407@gmail.com |
070cbe186db031be4d2e8086716849f26489871d | c3eaf59008279c05e4b7c72169ba3be762f5cce6 | /.venv/lib/python3.7/site-packages/sampledata/mixins/text_mixin.py | 739fae95a255c3a3fe117727dafae7e0ebb21a41 | [] | no_license | bogdanKukliuk/niceTest | b5e53fb9f313e3746dc93650eee9fb8caa74dd3d | 6c4ba8399959e6c0bca6b5a44a4914990f644773 | refs/heads/main | 2023-03-28T08:35:50.493460 | 2021-03-17T21:15:50 | 2021-03-17T21:15:50 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,537 | py | import random
import string
from ..exceptions import ParameterError
from sampledata import loremipsum
class TextMixin(object):
def word(self):
"""Random text with 1 word."""
return loremipsum.words(1, common=False)
def words(self, min_words=1, max_words=5):
"""Random text with 1 word... | [
"ec2-user@ip-172-31-20-100.us-east-2.compute.internal"
] | ec2-user@ip-172-31-20-100.us-east-2.compute.internal |
86cf72e4ffc437f064a8671c622efbf1c3f9babd | 5c34abe10630b23da8ba7d1cbce38bda53a4b6fa | /RootIo/SConscript | b7f1d62057e6edcdd59cf22dde00c661fb1f03ec | [] | no_license | fermi-lat/GlastRelease-scons-old | cde76202f706b1c8edbf47b52ff46fe6204ee608 | 95f1daa22299272314025a350f0c6ef66eceda08 | refs/heads/master | 2021-07-23T02:41:48.198247 | 2017-05-09T17:27:58 | 2017-05-09T17:27:58 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,046 | # -*- python -*-
# $Header$
# Authors: Heather Kelly <heather@milkyway.gsfc.nasa.gov>, David Chamont <chamont@poly.in2p3.fr>
# Version: RootIo-26-01-03
Import('baseEnv')
Import('listFiles')
Import('packages')
progEnv = baseEnv.Clone()
libEnv = baseEnv.Clone()
libEnv.Tool('addLinkDeps', package='RootIo', toBuild='comp... | [
""
] | ||
564e7ae6d142c78bcd5de942b9a6a69facdfb9d0 | 8e0cdf235cd82e422c62fee3e6d044e4f4ee7614 | /feedback/migrations/0004_remove_translation.py | f0d087297b5ccce43ab6fa90c2ef41ed6fab4ac5 | [
"BSD-3-Clause"
] | permissive | stevecassidy/signbank-feedback | 4ae1c58a95a27428d11ef4a692c52738e9a4fb6f | d4cb8a7f445ca42c90a69d565d43875f50251aa8 | refs/heads/master | 2022-01-14T05:07:31.474605 | 2022-01-12T04:18:42 | 2022-01-12T04:18:42 | 78,930,468 | 1 | 1 | null | 2017-01-14T09:10:43 | 2017-01-14T09:10:43 | null | UTF-8 | Python | false | false | 407 | py | # -*- coding: utf-8 -*-
# Generated by Django 1.10 on 2017-09-17 13:44
from __future__ import unicode_literals
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('feedback', '0003_map_translation'),
]
operations = [
migrations.RemoveField(
... | [
"steve.cassidy@mq.edu.au"
] | steve.cassidy@mq.edu.au |
4944013970022784952c3f3c979c04980c1ff25f | bc404af610ca8cd55222c5983f15592e284e25c6 | /car/migrations/0004_auto_20200814_1432.py | 34436eb0082a73f4f654ac96b37f53b23d44e02e | [] | no_license | mmgl/DjangoCars | a748cc29f44ab9bc9d093b56835c2760bae902f6 | 841f5c1a038a422115a899d825ddc182e263bc0c | refs/heads/master | 2022-12-06T19:04:54.505371 | 2020-08-23T22:12:33 | 2020-08-23T22:12:33 | 280,905,038 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 419 | py | # Generated by Django 3.0.8 on 2020-08-14 11:32
import ckeditor_uploader.fields
from django.db import migrations
class Migration(migrations.Migration):
dependencies = [
('car', '0003_images'),
]
operations = [
migrations.AlterField(
model_name='car',
name='detail... | [
"muhammedmustafagull@gmail.com"
] | muhammedmustafagull@gmail.com |
3b73a76ea650e307485d4229dbb14ddf636707d2 | 82916e7e06fd55a9326560de0aeb31e213a0172e | /ConversorTemCaFui.pyw | 782bf96c4e5768759d31e85897273f3997c1768b | [] | no_license | pazmanuelo/PyQt-Converterapp | 54e6f87669b9b3e345fa5999bebdfd0d625e21a5 | 18c08a4c2ccdf04167072b107bb7c0e93f3c8a98 | refs/heads/master | 2021-01-12T09:16:16.306407 | 2016-12-19T20:39:05 | 2016-12-19T20:39:05 | 76,812,529 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 957 | pyw | import sys
from PyQt5.QtWidgets import QApplication, QMainWindow, QMessageBox, QLineEdit, QLabel, QPushButton, QGridLayout
from PyQt5 import uic
from PyQt5.QtGui import QFont
from PyQt5.QtCore import Qt
class Ventana(QMainWindow):
def __init__(self):
QMainWindow.__init__(self)
uic.loadUi("... | [
"noreply@github.com"
] | pazmanuelo.noreply@github.com |
46f4c190ec307f397e873c46ac6abca7c00b6cba | e616ea35ead674ebb4e67cae54768aaaeb7d89c9 | /project/alma/disciplines/migrations/0001_initial.py | cd2f83a805a6561b60a83706fe7cba9576acbc37 | [] | no_license | VWApplications/VWAlmaAPI | 12bb1888533cf987739b0e069737afa6337141e1 | 3a8009b17518384c269dfee3c8fe44cbe2567cc0 | refs/heads/master | 2022-04-02T10:26:49.832202 | 2020-02-12T04:46:31 | 2020-02-12T04:46:31 | 161,098,215 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,490 | py | # Generated by Django 2.1.4 on 2019-09-21 20:17
from django.conf import settings
import django.core.validators
from django.db import migrations, models
import django.db.models.deletion
import re
class Migration(migrations.Migration):
initial = True
dependencies = [
migrations.swappable_dependency(s... | [
"victorhad@gmail.com"
] | victorhad@gmail.com |
d2046b818de8b7a3c2f53e781304184aa893fe05 | 8f3d0b74f335d3238d4cbbb8c78d7c8c1ce83351 | /data/process_doc2vec.py | 27e632c8a900ae63c4e94352bbfa3ea32b903a1a | [
"Apache-2.0"
] | permissive | LauJames/key_phrase_extract | 6255e444a5260f4e356cd2d733a4dfde3ce759a9 | 5c93353e5f0d7641ce9390f4621b1cedc20220c3 | refs/heads/master | 2020-04-26T22:01:53.834838 | 2019-03-30T11:30:08 | 2019-03-30T11:30:08 | 173,859,205 | 1 | 1 | Apache-2.0 | 2019-03-13T01:54:54 | 2019-03-05T02:38:36 | Python | UTF-8 | Python | false | false | 17,074 | py | #! /user/bin/evn python
# -*- coding:utf8 -*-
import os
import re
import numpy as np
from numpy import linalg
import time, datetime
import gensim
import gensim.models as g
from ir.config import Config
from ir.search import Search
from data import data_IO, evaluate
# 使用es获取指定文档数量的topn篇相关文档(相似性计算文档)
def get_es_results(a... | [
"LauJames_work@163.com"
] | LauJames_work@163.com |
f3413ede669ea92f934c279806562794428aa483 | f853f2ebabba72f4df8b6334e4f20d0517021440 | /rec_datasets.py | 6930f14e188a16717073fd9d576c7d5eadc447f7 | [] | no_license | gpapadop79/ml-recsys-thesis | 782e6bc6a6e0f486e20ae2c359bdfe12962c9c5c | 2d4da1e82ad757e9b915816c62f5e3a770713fee | refs/heads/master | 2021-05-24T01:24:26.851173 | 2020-12-17T09:24:55 | 2020-12-17T09:24:55 | 83,094,158 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,005 | py | # -*- coding: utf-8 -*-
"""
Created on Tue May 10 23:46:00 2016
@author: George
Reads a dataset by it's name
"""
import pandas as pd
import numpy as np
def load_dataset(data_path, dataset):
""" Reads a dataset """
if dataset == 'ml-100k':
folder = r'ml-100k\u.data'
separator = '\t'
... | [
"gpapadop2012-git@yahoo.gr"
] | gpapadop2012-git@yahoo.gr |
dd1d15c77bbed78ecbb276388312c71711b89b76 | 20bb1ae805cd796a7c377e55966633441d1d9fd5 | /CodeForces/Problems/887B Cubes for Masha/cubes.py | 7e511bea378f4a51b6295ec6b24c35eb89ef6910 | [] | no_license | nathantheinventor/solved-problems | 1791c9588aefe2ebdc9293eb3d58317346d88e83 | c738e203fa77ae931b0ec613e5a00f9a8f7ff845 | refs/heads/master | 2022-10-27T08:58:23.860159 | 2022-10-13T20:18:43 | 2022-10-13T20:18:43 | 122,110,149 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 972 | py | cubes = [input().split() for _ in range(int(input()))]
def canMake(s):
if len(s) == 1:
for cube in cubes:
if s in cube:
return True
return False
elif len(s) == 2:
for i, cube1 in enumerate(cubes):
if s[0] in cube1:
for j, cube2 in ... | [
"nathantheinventor@gmail.com"
] | nathantheinventor@gmail.com |
d44cc064e0d441102cb7f749ba51da30194382e0 | 9808471fbc87c24439111d3e14f7d63dbd8231f1 | /Hacker/Mul_Client.py | d83f78dd16bd060d316bf9388b515607cf5686c0 | [] | no_license | sreekanthreddyv/CodeFiles | e2794f754394b256ce8efe4328bed673a8d909f8 | ce20ae55196bae21940ffd5dc9ab08256d091ae6 | refs/heads/master | 2020-11-26T11:23:11.445889 | 2020-01-15T07:09:21 | 2020-01-15T07:09:21 | 229,057,106 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 204 | py | from multiprocessing.connection import Client
from array import array
address = ('localhost', 6000)
with Client(address, authkey=b'hacker') as conn:
print(conn.recv())
print(conn.recv_bytes())
| [
"sreekanthreddy.v@live.com"
] | sreekanthreddy.v@live.com |
3b522ad5c1bc3e9b2c00cb9dae382a3145c20fd4 | 7cd8ee14711eaf33cee0d9e06e78a974fc579242 | /PIFramework/juicer/spiders/desk_customer_browse.py | e02c7f424af19bcbefa4456451ba138e83a60a4e | [] | no_license | Chandler-Song/pi | c618117dfdd9a7496a57c69f029851e94787f591 | aebc6d65b79ed43c66e7e1bf16d6d9f31b470372 | refs/heads/master | 2022-03-13T02:44:30.452673 | 2019-02-19T09:38:45 | 2019-02-19T09:38:45 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,849 | py | from juicer.utils import *
from w3lib.http import basic_auth_header
class deskcustomerbrowse(JuicerSpider):
name = "desk_customer_browse"
start_urls = ('https://www.desk.com/',)
def __init__(self, *args, **kwargs):
super(deskcustomerbrowse, self).__init__(*args, **kwargs)
self.auth = basic_auth_header('chetan.... | [
"aravind@headrun.com"
] | aravind@headrun.com |
71895a10c1b2c7e904d98028e8c8589a2d8b0dc4 | 66ce62faf87aa9f5e6446c6ea0827fec580385ce | /ABCapp/apps.py | 2b9b65b9b2758de921a8bd3510af8c722bf32b2c | [] | no_license | gunjan-prog/project | 1fb0c763223325283d75acaca1c1ac49b1f41b83 | 9b8c74ed0dc9ed18ee5e89ead030db97f520eefc | refs/heads/master | 2022-08-15T12:37:44.411830 | 2020-05-18T08:01:11 | 2020-05-18T08:01:11 | 264,861,908 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 92 | py | from django.apps import AppConfig
class AbcappConfig(AppConfig):
name = 'ABCapp'
| [
"noreply@github.com"
] | gunjan-prog.noreply@github.com |
07c2f1b1292181ff3cb89e02ba4f326110af2ecc | b9b701d6661af48c19411b355a4d3da51e184d0b | /79-zgz-pytorch-yolo2-master/utils.py | 64aebf3db02515f8bd0b6b61b89f2929046ffa19 | [] | no_license | TzuRen/APDM_REM | 4099adc27dc82280b566408ba3827e8bf8df4634 | 5fbe8202aa5677a1d82302246d0260671681c4f7 | refs/heads/master | 2022-11-03T03:46:59.785270 | 2020-06-15T11:01:19 | 2020-06-15T11:01:19 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 17,400 | py | #encoding=utf-8
import sys
import os
import time
import math
import torch
import numpy as np
from PIL import Image, ImageDraw, ImageFont
from torch.autograd import Variable
import struct # get_image_size
import imghdr # get_image_size
def sigmoid(x):
return 1.0/(math.exp(-x)+1.)
def softmax(x):
x = torch.exp... | [
"18765330178@163.com"
] | 18765330178@163.com |
9b9ac8d68ee4e75b58e72cede9cacace96c23920 | 7c55a0d083ad0d26ebd21587b3c5d7512c3e527f | /1132.py | f34412ca23eb4222f8eeb8b36f05109f5f9bd855 | [] | no_license | gabriias/uri_solutions_python | 1f2a9f4391b18719112d9fa91c152310ec8138fe | cb24e7f9fbf746e68a247c7639e886bd36644b90 | refs/heads/master | 2022-03-09T18:33:58.029999 | 2022-02-26T02:29:20 | 2022-02-26T02:29:20 | 125,661,581 | 2 | 2 | null | 2019-10-05T15:15:38 | 2018-03-17T19:17:33 | Python | UTF-8 | Python | false | false | 145 | py | x, y = int(input()), int(input())
soma = 0
if x>y:
x,y = y,x
for cont in range(x,y+1):
if cont % 13 != 0:
soma+=cont
print(soma)
| [
"gabrielamatias60@gmail.com"
] | gabrielamatias60@gmail.com |
0f000b6128b9efe08f58ca0df022b6cff521951f | ec002f4e1a9d98e2fff2b8d6af0eaaf15fb044ee | /Web/CrawlMasPic/Bing/revoke.py | 2689c52bff43756c661b871adc6003b1c13502b9 | [] | no_license | SeaEagleI/Python | 40fb5c3edf0016f730f4938c03ac9eb29591797b | eda3fd7b590816851894795efd23a58f2cd49dfb | refs/heads/master | 2021-07-15T07:28:33.790788 | 2020-05-17T08:48:49 | 2020-05-17T08:48:49 | 148,288,877 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 170 | py | # -*- coding: utf-8 -*-
from config import *
from tqdm import tqdm
cp_lines = [line.split('\t')[-1]+'.jpg' for line in LoadTxtToLines(cp_path) if 'Failed' not in line]
| [
"38852917+SeaEagleI@users.noreply.github.com"
] | 38852917+SeaEagleI@users.noreply.github.com |
69cc105ffb1b88b37b4962ce32f29a3d2366625d | 1af1f89eb9a178b95d1ba023b209b7538fb151f0 | /Algorithms/498. Diagonal Traverse.py | a78694dcbb277726c2c4bc88dabf90747eadcb45 | [] | no_license | 0xtinyuk/LeetCode | 77d690161cc52738e63a4c4b6595a6012fa5c21e | 08bc96a0fc2b672282cda348c833c02218c356f1 | refs/heads/master | 2023-02-21T16:58:39.881908 | 2021-01-25T08:00:13 | 2021-01-25T08:00:13 | 292,037,842 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 712 | py | class Solution:
def findDiagonalOrder(self, matrix: List[List[int]]) -> List[int]:
sx = 0
sy = 0
m = len(matrix)
if m==0:
return []
n = len(matrix[0])
if n==0:
return []
ans = []
reverse = False
while sx<m and sy<n:
... | [
"xliu301@uottawa.ca"
] | xliu301@uottawa.ca |
50972c24f80116bd960f7350abeb6b01cde72fdf | 4b7806dd0ea8f7eb54bec25eb5afcdfdc02d91cf | /NEURON/izhiGUI.py | 7b966f77d36f4b185374e9a3d30eb777ae9d16a8 | [] | permissive | OpenSourceBrain/IzhikevichModel | ab6018e8392b073d17cb4e29c68108a4397f098a | 83fe93ea390bb240f31e7352f6a4ad744dec43ca | refs/heads/master | 2023-08-31T00:01:19.985460 | 2023-08-18T15:13:31 | 2023-08-18T15:13:31 | 4,956,319 | 23 | 10 | BSD-3-Clause | 2023-09-04T11:06:46 | 2012-07-09T10:41:31 | Jupyter Notebook | UTF-8 | Python | false | false | 15,133 | py | """
izh.py
Python/NEURON GUI for the different celltypes of Izhikevich neuron (versions from 2 publications).
* 2003 Izhikevich artificial neuron model from
EM Izhikevich "Simple Model of Spiking Neurons"
IEEE Transactions On Neural Networks, Vol. 14, No. 6, November 2003 pp 1569-1572
* 2007 Izhikevich artificial ... | [
"p.gleeson@gmail.com"
] | p.gleeson@gmail.com |
d70ef292f9b8407850d0be8b2861610269e132d6 | 0de17c84dec8448d9063ed45b36bb16c4702b499 | /impyute/imputation/cs/em.py | 184962a31d0e9efd0d5644cfc1608fde5cfa1ae2 | [] | no_license | aureole222/Auto_ML | 1732b51ec9a8b93085747dbba3ae74d5886b9c1e | 427c1e97168d5978aeeb559fe050efba499fc3e3 | refs/heads/master | 2022-12-01T04:18:14.176425 | 2020-08-14T01:31:19 | 2020-08-14T01:31:19 | 283,636,274 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,511 | py | import numpy as np
from impyute.ops import matrix
from impyute.ops import wrapper
@wrapper.wrappers
@wrapper.checks
def em(data, loops=50):
""" Imputes given data using expectation maximization.
E-step: Calculates the expected complete data log likelihood ratio.
M-step: Finds the parameters that maximize ... | [
"xiaruizhe@Xias-iMac.local"
] | xiaruizhe@Xias-iMac.local |
c536b65e7478d8edb1d6e8355ea96b32a2dda8e6 | 7703d7dddeeefb770b75a4a411d1cb9f807d79b0 | /runserver.py | f87354bc72e630d6ae8922589f7d28aca3fe5cae | [] | no_license | Travaill/Project-Management-System-server | d67e7bdcc53c41fe345416f89c694c3515c85052 | ccb29e8abfff0a32f1197b81449df84f006e1906 | refs/heads/master | 2020-03-26T22:58:15.577936 | 2018-08-21T03:13:31 | 2018-08-21T03:13:31 | 145,500,126 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,472 | py | from flask import Flask
from flask import render_template
from flask import request
from flask import url_for
from flask_cors import *
from login import *
from user import *
from project import *
from manage import *
app=Flask(__name__)
key = "JLUIE487"
CORS(app, resources=r'/*')
@app.route('/login', methods=['POST']... | [
"2329677945@qq.com"
] | 2329677945@qq.com |
6c1d1eae9b949ccb140ce5643a6b76cfb45e170b | 9beaf19f08859a3706602bb014128e0df83c9223 | /dic_ex4 | 68febee4833f70cbaacfc422313e0bc668c14386 | [] | no_license | 1912souravi/Python | ba8b63f988f658578d327a8ea0421bbc98245edf | cdf3606a321f562bcde41850f08a15e76bf28079 | refs/heads/master | 2021-01-20T23:47:34.365081 | 2017-10-10T01:18:11 | 2017-10-10T01:18:11 | 101,852,403 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 570 | #!/usr/bin/env python3
# -*- coding: utf-8 -*-
"""
Created on Wed Oct 4 08:13:01 2017
@author: souravi
"""
lst=[]
dic_day={}
max_v=0
max_k=0
file=open("/Users/souravi/Documents/Python/romeo.txt")
'''1'''
for line in file:
line=line.rstrip()
lst=line.split()
if lst[0]=='From':
dom=lst[5].split(':'... | [
"noreply@github.com"
] | 1912souravi.noreply@github.com | |
c9b5dc584f87539fc823344d500800f12cf0d1b8 | 21fe7a80b6dd30281bf045620723d6648150224f | /node_modules/mongoskin/node_modules/mongodb/node_modules/bson/build/config.gypi | b50bf85cfcefc7b35cb007ba470cbc796e955055 | [
"MIT",
"Apache-2.0"
] | permissive | artalgame/chat-node-js | cdc6fe98e9dddef79b588a35b692d278e790e5b1 | 3ad689f81149b2d817abc229fc600eb187bb6a43 | refs/heads/master | 2021-01-20T11:25:59.101449 | 2013-12-15T00:29:53 | 2013-12-15T00:29:53 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,455 | gypi | # Do not edit. File was generated by node-gyp's "configure" step
{
"target_defaults": {
"cflags": [],
"default_configuration": "Release",
"defines": [],
"include_dirs": [],
"libraries": []
},
"variables": {
"clang": 0,
"gcc_version": 44,
"host_arch": "x64",
"node_install_npm": ... | [
"artalgs@gmail.com"
] | artalgs@gmail.com |
9dcf040005180edb2313c6d17b6c9fa1e1b66bc2 | 74be65db9505041017863eb7b880cd4420164913 | /Recursion.py | 0e868ceb13e34f19e3173fef73234f70ee1de844 | [] | no_license | jackx99/Python-Tutorial | 4dd21d7993376fd8e96e9f62ef0d2c2b80c8b8bf | 0fcdc529094dbebc675dde84847d8c285b536fe3 | refs/heads/master | 2022-07-02T19:23:07.894768 | 2020-05-09T03:14:14 | 2020-05-09T03:14:14 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,424 | py | # Hello Guys
# When you know the program to use iterative way (while loop, for in loop) but there is a other way
# Learn Recursion the process of solving a problem by reducing it to successively small versions of itself.
# Execute code by small chunks of itself.
# Recursive definition has
# one or more base case(s)... | [
"geek.mohsen@gmail.com"
] | geek.mohsen@gmail.com |
70730442f0974d53e608141b631786d816b8d1a1 | a49aa485318e499950130a6f9bf2c565dc4ccdf3 | /script.py | d2a8c07172bacd443603463a3f6ce0682ebcc60e | [] | no_license | NguyenThanhDat-GitHub/Tower_Of_Hanoi | 886b1721db887533054ec00fbf15b43530f14895 | eda64ac99b1f1e86677c533b81bd5c47d14f5715 | refs/heads/master | 2022-12-28T23:35:10.687522 | 2020-10-14T04:07:50 | 2020-10-14T04:07:50 | 303,898,456 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,809 | py | from stack import Stack
print("\nLet's play Towers of Hanoi!!")
#Create the Stacks
stacks = []
left_stack = Stack("Left")
middle_stack = Stack("Middle")
right_stack = Stack("Right")
stacks.append(left_stack)
stacks.append(middle_stack)
stacks.append(right_stack)
#Set up the Game
num_disks = int(input("\nHow many d... | [
"noreply@github.com"
] | NguyenThanhDat-GitHub.noreply@github.com |
cb836705f68c0926ca5a50e930949c6f02ab4f2e | 1b3d2752ced80ab6dee1ef314d2f66cd39160117 | /zero-cross.py | 2562e37424e81ee74ede0c69b3b2018e53fc10d0 | [] | no_license | MaxPilgrim/r_peak_detection | 2c93e024d3662c31419f6e33a7c3fb7a953129de | f064ffa4f0f087321e5453f304e58e6d5f6cfa6d | refs/heads/master | 2016-08-07T14:40:47.895533 | 2015-06-10T20:50:10 | 2015-06-10T20:50:10 | 37,219,595 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,194 | py | #!/usr/bin/env python
# -*- coding: utf-8 -*-
import time
import shutil
import os
import codecs
import sys
import math
import matplotlib.pyplot as plt
DATA_PATH = 'data/data_1.in'
FILTER_PATH = 'filter/FIR_kernel_27.in'
n = 6000
lambda_k = 0.99
c_k = 4
lambda_D = 0.99
lambda_Th = 0.99
filterDelay = 14
filterN = 27... | [
"maxpilgrim94@gmail.com"
] | maxpilgrim94@gmail.com |
56984e71ca46bff6d41242ea2239873e9f30a22c | 3369b534949fc10edbc956de5514424e2d225438 | /KR-WordRank-master/krwordrank/graph/__init__.py | 492ec1a6696ef383c6e6cc27211dc7dbb3b970bc | [] | no_license | huo223gg/mynote | d7db940d70163cadb84f9eca3652e1fab0c8bf96 | 7d6800ad582951e6f0cac9f42b1fa58e378c8823 | refs/heads/master | 2020-05-20T18:26:28.466468 | 2019-05-09T02:09:46 | 2019-05-09T02:09:46 | 185,706,744 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 23 | py | from ._rank import hits | [
"44153293+huo223gg@users.noreply.github.com"
] | 44153293+huo223gg@users.noreply.github.com |
21a493288805c9f4249815db526a22a557cd0946 | 45e7ede656fa223ea3b5c359ccd8f9bdcdb0e357 | /Ayudantía 8/23tree.py | d65fb9dbc95ab7b6a051355afd254d142f27e34c | [
"MIT"
] | permissive | JohnBidwellB/EDD-2018-1 | a4d6b4ecb36e9dc716c398e2efd24cd7bf809470 | 2f50c75aa55e643d33db43cd10e33421b69aaca2 | refs/heads/master | 2021-09-16T09:49:14.587741 | 2018-06-19T04:16:25 | 2018-06-19T04:16:25 | 125,936,571 | 10 | 3 | null | null | null | null | UTF-8 | Python | false | false | 3,434 | py | class Node:
def __init__(self, value):
self.data = [value]
self.parent = None
self.child = []
def __str__(self):
if self.parent:
return str(self.parent.data) + " : " + str(self.data)
return "Root: " + str(self.data)
def _is_leaf(self):
return len... | [
"johnbidwellb@gmail.com"
] | johnbidwellb@gmail.com |
5d339191de8e177da4fd0c015a83e2fab14cadf4 | 2a32d7e35ce7e8e8e669fe69ec81cca28ebed176 | /blackjack.py | 48740e1501fae015d517323bc6976cfa1c5c3578 | [] | no_license | ntrut/Blackjack | 311efa472ab7a570bf3ed78945d869894ca44381 | db10784099bb0fcd6802abfbb14474646edec2d7 | refs/heads/main | 2023-08-22T16:28:08.489762 | 2021-10-22T13:23:43 | 2021-10-22T13:23:43 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,819 | py | import random
import tkinter
from PIL.Image import Image
mainWindow = tkinter.Tk()
def load_images(card_images):
suits = ['H', 'C', 'D', 'S']
face_cards = ['J', 'Q', 'K', 'A']
for suit in suits:
for card in range(2, 11):
name = 'PNG/{}{}.png'.format(str(card), suit)
... | [
"noreply@github.com"
] | ntrut.noreply@github.com |
17f3f3381b7ad68625cfcd987954b1e8ea98b8f8 | d16ae20e90bfabb6aeef16fd5b19d71fcc45e29f | /confess/forms.py | 432edcb5affdbc904f2f5aa6621a339fcbe1d0fb | [
"MIT"
] | permissive | amartinez1/confessions | 49012af3f7fd8862c592b54c0b5d5a9a5ec4861d | 8c66700525d47e3657ffbcc0aacb11d238519126 | refs/heads/master | 2021-01-02T09:19:11.074743 | 2014-06-16T14:38:25 | 2014-06-16T14:38:25 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 173 | py | from .models import Post
from django import forms
from django.forms import ModelForm
class ConfessForm(ModelForm):
class Meta:
model = Post
fields = ['title','text']
| [
"ncorecarbon@gmail.com"
] | ncorecarbon@gmail.com |
b78332e426db0c012566299a4099427eb04b134f | 9b87f57ca5934a3aaaaf40fb467a279c88c83da4 | /account/urls.py | ee4c841ef120ec4414ac1c0f027f53662358b558 | [] | no_license | TechlopersWork/techDjango | b3e1edb8a80239d0da0679728a075879e1349506 | b3dc2e11f25ab8983b35aa64a9ba76b0b7c1f09a | refs/heads/master | 2023-08-13T18:21:16.335711 | 2020-05-14T02:15:42 | 2020-05-14T02:15:42 | 263,793,558 | 0 | 0 | null | 2021-09-22T19:01:15 | 2020-05-14T02:20:13 | Python | UTF-8 | Python | false | false | 147 | py | from django.urls import path
from . import views
urlpatterns = [
path('techlopian/', views.techlopian),
path('clients/', views.client),
]
| [
"techloperswork@gmail.com"
] | techloperswork@gmail.com |
dace21adfb00aaf1f2863a3e40f9256a2a67b538 | 2d6d24c0bfee13fc4682dee52075e78a552a8d1c | /tests/io/test_scanners.py | 88b4c30ae125ae42fe97d5aa7678fd851b13a7be | [
"MIT"
] | permissive | sbiradarctr/pyTenable | b890875c5df3a1da676cebd57af51bc49666a7d2 | 2a6930cd7b29036780c291581d89ab33c0fd6679 | refs/heads/master | 2023-05-06T09:20:43.580412 | 2021-05-31T09:05:11 | 2021-05-31T09:05:11 | 371,701,521 | 0 | 0 | MIT | 2021-05-28T12:58:52 | 2021-05-28T12:58:52 | null | UTF-8 | Python | false | false | 7,003 | py | from tenable.errors import *
from ..checker import check, single
import uuid, pytest
@pytest.mark.vcr()
def test_scanner_control_scans_scanner_id_typeerror(api):
with pytest.raises(TypeError):
api.scanners.control_scan('nope', str(uuid.uuid4()), 'stop')
@pytest.mark.vcr()
def test_scanner_control_scans_sc... | [
"steve@chigeek.com"
] | steve@chigeek.com |
a1d117f90824e00c627b17fadd9f17e197db1136 | d348b7062212459b7c3b22c6e1ef0976b3c791f2 | /db.py | 0415fb08710484dee9cccd115d3f7d4f9c725ec1 | [] | no_license | dmitriipolushin/deliverInnoBot | 54d6936880c069fd5f49510e8d656ca18cb3a2a8 | 4ad9a0d35ad17bc0fd96fcf62fbec4e2e3af59a5 | refs/heads/master | 2023-02-15T07:35:36.251169 | 2020-11-11T19:14:11 | 2020-11-11T19:14:11 | 307,364,407 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,846 | py | from pymongo import MongoClient
connection = MongoClient()
db = connection.users_information
def new_user(chat_id, alias):
"""Function to add new user to database
Args:
chat_id (string): id of new user in telegram
alias (string): alias of new user
"""
user_info = {'_id': chat_id,
... | [
"dmitriipolushin@pop-os.localdomain"
] | dmitriipolushin@pop-os.localdomain |
8603f1ec9bc1cebdababdfa6e7596867c7eec586 | bad4fb6e47603f356d14ea7c4228ffbd20427e6c | /local/lpcevento/evento/models.py | 83ec691569bf2637c7351ac8c762d8494b5f7b74 | [] | no_license | lucas62/trabalhoG1 | 1bc106f100d765b39664b6b701febe3d2f0abc25 | 4591e827875a65fb9ddf86930ee93807825be189 | refs/heads/master | 2021-06-25T15:13:14.592680 | 2017-09-11T20:34:41 | 2017-09-11T20:34:41 | 103,184,563 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,951 | py | from django.db import models
# Create your models here.
class Pessoa(models.Model):
nome = models.CharField(max_length=150)
email = models.CharField(max_length=150)
def __str__(self):
return self.nome
class PessoaFisica(Pessoa):
cpf = models.CharField(max_length=11)
def __str__(self):... | [
"lucas.pires100.la@gmail.com"
] | lucas.pires100.la@gmail.com |
759c45def54042c121a663b109de8f3c61c67d6e | 8af2c447bdde781f8016608b7dab0b2a2d975354 | /server/dive_server/views_annotation.py | 1e8a9d0494ca33ec42e7661d78fa882f9f6b1029 | [
"Apache-2.0"
] | permissive | acproject/dive | b8f580bb62bc0eda9d3fb3a6e33c0fd9edb74cf0 | 224f8c8814d306fcaf1191b2bc08851904e64577 | refs/heads/main | 2023-08-11T01:57:00.605940 | 2021-10-05T16:25:03 | 2021-10-05T16:25:03 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,554 | py | from typing import List, Optional
from girder.api import access
from girder.api.describe import Description, autoDescribeRoute
from girder.api.rest import Resource, setContentDisposition
from girder.constants import AccessType, TokenScope
from girder.models.folder import Folder
from . import crud, crud_annotation
Da... | [
"noreply@github.com"
] | acproject.noreply@github.com |
ead80ff7e262f85fb9e82c38864ce01ba505bf46 | f1d2332045791d155ac712169c51e3d0157a9040 | /dana/app_dana/admin.py | 0caa616abff9e8a625d6c0502f697a2c0aad8186 | [] | no_license | bulikkk/DanaPage | 97631d65fa83256b0853c483cf1bd08b4bfb4d0a | 316c048b51b769c65bea1ddf3bdcf61764d71cae | refs/heads/master | 2021-01-20T14:28:32.245003 | 2017-07-18T20:31:18 | 2017-07-18T20:31:18 | 90,613,361 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 345 | py | from django.contrib import admin
from .models import Banner, Project
# Register your models here.
@admin.register(Project)
class ProjectAdmin(admin.ModelAdmin):
fields = ('title', 'description', 'type', 'image', 'new')
@admin.register(Banner)
class BannerAdmin(admin.ModelAdmin):
fields = ('title', 'time', ... | [
"bulik.piotr@gmail.com"
] | bulik.piotr@gmail.com |
a06f4cacd3ceb7788c1165cbd743fe875f3f06ec | 3387493ac3c18d8d7a1e36f9f268bbaf9a494cf1 | /Find longest subset with sum 0.py | 9b13825c75110628a0dbb3f41f2d580575e44a38 | [] | no_license | Shaurya-L/Data-Structures-and-Algorithms-in-Python | 8b4ca1c23f84c02b1bab4469180c199154bade02 | 1da445905663dcd7035dcd78cc4d56695a32d6fa | refs/heads/master | 2020-09-26T12:22:08.854564 | 2020-01-27T16:27:16 | 2020-01-27T16:27:16 | 226,254,449 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 510 | py | def subsetSum(l):
#Implement Your Code Here
d = {}
max_len = 0
curr_sum = 0
for i in range(n):
curr_sum += l[i]
if l[i]==0 and max_len == 0:
max_len = 1
if curr_sum is 0:
max_len = i + 1
if curr_sum in d:
max_len = max(max_len, i ... | [
"noreply@github.com"
] | Shaurya-L.noreply@github.com |
67142483d36d0db80900abc7955171ba9822c98b | 68cd659b44f57adf266dd37789bd1da31f61670d | /swea/덧셈.py | e5b8ab0ac443bc65fe5936e0ac9141aab0492675 | [] | no_license | 01090841589/solved_problem | c0c6f5a46e4d48860dccb3b0288aa5b56868fbca | bbea2f31e5fe36cad100bc514eacd83545fb25b1 | refs/heads/master | 2023-07-02T23:55:51.631478 | 2021-08-04T13:57:00 | 2021-08-04T13:57:00 | 197,157,830 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 425 | py |
def summ(k, scr):
if scr == num:
result = []
for j in range(N):
if visited[j]:
result.append(j+1)
print(result)
return
if scr > num:
return
if k >= N:
return
visited[k] = arr[k]
summ(k+1, scr+arr[k])
visited[k] = 0
... | [
"chanchanhwan@naver.com"
] | chanchanhwan@naver.com |
c0a4781c6bcf405595b392c0498e6a3e26ee1b42 | fc3564bc78effa5daf09c582b21c8cbc79a68e4b | /leetcode/rotateRight.py | f59e78fc9598b054fcc113ba4d643cd71d4234cb | [] | no_license | TimiLikesJava/interview-prep | f567d79ff066aab31468405e5ee107641756ebad | a7071ebe89e173a95b3708265e3c95fb43f1fb19 | refs/heads/master | 2022-11-26T03:55:07.775927 | 2020-07-28T12:30:16 | 2020-07-28T12:30:16 | 271,274,307 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 906 | py | def rotateRight(self, head: ListNode, k: int) -> ListNode:
if(head is None):
return
if(k == 0):
return head
count = 0
curr = head
while curr is not None:
count += 1
curr = curr.next
if(count == 1):
return head
... | [
"noreply@github.com"
] | TimiLikesJava.noreply@github.com |
d704be6d1bfc2c06b2ff9f30222c54c1b0b1c0fe | 555fc06192df6d4375dbbc2d17f38c5783c6ef05 | /Lesson03/case05.py | 976c24b2285a32c23c7849f85ef260aeec546145 | [] | no_license | tina8860035/yzu_python | d658e3c6da8f132f054adbeb155c4794c606fc1e | f069efd191dfdb1802068cab1f976ef8a15c3a37 | refs/heads/master | 2021-05-26T10:14:04.770271 | 2020-06-10T13:34:21 | 2020-06-10T13:34:21 | 254,091,717 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 123 | py | def mask(money):
x = money // 5
size = "成人"
return x, size
my_x, my_size = mask(120)
print(my_x, my_size)
| [
"52558635+tina8860035@users.noreply.github.com"
] | 52558635+tina8860035@users.noreply.github.com |
df6d16af59ecc459d304d7406ac8442ed9b48f06 | 26771494974942f4ab18d2cd8247506c344e1d14 | /117-populatingNextRightPointersinEachNodeII.py | 9b9e705cd655c6bfec49ca57ca65aa58890158d4 | [] | no_license | wangyunpengbio/LeetCode | 9f4c6076e067c5e847d662679483f737d40e8ca5 | cec1fd11fe43177abb2d4236782c0f116e6e8bce | refs/heads/master | 2020-04-29T22:28:25.899420 | 2020-04-03T07:37:26 | 2020-04-03T07:37:26 | 176,448,957 | 3 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,312 | py | """
# Definition for a Node.
class Node:
def __init__(self, val, left, right, next):
self.val = val
self.left = left
self.right = right
self.next = next
"""
class Solution:
def connect(self, root: 'Node') -> 'Node':
if root == None:
return None
queue =... | [
"wangyunpeng_bio@qq.com"
] | wangyunpeng_bio@qq.com |
bdde1733e3aad7d31e2d6f9dcb889e9c085df1f7 | f1117bf18739dba62a5a50bd86f0fdbf9827434f | /MyQuickSort.py | d5de0db1f857977075bcdcfcc09925b15caf1c25 | [] | no_license | Sohaib-50/MyQuickSort | 9fe8c6b22fa66d8db400fff9d519316893bcc8ef | 7affb3b1346e4266ab392aa1d4172cafabdc90e1 | refs/heads/main | 2023-01-23T22:38:10.330858 | 2020-12-04T15:42:12 | 2020-12-04T15:42:12 | 318,557,220 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,562 | py | from stackwithlist import mystack
def QuickSort(lst):
if len(lst) == 1:
return
stack = mystack()
stack.push( (0, len(lst) - 1) )
while not stack.isEmpty():
current_range = stack.pop()
left, right = current_range # tuple unpack
loc = left # selecting first element ... | [
"i.am_sa@Yahoo.com"
] | i.am_sa@Yahoo.com |
d00b698f5834c6af3e0263f050a51ecf6db3b475 | f040ec51ef570adbd8240555eba1d0cd9709bb6e | /GstExample/basic-tutorial-4.py | 906bb080d1074246a75c505dd7c2248ca9b035a3 | [] | no_license | WassabiVl/WebServerGstreamer | 7d1c8b6a0670bdc60789308237d2c27700fcd573 | 77d8522e297dc04b64a1dfc2dd8fcef539f65778 | refs/heads/master | 2020-03-20T06:23:17.669426 | 2018-08-27T09:48:12 | 2018-08-27T09:48:12 | 137,247,763 | 3 | 1 | null | null | null | null | UTF-8 | Python | false | false | 4,871 | py | #!/usr/bin/env python3
# -*- coding:utf-8 -*-
# GStreamer SDK Tutorials in Python
#
# basic-tutorial-4
#
"""
basic-tutorial-4: Time management
http://docs.gstreamer.com/display/GstSDK/Basic+tutorial+4%3A+Time+management
"""
import sys
import gi
gi.require_version('Gst', '1.0')
from gi.repository import Gst
Gst.i... | [
"wa@lombego.de"
] | wa@lombego.de |
dce98cca1fcd4e0ddd6d4fa4399422fe437fba37 | 9da37920bec0710a594bf0c426216894cabfc8d7 | /log_handler.py | f8fdbc7b9ff19fdc4222eea64a4c8aa3a817c87e | [] | no_license | nathansikora/CamDuino | 54875870073b22a6a5fbc566b4914c1bbfbbde7f | 9b9f62cea4714f34e1c1f406dec5314bc22f2651 | refs/heads/main | 2023-06-05T03:17:52.207525 | 2021-06-30T18:17:06 | 2021-06-30T18:17:06 | 320,819,375 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 358 | py | from time import asctime
LOG_FILE = 'log.txt'
IS_LOG_TO_FILE = True
LOG_STR = '{0} : {1}\n'
class Logger:
@staticmethod
def log(msg, path=LOG_FILE, is_log_to_file=IS_LOG_TO_FILE):
msg = LOG_STR.format(asctime(), msg)
print(msg)
if is_log_to_file:
with open(path, 'a') a... | [
"nathanikora@gmail.com"
] | nathanikora@gmail.com |
dc020b3930bd8abb2cf10b358f9075e9aea0aab2 | e5c24e5c810a99bd326384a0d222bc8af0ac3bd9 | /chat_analyzer/models/chat_data.py | 1cd716d120105ae8437a4851d56ebc8ca1970df2 | [] | no_license | sechlol/whatsapp-chat-analyzer | aaaef061de9bd1776204a5e603df98677879a051 | e9506b5a482e9f29e80b0039702df648c5dd0312 | refs/heads/master | 2022-11-27T08:25:23.732721 | 2022-11-20T17:53:45 | 2022-11-20T17:53:45 | 218,354,333 | 0 | 0 | null | 2022-11-20T17:54:33 | 2019-10-29T18:20:02 | Python | UTF-8 | Python | false | false | 1,865 | py | from dataclasses import dataclass, field
from datetime import datetime, date
from typing import List, Dict
from chat_analyzer.models.chat_schemas import ChatMessageStatSchema, StatsWrapperSchema
@dataclass
class Message:
sender: str
date: datetime
text: str
@dataclass
class Chat:
name: str
part... | [
"ccardin.sech@gmail.com"
] | ccardin.sech@gmail.com |
f61a8aa843d980025a0559ae59a7f1b2df92821a | c122279ed10ecf9a5b7b91789591179a30f2e543 | /src/group.py | 95d0f7b9f5a852501c7aa37d47d1e19e3fafcb5f | [
"MIT"
] | permissive | MrCamoga/Finite-Groups-2 | 15fa54fa9008d29ca1362d952b5744f279e19577 | 5e52102a423a8ff4eed0cbf59617b6fe999e7ef3 | refs/heads/master | 2021-02-16T22:37:00.047213 | 2020-11-11T14:15:25 | 2020-11-11T14:15:25 | 245,049,648 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 26,292 | py | from functools import reduce
from sympy import isprime, gcd, lcm, factorint
from operator import itemgetter
from random import randint
import typing
"""
TODO:
isNormal ✓
Inn(G) ... | [
"mrcamoga@gmail.com"
] | mrcamoga@gmail.com |
63406186486569e40cecf5de8a6cae1dc00ae400 | f54070cd3048a3645cb25f301592a904d387a1c9 | /python_prgrams/testpython/class.py | d90814e0b94bcc93934d6f3342591b4b93ec4eaa | [] | no_license | mak705/Python_interview | 02bded60417f1e6e2d81e1f6cde6961d95da2a8e | aff2d6018fd539dbcde9e3a6b3f8a69167ffca0d | refs/heads/master | 2020-03-22T21:03:34.018919 | 2019-11-15T08:51:34 | 2019-11-15T08:51:34 | 140,653,056 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 220 | py | class PartyAnimal:
x = 0
def party(self):
self.x = self.x + 1
print "so far ", self.x
an = PartyAnimal()
an.party()
an.party()
an.party()
print "Type", type(an)
print "Dir", dir(an)
#PartyAnimal.party(an)
| [
"mak705@gmail.com"
] | mak705@gmail.com |
c37e90516146a963e73064dbae83398fa95b20e3 | 1d48ddd72477de7d9ad98eef61bdfb406859b31c | /04. asyncio/web_scraping/test_pg.py | 31752e74e37bf55d125a66ca1feeb9777c26d7ae | [] | no_license | alexshchegretsov/async_techniques | b68d27de58bc2393520eb080838b2c72d356d2f3 | 42118504a39ccbd0bebad4ed41eba4b5c2e3d5dd | refs/heads/master | 2020-12-04T06:40:34.712114 | 2020-01-06T20:59:58 | 2020-01-06T20:59:58 | 231,661,735 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 450 | py | # -*- coding: utf-8 -*-
import asyncio
import asyncpg
async def run():
# conn = await asyncpg.connect(user="async", password="Dexter89!", database="async_db", host="127.0.0.1", port="5432")
conn = await asyncpg.connect("postgresql://async:Dexter89!@localhost/async_db")
values = await conn.fetch("""select ... | [
"nydollz77@gmail.com"
] | nydollz77@gmail.com |
fa2acf3dc47b01789ae0535085f48b6e22aff68d | 3e5695a1e80d3696cea8b902d06078f9b77387a7 | /demesdraw/size_history.py | 3b967b152a6b2e700e522df64d6afa7c80562c82 | [] | no_license | apragsdale/demesdraw | 9a3312db81ee58e343272a6b9b517538b0078682 | 26f817a66a7f8fe00c99e41f1b774c501c5a8d3b | refs/heads/main | 2023-03-20T22:09:38.588301 | 2021-03-11T19:51:37 | 2021-03-11T19:51:37 | 346,859,777 | 0 | 0 | null | 2021-03-11T22:42:17 | 2021-03-11T22:42:17 | null | UTF-8 | Python | false | false | 10,190 | py | import demes
import numpy as np
import matplotlib
import matplotlib.pyplot as plt
from demesdraw import utils
def size_history(
graph: demes.Graph,
ax: matplotlib.axes.Axes = None,
inf_ratio: float = 0.1,
inf_label: bool = False,
invert_x: bool = False,
num_exp_points: int = 100,
annotate... | [
"graham.gower@gmail.com"
] | graham.gower@gmail.com |
c9a3a0c61090dc5a0df06daf9966f3d68d3b0fd0 | b53071f631a030df707197f7403d55d7bbd5b1d1 | /src/utils/label_smoothing_loss.py | 1bd3e03468758014997df6cb3c680003e713b5eb | [] | no_license | JJoving/SMLAT | 4d2baba38a9b0cdc4d5cf307ed1729255500142a | 4bec314ea4ad7b67db1e4b78e3ec1a2fa8d866ba | refs/heads/master | 2020-06-29T07:56:14.371708 | 2019-10-28T12:38:21 | 2019-10-28T12:38:21 | 200,479,610 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,048 | py | import torch
from torch import nn
class LabelSmoothingLoss(nn.Module):
"""Label-smoothing loss
:param int size: the number of class
:param int padding_idx: ignored class id
:param float smoothing: smoothing rate (0.0 means the conventional CE)
:param bool normalize_length: normalize loss by sequen... | [
"732585148@qq.com"
] | 732585148@qq.com |
472e2678e5a33ac3ef0f0b99023128e995f69fe6 | 2e682fd72e3feaa70e3f7bf2a3b83c50d783ec02 | /PyTorch/built-in/cv/detection/DBpp_ID4145_for_PyTorch/mmocr/apis/train.py | dd009ec1a6e189694585385e994c91ebbb28894e | [
"GPL-1.0-or-later",
"Apache-2.0",
"BSD-2-Clause",
"MIT",
"BSD-3-Clause",
"LicenseRef-scancode-generic-cla",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | Ascend/ModelZoo-PyTorch | 4c89414b9e2582cef9926d4670108a090c839d2d | 92acc188d3a0f634de58463b6676e70df83ef808 | refs/heads/master | 2023-07-19T12:40:00.512853 | 2023-07-17T02:48:18 | 2023-07-17T02:48:18 | 483,502,469 | 23 | 6 | Apache-2.0 | 2022-10-15T09:29:12 | 2022-04-20T04:11:18 | Python | UTF-8 | Python | false | false | 11,120 | py | # -*- coding: utf-8 -*-
# BSD 3-Clause License
#
# Copyright (c) 2017
# All rights reserved.
# Copyright 2022 Huawei Technologies Co., Ltd
#
# Redistribution and use in source and binary forms, with or without
# modification, are permitted provided that the following conditions are met:
#
# * Redistributions of source ... | [
"wangjiangben@huawei.com"
] | wangjiangben@huawei.com |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.