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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
9301ed3d4b8d989aec5326fa98eb80a029d02d57 | ef1dcff4ff061058ba4a9e060ca8b5e8def19518 | /lib/python2.7/site-packages/django_filer-0.9.12-py2.7.egg/filer/views.py | df120a758162cd74a73ebfe2c4e3178f4e26dfad | [] | no_license | vitbrajesh/virtual | 4ca5f0903114511d5892e016cdcee1d224638c8e | 15987f19ac8481c34e03d2a274f0b048637394d8 | refs/heads/master | 2021-01-09T21:53:55.956495 | 2015-12-07T08:01:52 | 2015-12-07T08:01:52 | 49,314,767 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,338 | py | # -*- coding: utf-8 -*-
from __future__ import unicode_literals
from django import forms
from django.contrib.admin import widgets
from django.contrib.auth.decorators import login_required
from django.core.exceptions import PermissionDenied
from django.http import HttpResponseRedirect
from django.shortcuts import rende... | [
"brajeshvitkanpur@gmail.com"
] | brajeshvitkanpur@gmail.com |
52e6b86a41408d6d0f469e493c99dbfcf74b9482 | e9a7f7539bdf0f3fc4c0d3de96f8281bda50ece3 | /Mask Training.py | c7ccbf91f757e81998ab41241201e8ba8a6354f8 | [] | no_license | yogesh895/Mask-Detection | 80a1450917f5bf22b592bc61c1f346ec95f8d733 | 9b65cc79a65ccddfb9db089b12188a648ddfd680 | refs/heads/master | 2023-02-09T04:29:15.309137 | 2020-12-29T17:56:00 | 2020-12-29T17:56:00 | 325,352,309 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,363 | py | import numpy as np
import os
import matplotlib.pyplot as plt
from imutils import paths
from tensorflow.keras.applications import MobileNetV2
from tensorflow.keras.layers import AveragePooling2D
from tensorflow.keras.layers import Dropout
from tensorflow.keras.layers import Flatten
from tensorflow.keras.layers import D... | [
"yogesh.sangtani.5@gmail.com"
] | yogesh.sangtani.5@gmail.com |
01fb37b7d5d16a167a3f98e0b2b0c9ed7a36cd06 | f445450ac693b466ca20b42f1ac82071d32dd991 | /generated_tempdir_2019_09_15_163300/generated_part005250.py | a115bdd05a7d58de6b87e28027cd20e59675b0ad | [] | no_license | Upabjojr/rubi_generated | 76e43cbafe70b4e1516fb761cabd9e5257691374 | cd35e9e51722b04fb159ada3d5811d62a423e429 | refs/heads/master | 2020-07-25T17:26:19.227918 | 2019-09-15T15:41:48 | 2019-09-15T15:41:48 | 208,357,412 | 4 | 1 | null | null | null | null | UTF-8 | Python | false | false | 3,998 | py | from sympy.abc import *
from matchpy.matching.many_to_one import CommutativeMatcher
from matchpy import *
from matchpy.utils import VariableWithCount
from collections import deque
from multiset import Multiset
from sympy.integrals.rubi.constraints import *
from sympy.integrals.rubi.utility_function import *
from sympy.... | [
"franz.bonazzi@gmail.com"
] | franz.bonazzi@gmail.com |
ac0bc62cf50ba4152335777aa0c9bb45e5a48104 | 5338d03a104d0b145d0dad00b7d9a0bb7d858f05 | /Assignment_1.py | 39a1cd12d84365a1325c6c1696bdf2b7bad5e28e | [] | no_license | Python-SCI-420/week-1-samzak06 | 7ba81bf6b3d27d0cb7ea050a676f607660eb0714 | 0256ce2088754ac9e1ee55eaa32f4bdc4a66404d | refs/heads/master | 2022-10-05T22:22:10.535393 | 2020-06-01T03:22:25 | 2020-06-01T03:22:25 | 267,701,833 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 7,299 | py | # PYTHON420 Week 1 Assignment 1
# Samuel Zakutney
# 5/31/20
import numpy as np
import matplotlib.pyplot as plt
# White Space Formatting
print('--White Space Formatting--')
print('% Adding blank spaces to code affects the oder in which the code runs. %\n')
def greet_user1():
print('Hello!!!')
print('Take care!... | [
"noreply@github.com"
] | Python-SCI-420.noreply@github.com |
721f489090af510ec73c841b2cedb0796ac257cb | 2d9797f5a77f476dee1fac69a589c03f7b99248a | /Vertical_Tree_Sum.py | e9597bba0c45e0cdf60533ef3ccef7e7ede9a286 | [] | no_license | bhoot929/Python-ELT | 2b2b7b5244b624f21de4d6982abff61f9e0ff6b0 | 6eaed87fb27296794653a8a34cf93435de0e86d6 | refs/heads/master | 2020-03-24T16:44:32.146982 | 2018-10-01T11:18:56 | 2018-10-01T11:18:56 | 142,834,784 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,794 | py | '''
This code will get summation of Tree elements vertically.
https://algorithms.tutorialhorizon.com/print-the-vertical-sum-in-binary-tree/
'''
class Node:
def __init__(self,key):
self.value = key
self.left = None
self.right = None
def printtree(root):
buf= []
output_d... | [
"noreply@github.com"
] | bhoot929.noreply@github.com |
ffcc59ba22604f5c6f6105a41a3aa9d1b348cca9 | d9bae26586757170e1b8b26a2344b342503387e8 | /virtual/lib/python3.6/bisect.py | 0ab727541837b21e7fd4f2b768dd320d2bef01b4 | [
"MIT"
] | permissive | naimahassan/insta_grammy | afcf95c5ee1934a6d5debf14eb8197e3fe40d6e2 | 1821ae84abd2e6e9a7298410296d66ce04bda379 | refs/heads/master | 2021-04-03T05:25:06.633686 | 2018-03-20T07:48:16 | 2018-03-20T07:48:16 | 124,345,066 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 57 | py | /home/naima/.pyenv/versions/3.6.3/lib/python3.6/bisect.py | [
"hassannaima77@gmail.com"
] | hassannaima77@gmail.com |
3c7916135c3832cfa446e71c5ccc3b59ed8e0dea | 6b06010f58958e522992e99efdf5056b15c037f3 | /check.py | 81899ba8313bfa36cccdc7cd691097b45c255564 | [] | no_license | k1ycee/School_Work | 139ee1fcff5f294819c2ce0b410b194c3dca34e0 | 9dd3dff4a767d84021e11c57d7a9f3a7345bd474 | refs/heads/master | 2023-03-22T20:27:33.410554 | 2021-03-22T08:05:39 | 2021-03-22T08:05:39 | 340,304,719 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 213 | py | # Python3 code to iterate over a list
list = [1, 3, 5, 7, 9]
# getting length of list
length = len(list)
# Iterating the index
# same as 'for i in range(len(list))'
for i in range(length):
print(list[i]) | [
"chiagozieani145@gmail.com"
] | chiagozieani145@gmail.com |
f667b8af723aa31dcce449e8a86b340278404250 | c016f855debafd5e28a765f2a1fe7636c55ba80f | /orig/mutated_maze-0.5/gamelib/fog.py | 64673c278823334c033f83f1cb836a3814b6d15c | [
"BSD-3-Clause",
"BSD-2-Clause"
] | permissive | qeedquan/go-mutated-maze | 841cdebbf9277aca3680903e1e46de564ab36fe9 | f22e8dd167f603af7ad302bde97e2aed80077f2f | refs/heads/master | 2020-06-24T17:54:27.761048 | 2018-07-25T20:50:29 | 2018-07-25T20:50:29 | 74,629,209 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,946 | py |
import sys
import os
import random
import pygame
import pygame.image
import itertools
import data
from gamelib import ega
FOGFILES=(
('fog01.png', 'fog01_inverse.png'),
('fog02.png', 'fog02_inverse.png'),
('fog03.png', 'fog03_inverse.png'),
('fog04.png', 'fog04_inverse.png'),
('fog05.png', 'fog0... | [
"qeed@home.desktop.pc"
] | qeed@home.desktop.pc |
12e87396bd23252c55dbf7e78fc3537867691bca | 706c04281893a3c2f9d08f07af91e308fe9229ef | /python/matplotlib/matplotlib_pairplot.py | 3756c85eba65005278fddbc6160ebf4165a629a7 | [] | no_license | ywy0318/all_language | fce11698faa0d544d254ae2c4e584f09389b9551 | a47b90c466f11dd6f855cea429e6b5c18a713f05 | refs/heads/master | 2023-07-31T19:25:38.382246 | 2021-09-11T13:34:22 | 2021-09-11T13:34:22 | 193,008,938 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 485 | py | #绘制pairplot
#用于显示各个特征对分类的影响,使用pairplot会生成散点图和直方图,
#每个图都显示不同的特征与分类关系
import seaborn as sns
import matplotlib.pyplot as plt
import numpy as np
import pandas as pd
df_iris=sns.load_dataset('iris')
#hue:确定关注的特征,即画该特征与其他特征的关系,palette:固定用法,图中各类别使用不同颜色
sns.pairplot(df_iris,hue='species',palette='husl')
plt.s... | [
"noreply@github.com"
] | ywy0318.noreply@github.com |
6b38169448f513f753356cfd005758f70d5a9367 | 20e8b77278c9c91122ad10cdcb685b86f6a9b596 | /algorithms/2019/3/21/2019321-2.py | ed1bb80467f314e36312f91fe6fe71894db151b0 | [] | no_license | arjun921/Python-TIL | c4471c2cc9addde53b27c442cd24e7b8ad233a81 | 64c425b98b0b9bdb8f39e2b3b635a582efabf13d | refs/heads/master | 2023-04-20T04:22:57.762700 | 2021-05-04T11:34:00 | 2021-05-04T11:34:00 | 75,990,518 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 802 | py | # https://www.hackerrank.com/challenges/text-alignment/problem?h_r=next-challenge&h_v=zen
#Replace all ______ with rjust, ljust or center.
thickness = int(input()) #This must be an odd number
c = 'H'
#Top Cone
for i in range(thickness):
print((c*i).rjust(thickness-1)+c+(c*i).ljust(thickness-1))
#Top Pillars
for... | [
"arjun921@gmail.com"
] | arjun921@gmail.com |
b0a72059e1c525bf44b28cac421173919bffd8ff | f531c56db4cd2776c765b9aca0c4cebaea864ec2 | /ABC180/a.py | 71af98fba89cb4bff73b9f900f0741c8dd163f1c | [] | no_license | SatoKeiju/AtCoder-Python3 | 1c76f8ec5d99470b6e316115f0433b4b3cb64024 | 9c2860e2cfda490d5848b0557876ef616eff01a2 | refs/heads/master | 2021-06-23T05:59:46.911733 | 2021-03-30T08:00:34 | 2021-03-30T08:00:34 | 212,088,768 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 122 | py | def main() -> None:
n, a, b = map(int, input().split())
print(n - a + b)
if __name__ == '__main__':
main()
| [
"keiju.sato@abeja.asia"
] | keiju.sato@abeja.asia |
d5c9b86ee0c37f13f1cbb6d03e3008cd35a1b9bb | 1bdb0da31d14102ca03ee2df44f0ec522b0701a4 | /Lombardia/MM/ReteAcquedotti/AggiornamentoReteAcquedotti.py | c746357b05945e6e29e8a6e020d668da83aa3a93 | [] | no_license | figuriamoci/Acqua | dc073d90c3c5e5899b22005685847916de1dfd95 | aef22fcd0c80c92441e0e3df2468d7a2f23a848a | refs/heads/master | 2020-12-15T04:00:26.855139 | 2020-06-08T21:17:55 | 2020-06-08T21:17:55 | 234,986,179 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,090 | py | import os, geojson, logging, acqua.labelCollection as lc
def create_water_supply_network(geoJsonfile, regione):
#logging.info( "reading %s from %s...", geoJsonfile, regione )
with open( geoJsonfile ) as f:
geo = geojson.load( f )
fc = []
for f in geo['features']:
logging.info(f)
... | [
"an.fantini@gmail.com"
] | an.fantini@gmail.com |
c7677807f0d46f1942905e904004144cc58ead9c | edf8004b1981dc4a81b9549f4dfb50fb998a5240 | /tests/test_orbits.py | f067176a8cfd4e0ca90b5d42bfd5001eb78720e8 | [
"MIT"
] | permissive | goodcq/picasso | 64597d148ccb2c2c50c00cee8961c5a4c63334a7 | 89948b1707f44ca03c566da1d4424d9bc208e380 | refs/heads/master | 2022-01-22T11:12:36.348096 | 2019-07-29T09:55:23 | 2019-07-29T09:55:23 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,053 | py | # -*- coding: utf-8 -*-
"""
@author: sreimond
"""
import pytest
from picasso.utils.analysis import orbits
import numpy as np
def test_compute_kepler_orbit():
"""
Test if the function `compute_kepler_orbit` correctly computes the
orbital coordinates from Keplerian elements.
"""
a = 6775000.0
e = 0.0015306
... | [
"stefan.reimond@gmail.com"
] | stefan.reimond@gmail.com |
98087e6da1c8ca9e5a0fc176c0cbb3af37b9928e | 7cd02521c913513597dbfed9d2c1d0b31e89d476 | /drinks.py | 7a689799fe457d087a409926cd0eb031213572d1 | [] | no_license | gyeongnamKim/data-analysis | 520b89e20ecb4f7161f76346e7482bf833b86b80 | a54b75c9f154f7042f11535d539a2957378df3d3 | refs/heads/main | 2023-08-11T11:14:33.703888 | 2021-09-15T08:46:54 | 2021-09-15T08:46:54 | 382,292,527 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,900 | py | import pandas as pd
#파일 읽어오기
file_drinks = pd.read_csv('./data/drinks.csv')
#continent의 Nan 값 OT로 교체
file_drinks.continent = file_drinks.continent.fillna('OT')
#대륙별 beer_servings 컬럼 생성
continent_beer_mean = file_drinks.groupby('continent').mean()['beer_servings'].to_frame()
continent_beer_mean.rename(columns={'beer_... | [
"rudska1885@gmail.com"
] | rudska1885@gmail.com |
1b4e0dba6cccc7a01d2f1f2473da5593ccf3a7ee | 6a68b230964540bc3f7eb19a9a5adc9b218370c7 | /MiddlewareScan/F-MiddlewareScan.py | c00c9bde26d9c4c15f126b1dc017a4972d1497ec | [] | no_license | chuxuantinh/hack-tools | 7705e485959d1612fee1786a80d98a3fe5500e20 | c2203e8fa5c42b26e23b9c3db5e88ec7d11ea120 | refs/heads/master | 2023-01-09T03:13:40.074380 | 2020-10-31T19:17:37 | 2020-10-31T19:17:37 | 308,955,506 | 7 | 1 | null | null | null | null | UTF-8 | Python | false | false | 7,741 | py | #coding:utf-8
#author:wolf@future-sec
import getopt
import sys
import Queue
import threading
import socket
import urllib2
import time
import ssl
import os
queue = Queue.Queue()
sys.path.append("plugins")
mutex = threading.Lock()
timeout = 10
try:
_create_unverified_https_context = ssl._create_unverified_context
e... | [
"50776038+chuxuantinh@users.noreply.github.com"
] | 50776038+chuxuantinh@users.noreply.github.com |
44b24e4bf2e6ebcb6d51f4c623abc6306f561a42 | 0975719029ab9b2c4dfe869b9e9f0e86d999bf08 | /blog/forms.py | 5c0ad0dc4d1c1bbd0ba0cf5a1bda6cf8a6bd0e5c | [] | no_license | rjipandey/Django-edugorilla | c8442302646ff663cc799b2b598afa62ec7234d8 | 13771ba446c8091f17860049f30bd50b44129e2e | refs/heads/master | 2020-03-30T11:47:49.602331 | 2019-02-09T02:43:03 | 2019-02-09T02:43:03 | 151,193,399 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 2,632 | py | from django import forms
from blog.models import Post, Comment
from django.contrib.auth.forms import UserCreationForm, UserChangeForm
from django.contrib.auth import get_user_model as User
from blog.models import *
class PostForm(forms.ModelForm):
class Meta():
model = Post
fields = ('author','title','text')
... | [
"raj.xyz6@gmail.com"
] | raj.xyz6@gmail.com |
b3d5ee1f2d3213c5ca0bd65a64a9190ab278eda9 | 7463da80ec3ca0404e37ff903d1019e8e56595c8 | /nn_example.py | 65afb2b662f3d52f1e80c85e551abfbcbe5600ec | [] | no_license | ibmua/learning-to-make-nn-in-python | f8a2b4e3c86f5ab21465ae4c058b68b393b7ecee | 368fe4d6817fe2e109ba4cac1fdc4585253dab02 | refs/heads/master | 2020-07-18T02:43:05.665723 | 2016-09-25T06:05:22 | 2016-09-25T06:05:22 | 66,508,249 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 9,065 | py | # Back-Propagation of Neural Networks
#
# Written in Python. See http://www.python.org/
# Placed in the public domain.
# Neil Schemenauer <nas@arctrix.com>
# Ihor Menshykov <ihor.ibm@gmail.com>
import math
import random
import string
random.seed(0)
# calculate a random number where: a <= rand < b
def rand(a, b):
... | [
"noreply@github.com"
] | ibmua.noreply@github.com |
c3c37abc16b4f5fa3461a332ea338ff61a90d602 | 13f53a58840bbfa153c409aee782532ad6003cc1 | /api_accounts/serializers.py | a76590a7709b2ad578773356a77e0ce8f0993b71 | [] | no_license | kamils224/STXNext_training_program | 5516a144b5b0cdaf670adb25aaad4b53e192bab6 | cfd75a4865918044f19d0938e54cc5541974cbb2 | refs/heads/main | 2023-02-23T03:42:53.676389 | 2021-01-22T07:53:20 | 2021-01-22T07:53:20 | 327,868,946 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,816 | py | from django.core.validators import MinLengthValidator
from django.contrib.auth import get_user_model
from django.utils.http import urlsafe_base64_decode
from django.utils.encoding import force_bytes, force_text
from django.core.exceptions import ObjectDoesNotExist
from rest_framework import serializers
from api_accoun... | [
"kamil.sagalara@gmail.com"
] | kamil.sagalara@gmail.com |
1ab06f9362e775fa0e6a0757dbfa91bb7733461e | dd109fbddb45ca5581b1d65adae9a7a161767ea6 | /rule base/code/1P/ml_play_rule_base_1P_0552030.py | 2fec6672e7a42c4f70452fb19589da46b6322d26 | [] | no_license | BBS86x1023/PingPong-project-management-of-Machine-learning | 17d8c36c21bc4fa1b54a63d99dbed4975ab99140 | b2d48b7090fe3bc8916a42aa5c3b43d67b7d9284 | refs/heads/master | 2020-09-19T14:35:29.434855 | 2020-01-08T15:19:27 | 2020-01-08T15:19:27 | 224,237,960 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,926 | py | """
The template of the script for the machine learning process in game pingpong
"""
# Import the necessary modules and classes
import pickle
import time
import os
import games.pingpong.communication as comm
from games.pingpong.communication import (
SceneInfo, GameInstruction, GameStatus, PlatformAction
)
def ml... | [
"noreply@github.com"
] | BBS86x1023.noreply@github.com |
ffbaa8bb1b513994f93cd7cd81d76e16747c313c | d5a88d4023f7883c990470ad5568599c8ecb808f | /HW4/HW4.py | b46b37992512da1636c74443a29ccda16ace4ab7 | [] | no_license | eugene87222/NCTU-Introduction-to-Artificial-Intelligence | 8484a29d423698268769d8c1110546e58f1219cb | b243a1cec33b1a69c57ac1401ec973e30470753f | refs/heads/master | 2022-11-15T00:53:40.728019 | 2020-07-04T16:22:51 | 2020-07-04T16:22:51 | 277,032,944 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 9,481 | py | # coding: utf-8
import random
import numpy as np
def load_data(path):
label = {}
encode_y = 0
X, y = [], []
with open(path, 'r') as file:
for line in file:
if not line.strip():
break
t = line.strip().split(',')
if label.get(t[-1... | [
"noreply@github.com"
] | eugene87222.noreply@github.com |
f566e9aa3f42c1c830eea77652aa4e96263246c8 | c8f213f74b7f09f04726a3d1205d1c02d6aa3425 | /09/fish.py | 7a28b7f28ec029cafeddb988c9ca8ff9d32ba981 | [] | no_license | AlexandraMatulova/pyladies | 1c27b6a02f5a022145238a7d00bbe6260c313822 | bc0feafbd8668be950d4d9859f6f95e20b3a7ed5 | refs/heads/master | 2021-02-13T16:59:06.853044 | 2020-07-18T17:58:48 | 2020-07-18T17:58:48 | 244,714,769 | 0 | 0 | null | 2020-08-03T19:13:19 | 2020-03-03T18:45:17 | Python | UTF-8 | Python | false | false | 829 | py | class Fish:
def __init__(self, type):
self.type = type
def swim(self):
print('{} can swim in water.'.format(self.type))
class Whales(Fish):
def swim(self):
super().swim()
print('But it\'s not really a fish.')
def size(self):
print('{} is a giant of the ... | [
"sasa.matulova@gmail.com"
] | sasa.matulova@gmail.com |
7fe5bc22dac1909ed556d1c7bb7127e52a4d4dae | 53fab060fa262e5d5026e0807d93c75fb81e67b9 | /backup/user_189/ch20_2019_04_02_12_58_25_892579.py | fe0235bbac5d83917113e11d70f62f63d46439b1 | [] | no_license | gabriellaec/desoft-analise-exercicios | b77c6999424c5ce7e44086a12589a0ad43d6adca | 01940ab0897aa6005764fc220b900e4d6161d36b | refs/heads/main | 2023-01-31T17:19:42.050628 | 2020-12-16T05:21:31 | 2020-12-16T05:21:31 | 306,735,108 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 147 | py | nome=str(input('digite seu nome: ')
if nome='chris':
return ('todo mundo odeia o chris')
else:
return ('olá, {0}'.format (nome)) | [
"you@example.com"
] | you@example.com |
6b40f853a3603f93e0db9be5a0b86f49e57b59f5 | 74d8990226224c977083a0a437c18ee4ca2476f5 | /train_lsgan.py | 55881e8e24441b67427e8427d6029754a7bcbe2f | [
"MIT"
] | permissive | meow-noisy/visualize_transposed_convolution | 1d687bcd4600ab3c19486c4122e15ea7573be95a | 2e624fba86b197986a433c7aa838221b9c9f27a8 | refs/heads/master | 2022-11-09T05:50:15.054067 | 2020-06-20T13:42:02 | 2020-06-20T13:42:02 | 273,708,089 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 8,316 | py | # -*- coding:utf-8 -*-
import argparse
import os
import random
import numpy as np
import torch.nn as nn
import torch.optim as optim
import torch.utils.data
import torchvision.datasets as dset
import torchvision.transforms as transforms
import torchvision.utils as vutils
from net import weights_init, Generator, Discri... | [
"meow@example.com"
] | meow@example.com |
5aced33a2339a145f4c1617f662f268eadcd7741 | 3e40a1c877ee4a943bca7e136e7643b15791f267 | /Bhavuk_Smile_Detector.py | 5b4cdc7f940ccfbff078c1045cbd768c746b3216 | [] | no_license | bhavuk0909/Smile_Detector_Using_OpenCV | 08f79642de4327e3a6b1f9d01c9b16ad6a416733 | 96af9a7b6be4bcbfcc32e17bdb8c26f33428c996 | refs/heads/master | 2020-11-30T19:44:34.849128 | 2019-12-27T15:16:54 | 2019-12-27T15:16:54 | 230,465,305 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,237 | py | import cv2
face_cascade = cv2.CascadeClassifier('haarcascade_frontalface_default.xml')
eye_cascade = cv2.CascadeClassifier('haarcascade_eye.xml')
smile_cascade = cv2.CascadeClassifier('haarcascade_smile.xml')
#defining a function that will do the detections
def detect(gray, frame):
faces = face_cascade.... | [
"noreply@github.com"
] | bhavuk0909.noreply@github.com |
67a8c8410537108f5d2acb52d870cb3e0f56029a | a98e89e07d8ad6e67a28e5f75f397539b81de427 | /irrigation_app/views.py | c37bbc5916bc2ea1e591847d53c437874614b1c8 | [] | no_license | prkhrv/smart-Irrigation-system-Python | 7c860e60d13859d6abac89808139b7bfe21531f4 | 758dce93250114282496fff9e3131fd6dc4805ec | refs/heads/master | 2021-12-14T05:10:48.983441 | 2021-11-29T03:42:57 | 2021-11-29T03:42:57 | 168,005,269 | 5 | 2 | null | null | null | null | UTF-8 | Python | false | false | 601 | py | from django.shortcuts import render
from irrigation_app.models import CropData
from .irrigation import smart_irrigation
from django.contrib.auth.decorators import login_required
# Create your views here.
@login_required
def index(request):
values = ""
if request.method == "POST":
name = request.POST.g... | [
"prakharnegative@gmail.com"
] | prakharnegative@gmail.com |
0bf95284b0250d0e2b0917642b84ee6ce6f67b6e | f02efdef1e1ee5fccba85a657a1ac222bb7dd194 | /statisticalmechanics/src/programs_assessment_6/b1.py | 689a24eb0770e42e7b775d0b247dca3648dbe990 | [] | no_license | miknecht/courses | 413f45f9ccf5a562a4d02ea974bd9674132054c1 | 6fdbe92408f4a4a2ae15d0a95a8046c332ac502c | refs/heads/master | 2021-01-19T14:10:13.120787 | 2015-03-24T14:22:52 | 2015-04-11T15:42:21 | 30,188,723 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,132 | py | import math, random, pylab
def rho_free(x, y, beta):
return math.exp(-(x - y) ** 2 / (2.0 * beta))
beta = 20.0
N = 80
dtau = beta / N
delta = 1.0
n_steps = 4000000
x = [5.0] * N
data = []
for step in range(n_steps):
k = random.randint(0, N - 1)
knext, kprev = (k + 1) % N, (k - 1) % N
x_new = x[k] + ra... | [
"m_knecht@gmx.de"
] | m_knecht@gmx.de |
f24850b26c9bfb3587a50fbd1a85e2a19302db4a | 5161e650769614c7b189b54e0a9cfa1e47d8b6dc | /test.py | 26b7348cd50112a5054a01da7d02f22f04309e24 | [] | no_license | FHYN/Leetcode | 0791cd552f62fbfc3dea67a9edf6e13cef318037 | 14a1c976b65b742e8d7973a74468ea9f3bdefa97 | refs/heads/master | 2023-08-20T03:25:13.570318 | 2021-09-16T09:32:12 | 2021-09-16T09:32:12 | 268,718,908 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,553 | py | class Trie:
def __init__(self):
"""
Initialize your data structure here.
"""
self.root = {}
def insert(self, word: str) -> None:
"""
Inserts a word into the trie.
"""
dic = self.root
for w in word:
if w not in dic:... | [
"noreply@github.com"
] | FHYN.noreply@github.com |
b569408f618dfe7994f2eab431379db859377324 | b62025c7de18e9c755e2bfbfc3a23d41080d384b | /home_management/home_management/doctype/booked_houses/booked_houses.py | dd2b158a608c1776f2fb8941ca5379b5dd219d15 | [
"MIT"
] | permissive | dharsh2309/HomeManagement | 869fede0fd70727108a2aaed909a903d4832c4cd | fe83ff1b9027ecf01110e113a594ededc3bf68f9 | refs/heads/main | 2023-07-22T15:35:44.527918 | 2021-09-03T03:56:46 | 2021-09-03T03:56:46 | 402,638,352 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 268 | py | # Copyright (c) 2021, Dharshini and contributors
# For license information, please see license.txt
import frappe
from frappe.model.document import Document
class BookedHouses(Document):
def on_validate(self):
self.id=frappe.db.get_value("New Tenant","id")
pass
| [
"dharsh2309@gmail.com"
] | dharsh2309@gmail.com |
7639c596a784bb6a64eeae6e39cee143fb0f8de7 | 00d8e3f95516dba6bf4a688f889ebf251f10ea6d | /face_recognition/test/merge_FDDB_files.py | 5214aaccfabf2cbb4bbc6676ad3b7d7fe18b2c04 | [
"Apache-2.0"
] | permissive | 1160300614/faceRecognition | 7015efdd4a4d31e8f15759e8171b2dd721ff87c0 | c1470c13c82db071b04c62244e5b7d28e026c030 | refs/heads/master | 2022-10-09T12:11:50.328357 | 2020-06-12T01:34:55 | 2020-06-12T01:34:55 | 271,447,390 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 129 | py | version https://git-lfs.github.com/spec/v1
oid sha256:e4cd04fb31053ce97d2da4a52a1029ff1febba19c52246e574eb23461edde40c
size 1340
| [
"guanqiao000@163.com"
] | guanqiao000@163.com |
5f5c1794651cf07d80c9a89754cfb0e12a49387e | f506bee48d28fafc6158afa5a2e3fe52cd2dd074 | /funcs.py | a76b863704871c9fe2985efa3e025e1a1046e778 | [] | no_license | wakandan/hackathon | 38cc38cc226d1cd80d910a12206b67fe508aca6a | 93d4fe8b45bd1bc75d656073cbd31236b0a5569a | refs/heads/master | 2020-05-29T18:54:40.232013 | 2011-09-05T14:05:02 | 2011-09-05T14:05:02 | 1,525,831 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,014 | py | import matplotlib
import numpy
import matplotlib.pyplot as plt
def normalize(x):
'''x is a list of values'''
input_data = x[:]
N = len(input_data)
mean = float(sum(input_data))/N
variance = float(sum([i**2 for i in input_data]))/N - mean**2
return [float(i-mean)/math.sqrt(variance) for i in... | [
"wakandan@gmail.com"
] | wakandan@gmail.com |
c3c8c62c75b3a96cd5d71067e6269516d0c95ee0 | 2aace9bb170363e181eb7520e93def25f38dbe5c | /build/idea-sandbox/system/python_stubs/cache/4baf47439edb0ab2a6d043f8872032cbd5c6dee035b265d6f6b2b9443945c60a/pyexpat/errors.py | ead44496b49caa3d6d90ff34ba43efbfbac4b2f6 | [] | no_license | qkpqkp/PlagCheck | 13cb66fd2b2caa2451690bb72a2634bdaa07f1e6 | d229904674a5a6e46738179c7494488ca930045e | refs/heads/master | 2023-05-28T15:06:08.723143 | 2021-06-09T05:36:34 | 2021-06-09T05:36:34 | 375,235,940 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,532 | py | # encoding: utf-8
# module pyexpat.errors
# from C:\Users\Doly\Anaconda3\lib\site-packages\skimage\io\_plugins\_colormixer.cp37-win_amd64.pyd
# by generator 1.147
""" Constants used to describe error conditions. """
# no imports
# Variables with simple values
XML_ERROR_ABORTED = 'parsing aborted'
XML_ERROR_ASYNC_ENT... | [
"qinkunpeng2015@163.com"
] | qinkunpeng2015@163.com |
56bc7e285a243b20416b0354cc8bd2200989d3a0 | ac6e4102dfb49a4e49de0e2766feb6e80ab0b5c2 | /test/test_networking_project_netgw_attach.py | 74a8534b8692359526d9c3f667bbf6100f6e6b64 | [
"MIT"
] | permissive | hyperonecom/h1-client-python | df01f05ad295121e3dd391a3274c41e2f5b88e53 | 4ce355852ba3120ec1b8f509ab5894a5c08da730 | refs/heads/master | 2023-04-05T01:51:31.637002 | 2021-03-29T00:05:41 | 2021-03-29T00:05:41 | 319,309,525 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 852 | py | """
HyperOne
HyperOne API # noqa: E501
The version of the OpenAPI document: 0.1.0
Generated by: https://openapi-generator.tech
"""
import sys
import unittest
import h1
from h1.model.netgw_private import NetgwPrivate
globals()['NetgwPrivate'] = NetgwPrivate
from h1.model.networking_project_netgw_at... | [
"action@github.com"
] | action@github.com |
1cc9928d529ad5736e478cc4ac402889c072e6f5 | 91d1a6968b90d9d461e9a2ece12b465486e3ccc2 | /waf_write_f/xss-match-set_create.py | c7702ffe2384dfbda2f82dad83e597d3abc55b61 | [] | no_license | lxtxl/aws_cli | c31fc994c9a4296d6bac851e680d5adbf7e93481 | aaf35df1b7509abf5601d3f09ff1fece482facda | refs/heads/master | 2023-02-06T09:00:33.088379 | 2020-12-27T13:38:45 | 2020-12-27T13:38:45 | 318,686,394 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 866 | py | #!/usr/bin/python
# -*- codding: utf-8 -*-
import os
import sys
sys.path.append(os.path.dirname(os.path.abspath(os.path.dirname(__file__))))
from common.execute_command import write_parameter
# url : https://awscli.amazonaws.com/v2/documentation/api/latest/reference/ec2/describe-instances.html
if __name__ == '__main__... | [
"hcseo77@gmail.com"
] | hcseo77@gmail.com |
f3102916617b91a924eb59887357ea1f68f719b6 | d3800acc2c00237f15de167245da68a64fd8eb87 | /Problem 79.py | 861ba0befc07fe3a87ced7cb65400df62f512c02 | [] | no_license | Talophex/ProjectEuler | 09fe30f2f505a8e6cb789a6c42e4686601c7177b | 53f1ddeec4d7ef5e9442e587ef6776c283d1450c | refs/heads/master | 2020-03-21T19:37:16.061411 | 2019-01-01T20:37:27 | 2019-01-01T20:37:27 | 138,960,215 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 835 | py | # -*- coding: utf-8 -*-
"""
Created on Wed Dec 19 16:00:34 2012
@author: Lucas
"""
import itertools
def listception(small, big):
for i in xrange(1 + len(big) - len(small)):
if small == big[i:i+len(small)]:
return True
return False
data = ([])
rawdata = open('data.txt', 'r')... | [
"noreply@github.com"
] | Talophex.noreply@github.com |
50fbdb2af7853dc5f470233160794c745ea3abad | 7ff7f6df22dc5b5628357b007417ba61bfbe341e | /Reconstruction/LeNet-CNN.py | 5f9cc798dd0da7ed541dc98b840f89ce832e7866 | [] | no_license | Zhixuan-Jing/Software-design | d82250f72359bee90156905041b2c056fd8e0647 | be73ec9a97a7b9e598d69de118251e7ba8ddce3f | refs/heads/master | 2023-02-14T05:28:25.362036 | 2023-02-14T04:02:56 | 2023-02-14T04:02:56 | 220,354,967 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,071 | py | import torch
from torch import nn
from torch.nn.modules.activation import Softmax
from torch.nn.modules.linear import Linear
from torch.utils.data import DataLoader
from torchvision import datasets, transforms
from torchvision.transforms import ToTensor, Lambda
import matplotlib.pyplot as plt
from tqdm import trange
cl... | [
"1449450262@qq.com"
] | 1449450262@qq.com |
147de05b844678a03dfa6b53f8d666f100239fe1 | 2b43a5c77cf57431346f6c4dfa2004545a582eb7 | /flipkart_code/matching.py | ff2815c519a1b5130c81ee3ec33a1d6a08009953 | [] | no_license | 9310gaurav/BTP | fad5fed7513ab8646b476a867f89862f56dd510e | b5d0f1a51c5d6267ad545fed7ca092167dfcc8d7 | refs/heads/master | 2021-01-13T00:41:04.268054 | 2016-02-08T16:30:26 | 2016-02-08T16:30:26 | 44,297,849 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,147 | py | from os import listdir
from os.path import isfile, join
import re
import json
import nltk
import os
_digits = re.compile('\d')
def contains_digits(d):
return bool(_digits.search(d))
def match(s,catalog,inv_catalog):
#s="The PHBT98BK Bluetooth Home Theater Tower brings a beautiful, powerful sound system, 30-pin... | [
"gaurav9310.sharma@gmail.com"
] | gaurav9310.sharma@gmail.com |
34c447b2702d0a89243b9206af1af98f49ae8b5b | 5832f65747e6142d1b8de9d46aa507092782aafc | /Codeforces/1304/d/d1.py | 1153970f359f16501943bc2d0f927e46b15fc1ac | [] | no_license | subhashreddykallam/Competitive-Programming | 64cc42c5b23c03536187a1bb54e2b2ed82ee7844 | 973b66b4eb81352b98409ca52fa3aa75c28d8b6f | refs/heads/master | 2022-05-28T21:07:43.012922 | 2020-05-05T20:34:20 | 2020-05-05T20:34:20 | 226,814,369 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,618 | py | from itertools import permutations
def CeilIndex(A, l, r, key):
while (r - l > 1):
m = l + (r - l)//2
if (A[m] >= key):
r = m
else:
l = m
return r
def LongestIncreasingSubsequenceLength(A, size):
tailTable = [0 for i in range(size + 1)]
len = 0
tai... | [
"42376739+Storm1seven@users.noreply.github.com"
] | 42376739+Storm1seven@users.noreply.github.com |
bdceaf72d71ac934f3016eeeeb170f7c24750138 | 684140802ca9d743e660f8100cc508342bf97fd1 | /HTMLtoPDF/main.py | fcb18ad656ee0bdfc5c782f210f827f83b9bc477 | [] | no_license | polyx/HTMLtoPDF | f5b9cd359175d020dd0965cdc1df293e619a7954 | 8a8d0af9c037ca8954e05315fe369fd7a719f25e | refs/heads/master | 2020-04-13T17:28:54.514613 | 2015-10-06T12:46:32 | 2015-10-06T12:46:32 | 40,620,196 | 5 | 1 | null | null | null | null | UTF-8 | Python | false | false | 1,639 | py | import argparse
import os
import requests
from . import config
from .PDFConverter import ToPDF
__version__ = '0.0.1'
class ArticleRequester:
def __init__(self, url=config.settings['url'],
token=config.settings['token'],):
self.urls = url
self.response = None
self.req_url ... | [
"filosofov.dmitry@gmail.com"
] | filosofov.dmitry@gmail.com |
dae0e4d273d50bbe8abc3383ce60b3e4d7c2b7f5 | 7f984014e852300e6f3e4a9275b6757b0f6ec170 | /Gramma_Tech/text_sum_digits.py | 7ee5a79457cffcf37902f951f23e443175bb3db2 | [
"MIT"
] | permissive | royadityak94/Interview | b586691473a27564c45fd19f1f74ba093c3bd685 | 40a7f7e2edddbb525bc6b71ea72d6cd2bda5708f | refs/heads/master | 2023-03-11T19:44:16.280097 | 2021-03-02T01:24:45 | 2021-03-02T01:24:45 | 296,197,725 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 524 | py | import re
def shoppingList(items):
#prices = list(map(float, re.findall(r'\d[0-9]*\.?\d+', items)))
matches = re.findall(r'\d[0-9]*\.?\d*', items)
print (matches)
prices = []
for match in matches:
if len(match) > 0:
prices.append(float(match))
print (prices)
ret... | [
"adityakumar.roy94@gmail.com"
] | adityakumar.roy94@gmail.com |
b3463b6fc44f470bc1c49964be9a1293d2c14279 | 38d93c5fd72fee380ec431b2ca60a069eef8579d | /Baekjoon,SWEA, etc/프로그래머스/소수 찾기.py | d4f4170daebf494386f6c0311a6f986a270b6131 | [] | no_license | whgusdn321/Competitive-programming | 5d1b681f5bee90de5678219d91cd0fa764476ddd | 3ff8e6b1d2facd31a8210eddeef851ffd0dce02a | refs/heads/master | 2023-01-01T01:34:22.936373 | 2020-10-24T11:05:08 | 2020-10-24T11:05:08 | 299,181,046 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,080 | py | import itertools
# permutations = []
#
#
# def make_permutations(nn, n, permutation, visited):
# '''
# if n == 4, create [[0,1,2,3],[0,1,3,2],[0,2,3,4] . . .]
# '''
# if len(permutation) == nn:
# permutations.append(permutation)
# return
# for i in range(n):
# if not visited... | [
"blackgoldace@naver.com"
] | blackgoldace@naver.com |
fdeaa23678913b4526aec3842ecd4bad9976c424 | 20355674d95a32554db51394e2e7b9a115223a3c | /venv/Scripts/pip3.8-script.py | 3986897128466b028946136300b88dd2c5c96cd7 | [] | no_license | Melliandra/horoscope_web | c0d5cdac0fc416d2022f1476beefb618de77cebb | 5f80d97aada7d178e5cfde4c1e2defd92f7db704 | refs/heads/master | 2022-05-25T06:16:37.797094 | 2020-04-28T19:01:10 | 2020-04-28T19:01:10 | 259,726,041 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 421 | py | #!C:\Users\DNS\PycharmProjects\horoscope_web\venv\Scripts\python.exe
# EASY-INSTALL-ENTRY-SCRIPT: 'pip==19.0.3','console_scripts','pip3.8'
__requires__ = 'pip==19.0.3'
import re
import sys
from pkg_resources import load_entry_point
if __name__ == '__main__':
sys.argv[0] = re.sub(r'(-script\.pyw?|\.exe)?$', '', sys... | [
"anna.zvyagina1004@gmail.com"
] | anna.zvyagina1004@gmail.com |
375d004fc8b55883d80fbdb095c09df6b7efc9f2 | e30d85cf51b196c114d40e3a7bddbc9f78e20b3e | /blog/urls.py | a78cd97cd96da771b1d9bd50b3b91631891d6c34 | [] | no_license | devonuryilmaz/djangoBlogApp | 0775b06ca9fa5ebbd2a758e05bbfe900a5af9891 | 105e9f2f98d236003478979ad463018b352872e6 | refs/heads/main | 2023-02-20T13:07:17.711991 | 2021-01-23T17:26:39 | 2021-01-23T17:26:39 | 296,892,465 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,075 | py | from django.urls import path, re_path
from .views import post_list, post_delete, post_update, post_add, post_detail, add_comment, add_or_remove_favorite, post_list_favorite_user, new_add_comment, get_child_comment_form
urlpatterns = [
path('', post_list, name="post-list"),
path('create/', post_add, name="post... | [
"42644185+devonuryilmaz@users.noreply.github.com"
] | 42644185+devonuryilmaz@users.noreply.github.com |
59ab3d1d5a63173cf9c1ac54bfef4c2a531c017e | 9e354e804733f42f7eee8001ff6212b4f9bf9756 | /Backjoon/1920.py | 709c1eeb105588309b69e68e796cb9df588a3da9 | [] | no_license | OSUpdate/Algorithm | 7523be3bb13424f7638e2df08c99550f4f34c606 | a2131b8f993b961cb5cf3fee41aa7652aee1ae51 | refs/heads/master | 2023-09-01T14:39:25.802766 | 2021-10-19T05:54:40 | 2021-10-19T05:54:40 | 286,486,756 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 540 | py | from sys import stdin
input = stdin.readline
def findNum(arr,num):
start = 0
end = len(arr) - 1
mid = (start + end) // 2
while end-start >= 0:
if arr[mid] == num:
return 1
elif arr[mid] <= num:
start = mid + 1
else:
end = mid ... | [
"noreply@github.com"
] | OSUpdate.noreply@github.com |
810ec07271929b18b081f675595d3385d6dd3c62 | 3e321aa10954d1a206557fe10a06b2bb4cf7e1d3 | /dp/word_break.py | c0d88bb242d299f10c99344d8c7c3b2e611776a2 | [] | no_license | LQXshane/leetcode | 7f5ab93372f95f83996a8d11936a737240f54464 | cc6245c9519d2a249aa469eefc003e340bdbfa7c | refs/heads/master | 2021-01-12T03:03:20.252679 | 2017-10-13T17:31:38 | 2017-10-13T17:31:38 | 78,151,938 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 451 | py |
class Solution(object):
def wordBreak(self, s, wordDict):
"""
:type s: str
:type wordDict: List[str]
:rtype: bool
"""
T = [False] * (len(s)+1)
T[0] = True
for i in range(len(s)+1):
for j in range(i):
if T[... | [
"qxlin@bu.edu"
] | qxlin@bu.edu |
3149edc0e5c88ef8d9745ed55af8e9a3fe95e614 | 2b856cc40ddf549c6e6bad6e907137c065c4f68a | /vsf_user/migrations/0001_initial.py | 308185bc081a774c79436b0fd3d66fef07725cb2 | [] | no_license | Arleyn/vsf-incidents-server | 85728ff793df525f8efe5117af4ea54c98475062 | fb4abdae0ee08bad0a0f39e8338ccdc220373df9 | refs/heads/master | 2021-06-24T07:46:20.563311 | 2017-03-02T21:34:42 | 2017-03-02T21:34:42 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 815 | py | # -*- coding: utf-8 -*-
# Generated by Django 1.10.2 on 2017-01-04 17:34
from __future__ import unicode_literals
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
initial = True
dependencies = [
('authtoken', '0002_auto_20160226_1747'),... | [
"nestorbracho2207@gmail.com"
] | nestorbracho2207@gmail.com |
f6e7a97b21c20a6035ed7afb2e4c6894635d229b | 5da41afc2ba79606b93167eb62d4218f2a056b14 | /hints/asgi.py | 4c7bad1501342bb7ee4d4bc84fa6f6f6d41bd740 | [] | no_license | suchiundevia/project_hints_react_heroku | fb666db52ba1bd48aedeb5c55d0c572608a2a491 | cdf20bf025e500bbd0c4aef21205f702b9121623 | refs/heads/main | 2023-08-03T04:45:01.704096 | 2021-09-15T09:30:03 | 2021-09-15T09:30:03 | 406,698,925 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 387 | py | """
ASGI config for hints 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_SETTING... | [
"suchi.undevia@gmail.com"
] | suchi.undevia@gmail.com |
97e7d721ada841aa8ca6ee31fdab0f18457e35de | 97c93012ce3c7df353734bc9fa53f7ff4d2f56e0 | /enhance_img.py | 6ca63d79bf280fabcc6d66d3709af03478f27fd0 | [] | no_license | jcgarciaca/document-barcode-decodifier | 5dabe5bd5c7d057b239c8ceb38372cb97cff339b | d8ff9bfdd6103e701f3046e7407e9bc852c70db1 | refs/heads/main | 2023-08-17T18:39:34.600709 | 2021-09-17T23:35:18 | 2021-09-17T23:35:52 | 400,341,558 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 403 | py | from PIL import Image, ImageEnhance
import cv2
import numpy as np
#read the image
im_output = Image.open("cedulas_test/bar_7.png")
enhancer = ImageEnhance.Brightness(im_output)
factor = 1.5
im_output = enhancer.enhance(factor)
enhancer = ImageEnhance.Contrast(im_output)
factor = 1.2
im_output = enhancer.enhance(fact... | [
"julio.jcgc@gmail.com"
] | julio.jcgc@gmail.com |
95ed130bd1bdf6d9f9e4653be85a718c6b207282 | 61814396f58eb438edd00df9b9b19a9b2854f3ae | /test/id_generator_test.py | 8fcdad6e98a18a802c3270a707f38770cce3f1b0 | [] | no_license | rajatkhanduja/pigit | 83cbcaad7f04a68f542d8f6b2ab65e5d4f74e1c7 | ebc6131f6f93abae153f4cc89a730836511b192e | refs/heads/master | 2020-12-30T15:41:11.845468 | 2017-07-22T10:08:39 | 2017-07-22T10:08:39 | 91,156,309 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 618 | py | from unittest import TestCase
from pigit.id_generator import SerializerBasedIdGenerator
from pigit.serializer import DefaultSerializer
from pigit.bean import Blob
from hashlib import sha1
class IdGeneratorTest(TestCase):
def setUp(self):
self.id_generator = SerializerBasedIdGenerator(serializer=DefaultSe... | [
"rajatkhanduja13@gmail.com"
] | rajatkhanduja13@gmail.com |
b0ddb85d5d6654d0bbf42e807f0356fc1e877ba3 | 5a52ccea88f90dd4f1acc2819997fce0dd5ffb7d | /alipay/aop/api/response/AntfortuneContentCommunityContentEventSaveResponse.py | 460049c5dc88e8c5dfdbefc078a9cfe3196f03ef | [
"Apache-2.0"
] | permissive | alipay/alipay-sdk-python-all | 8bd20882852ffeb70a6e929038bf88ff1d1eff1c | 1fad300587c9e7e099747305ba9077d4cd7afde9 | refs/heads/master | 2023-08-27T21:35:01.778771 | 2023-08-23T07:12:26 | 2023-08-23T07:12:26 | 133,338,689 | 247 | 70 | Apache-2.0 | 2023-04-25T04:54:02 | 2018-05-14T09:40:54 | Python | UTF-8 | Python | false | false | 491 | py | #!/usr/bin/env python
# -*- coding: utf-8 -*-
import json
from alipay.aop.api.response.AlipayResponse import AlipayResponse
class AntfortuneContentCommunityContentEventSaveResponse(AlipayResponse):
def __init__(self):
super(AntfortuneContentCommunityContentEventSaveResponse, self).__init__()
def p... | [
"jishupei.jsp@alibaba-inc.com"
] | jishupei.jsp@alibaba-inc.com |
445ae012369e130a64640bffa4896eb632b25aef | 924f23fe702a4cc9badc298dd4a94a26738e4184 | /jokeBot.py | bd96230eaca1142a178260f99085efca52de7d75 | [] | no_license | EthanShapiro/JokeBot | d604eafcd1f30374b39461544541ab6c7af6792c | 879fb437dda08f229c04d229993b710d14691d74 | refs/heads/master | 2021-01-21T16:14:51.462550 | 2017-09-14T03:16:55 | 2017-09-14T03:16:55 | 95,403,268 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,216 | py | from core import jokeManager
from core import dataManager
def wait_for_input():
while True:
response = input("Would you like to hear a joke? (yes or shutdown)")
if response.lower() == 'yes':
return True
elif response.lower() == 'shutdown':
return False
else:... | [
"23350520+EthanShapiro@users.noreply.github.com"
] | 23350520+EthanShapiro@users.noreply.github.com |
e2617e2cd9d7417bb732d8f6e13ca6f4ddc86c80 | 5032338668ee36246cd4c02f53406854586061c5 | /tutorial/snippets/views.py | 97266ca9d36a441f8292a2c58b4b39d04a4fa9f8 | [] | no_license | Pravrevin/django | 2aac5cc7802b9edcddaa7d4ec0fe1bba52a605dd | 3925e910a8d8d4714e3885c07aa6558c172c1297 | refs/heads/master | 2020-08-22T20:15:16.706563 | 2020-05-08T04:31:43 | 2020-05-08T04:31:43 | 216,470,524 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,676 | py | from django.http import HttpResponse, JsonResponse
from django.views.decorators.csrf import csrf_exempt
from rest_framework.parsers import JSONParser
from snippets.models import Snippet
from snippets.serializers import SnippetSerializer
@csrf_exempt
def snippet_list(request):
"""
List all code snipp... | [
"noreply@github.com"
] | Pravrevin.noreply@github.com |
ce930868c5418fcd36576afd4c0612fe63c6ed33 | b9fd5a85cd0f7be28947bf30d20a29c33cdf3a8b | /show_me_the_data_structure/problem_2_file_recursion.py | 914d5978edd677856435801388fbdba1e8dc9b7e | [] | no_license | binay-shah/Udacity_DSA | c1c73c25c3e65007e2720aef7afae9e429a717ed | 8d349294b8b6c9d1c7a1806ff1109c399d444440 | refs/heads/master | 2022-11-19T02:44:40.696740 | 2020-07-11T01:48:44 | 2020-07-11T01:48:44 | 273,216,347 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,341 | py | import os
def find_files(suffix, path):
"""
Find all files beneath path with file name suffix.
Note that a path may contain further subdirectories
and those subdirectories may also contain further subdirectories.
There are no limit to the depth of the subdirectories can be.
Args:
suffix... | [
"binay18.shah@gmail.com"
] | binay18.shah@gmail.com |
0b7b5b3e422d4d86407298b5ea21c543f0c56a27 | 3f14972fce07bc05f2b63296b758baa7097ee323 | /1219. Path with Maximum Gold.py | 278a2aa56071e54aa21fef4771ff6194a36897c8 | [] | no_license | harshitpatel96/leetcode | b23ae12d7b59369c86e76a6653e64d1fe3f69cea | eac8116f29c7a2c905f9e3921ae7f497a636deb3 | refs/heads/main | 2023-04-02T02:05:04.960851 | 2021-04-03T05:26:16 | 2021-04-03T05:26:16 | 323,508,651 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 931 | py | class Solution:
def getMaximumGold(self, grid: List[List[int]]) -> int:
m, n = len(grid), len(grid[0])
maxGold = 0
def backtrack(x, y, currGold):
nonlocal maxGold
maxGold = max(maxGold, currGold)
nbrs = [(0, 1), (1, 0), (-1, 0), (0, -... | [
"noreply@github.com"
] | harshitpatel96.noreply@github.com |
99f5ef741697014160d292c601ee6639f776e935 | 54db996467fe30c2b540240f8fa48029414f8922 | /app/controllers/invites.py | ff471bf9e4931fc46535524baaae0754974ea3a6 | [] | no_license | wanman/rideshare | ecd5f7aaa9a9cd122cab7be95639100f6193b716 | cffb957e9ac500ae3c11b47009394e22d7ef7b6c | refs/heads/master | 2021-09-02T00:11:34.334558 | 2017-12-29T10:22:21 | 2017-12-29T10:22:21 | 113,056,951 | 0 | 1 | null | 2017-12-04T15:02:54 | 2017-12-04T15:02:53 | null | UTF-8 | Python | false | false | 3,754 | py | from app.common import toolbox
from google.appengine.ext import db
from google.appengine.api import search
from app.model import *
import datetime
from datetime import date
from app.base_handler import BaseHandler
from app.common.voluptuous import *
import json
import re
from app.common.email import send_invite, send_e... | [
"bananagus@gmail.com"
] | bananagus@gmail.com |
2e3c7259450c57b1ae6db5382c7f7aa424a5a2c9 | a5b6dfd04e49b86a4ec3ba1ca1fc941233fd1906 | /leetCode/46Permutations.py | 5ac95b13a5ac47b2245845689b668f8e2a71e15e | [] | no_license | JuDa-hku/ACM | c57423c4c619991ab5b8df170ace6c68fbe6bb48 | 3add05a6b07ec60ae148290f7f25d122336de47d | refs/heads/master | 2021-06-25T09:33:05.396914 | 2016-10-29T03:27:03 | 2016-10-29T03:27:03 | 21,881,993 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 553 | py | class Solution:
# @param {integer[]} nums
# @return {integer[][]}
def permute(self, nums):
res, C = [], []
self.permuteHelp(nums, res, C)
return C
def permuteHelp(self, nums,res, C):
if len(nums) == 0:
C.append(res)
return
for num... | [
"juda@ubuntu.ubuntu-domain"
] | juda@ubuntu.ubuntu-domain |
57d0af765c0bba1be41e4395fa594c95e8a52008 | 399b6f19250ea7e7abbf16020195fce9e81e0e41 | /WebSite/Django/my_study/weibo/migrations/0005_auto_20200416_1748.py | e9f813e83a1ca92b5157005ccdf483321ecaf279 | [] | no_license | zhanghui0228/study | 87cd248a2f3e4af38bf0d2416fed0b9515f54f45 | 43351858858e087d060630f2669e30546acbaf8f | refs/heads/master | 2020-07-23T05:50:02.556812 | 2020-05-24T10:40:04 | 2020-05-24T10:40:04 | 207,463,463 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 511 | py | # -*- coding: utf-8 -*-
# Generated by Django 1.11.27 on 2020-04-16 09:48
from __future__ import unicode_literals
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('weibo', '0004_weibouser_creaete_time'),
]
operations = [
migrations.AlterF... | [
"helloworldhui@163.com"
] | helloworldhui@163.com |
5487c57a446a467275770643367d248d4cebf8c7 | 60d6b8501d0be546437b26a6ee1f9fab97ec3897 | /platypush/migrations/alembic/versions/c39ac404119b_migrate_variable_table.py | 8efa908543bd7c4eba3c1c62b3282c99e74b4cd6 | [
"MIT"
] | permissive | BlackLight/platypush | 68284a85b2f9eef303d26b04530f075927b5834a | 446bc2f67493d3554c5422242ff91d5b5c76d78a | refs/heads/master | 2023-08-31T21:01:53.519960 | 2023-08-29T22:05:38 | 2023-08-29T22:05:38 | 109,421,017 | 265 | 25 | MIT | 2023-09-01T23:15:49 | 2017-11-03T16:56:24 | Python | UTF-8 | Python | false | false | 4,308 | py | """Migrate variable table
Revision ID: c39ac404119b
Revises: d030953a871d
Create Date: 2023-04-28 22:35:28.307954
"""
import sqlalchemy as sa
from alembic import op
from platypush.entities import Entity
# revision identifiers, used by Alembic.
revision = 'c39ac404119b'
down_revision = 'd030953a871d'
branch_labels ... | [
"fabio@manganiello.tech"
] | fabio@manganiello.tech |
094cb09586658ffb2844f07adad7a4ead2b9be54 | d59213b2b882126e444e2465117698b912b9402a | /神经网络/conv.py | b46afbd80fcd026dd77b0852ec91b524ccb0debc | [] | no_license | ITPreson/CV_learn | b144c9749fbc79e40daac16c0f07bf928de8c09f | a059ca30acca29d699b1942a3adec84bcdf4930d | refs/heads/master | 2021-03-22T22:19:32.366016 | 2020-04-11T02:39:49 | 2020-04-11T02:39:49 | 247,402,474 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,873 | py | import torch
import torch.nn as nn
import torchvision
from torchvision.transforms import transforms
from torch.utils.data import DataLoader
# Hyper-parameter
num_epoch = 5
batch_size = 100
learning_rate = 0.001
num_classes = 10
train_dataset = torchvision.datasets.MNIST(root="./",
... | [
"wang@WeiWangdeMacBook-Pro.local"
] | wang@WeiWangdeMacBook-Pro.local |
c92cb1c5e06e02f2ddd9286c1fe412ee27c6ed04 | d001d2aa56f236bad12355b6bfd2fac0e74bc02a | /main_app/migrations/0002_project_project_img.py | 20f2ddf2018b9d60fcd68e257bbb15e73b134bc3 | [] | no_license | desertlp/lorapaine | 87f04a4ca71ad1373b53eca7f224f69fcdaff39c | afa8a61fbae57a4fca03e9f05f934cce588f35d6 | refs/heads/master | 2022-12-25T16:23:20.008406 | 2020-10-07T06:58:58 | 2020-10-07T06:58:58 | 301,951,705 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 416 | py | # Generated by Django 3.0.5 on 2020-10-06 22:22
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('main_app', '0001_initial'),
]
operations = [
migrations.AddField(
model_name='project',
name='project_img',
... | [
"lorapaine1@gmail.com"
] | lorapaine1@gmail.com |
7f83718595618051bef42d0100ad2686dc7096e0 | 65a927535ebf06c24b5e755d6f9da5b627fc7efb | /spytank/net_remote/detecteur.py | e4be9b74ef3268fcacaed50f5add0668e8d980a3 | [] | no_license | Nebi-k/Robotique2020 | 8329f3fd32c4c8368f1cbe59445d48b9102eb459 | 259f3b9ee543d3599c59080cb3253e6e3e9443b3 | refs/heads/master | 2022-11-18T01:28:05.121922 | 2020-07-17T13:29:14 | 2020-07-17T13:29:14 | 269,599,431 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 337 | py | import spytank
from threading import Thread
import time
class distance(Thread):
def __init__(self,stop):
Thread.__init__(self)
self.stop = stop
def run(self):
while True:
dist =spytank.litDistance()
if dist[0] < 30:
spytank.stop()
... | [
"misternebi@gmail.com"
] | misternebi@gmail.com |
c9d4ac34beb6635814de7decc46d5f89599fa113 | 6781c27ffa01de9ff532991747530b3459fe3a13 | /switchme/profiles/migrations/0001_initial.py | 19e54c5b5901c72c4006e932c3670b7d6ad1e08a | [] | no_license | nikit34/SwitchMe | 9f83550b1446237584c2973316c544351d38d2fb | e561beeaea51fb4037a2bb6f8320ca31bc6cd815 | refs/heads/master | 2023-05-14T13:10:21.749514 | 2020-08-06T18:26:51 | 2020-08-06T18:26:51 | 282,092,858 | 0 | 0 | null | 2021-06-10T20:30:18 | 2020-07-24T01:25:19 | JavaScript | UTF-8 | Python | false | false | 1,631 | py | # Generated by Django 2.2 on 2020-08-01 18:40
from django.conf import settings
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
initial = True
dependencies = [
migrations.swappable_dependency(settings.AUTH_USER_MODEL),
]
opera... | [
"permikov134@mail.ru"
] | permikov134@mail.ru |
6d60e2ec9b7cae3397a6fc0edadaa40037633b41 | 275c25b4a8f8009799dc0e7aebab21df1e43f542 | /FruitStore/main.py | e2bc96dcd13b8dfc1b3f07acd8704117a6564c5a | [] | no_license | aranooke/Python-Data-Structure | 9a81cdf39a7d9a865a43b73b4e7db1f4f8a1e570 | 3e4ad8488385823b0c36f453159b463831a19335 | refs/heads/master | 2023-06-05T06:34:55.095557 | 2021-06-29T09:46:51 | 2021-06-29T09:46:51 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,708 | py | from FStore import FStore
from FStore import Cart
import time
import getpass
import logging
import json
def getAvilableStock():
stockInfo = open(r"FruitStore\stock.json", "r")
return json.load(stockInfo)
openStore = FStore(getAvilableStock())
cartInstance = Cart()
def getUserInput(fromWhichMenu):
inputM... | [
"sanjay.siddha3@gmail.com"
] | sanjay.siddha3@gmail.com |
50ce3de10406166f74d0afb5eeb7484769d608df | 74c5a64741e78e2af8f4f4d5df227ee53251f291 | /NewSparkRentModel/features_projects/data_uniformity.py | 726c1790b4c3d568b29426979ea00e9b7a211391 | [] | no_license | queenmary55/sparkrentmodel | e17b0b3fe903f3eaeed70ec8ec2d74748a3f1c9d | a4233eec5ff6ac8da6b953f6fa708caefa80e036 | refs/heads/master | 2020-04-01T20:16:20.772885 | 2018-08-03T16:54:10 | 2018-08-03T16:54:10 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,242 | py | #!usr/bin/ python
#- * - coding:utf-8 - * -
"""
@author:limeng
@file: data_uniformity.py
@time: 2018/04/{DAY}
"""
"""
1、数据一致性处理,理论上每个特征的都要做一致性处理
2、空值填充时有的特征已经做了一致性处理,因此在这里就不需要再处理此类特征
"""
from resource.configing import config as cf
from math_functions.math import Math
from pyspark.sql.functions import udf
fr... | [
"limeng@huizhaofang.com"
] | limeng@huizhaofang.com |
47fe148cfd3970866527a76d900bd6a16e5902c0 | fb4fc6ca3b6ea208a2377325fd1d41e6fe068734 | /tests/test_speed.py | 40c06c1d58652a5c103c60146cc0bb2ed869b958 | [] | no_license | nadia-el/ontology-semsim-py | d15977cebe5d750c256a4ce3ff3fdb6c6c7098a1 | 216ee2a7b83b951b3bce7865e1dd7c94acc17211 | refs/heads/master | 2022-04-16T21:08:53.126204 | 2020-04-03T23:12:47 | 2020-04-03T23:12:47 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,336 | py | from ontology_semsim.util import time_all_ancestors, time_all_jaccard
from ontology_semsim.fast_semsim import FastSemSimEngine
from pytest import approx
from typing import Optional, Set, List, Union, Dict, Any
from rdflib import URIRef, BNode, Literal, Graph, RDFS, OWL, Namespace
from ontology_semsim.semsim_rdflib impo... | [
"cjm@berkeleybop.org"
] | cjm@berkeleybop.org |
a81a75832052901de6f0a0a023484dc3601f7a40 | 7c5a6ad8653d0f99c25dc257ce27c61ac5430037 | /chapter-4/charter/constants.py | 457c74ef1b7641692a676eddea45d352584e0622 | [
"MIT"
] | permissive | PacktPublishing/Modular-Programming-with-Python | 01b7f70a22fc69d17188d8059d0c085b9845b5af | ba43042b7ef6278d4119785f1dbccd19994fa812 | refs/heads/master | 2023-02-11T06:23:53.653389 | 2023-01-30T08:51:36 | 2023-01-30T08:51:36 | 59,755,950 | 48 | 39 | null | null | null | null | UTF-8 | Python | false | false | 241 | py | """ constants.py
This module defines various constants used by the Charter package.
"""
CHART_WIDTH = 600
CHART_HEIGHT = 400
TITLE_HEIGHT = 50
X_AXIS_HEIGHT = 50
Y_AXIS_WIDTH = 50
MARGIN = 20
TICKMARK_HEIGHT = 8
| [
"packt.bharatp@gmail.com"
] | packt.bharatp@gmail.com |
c1d4c8b580775634ae3bb54a4d8f88fb946e5112 | c5e94b6ae552e64b128f5c8ba5f80f44b236ac51 | /blog/migrations/0010_auto_20160406_1306.py | 39896f5e71ea8738dc956f5c7a38eea9d7822650 | [] | no_license | vigupe01/my-first-blog | 1c837336ced4c0d8d3e28842934e9e91f1254ac2 | 5c26d10cb0f78a611ce1bbbe6d7b4a3242d00a48 | refs/heads/master | 2021-01-21T13:03:23.180902 | 2016-04-18T11:42:19 | 2016-04-18T11:42:19 | 55,500,097 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 425 | py | # -*- coding: utf-8 -*-
from __future__ import unicode_literals
from django.db import models, migrations
class Migration(migrations.Migration):
dependencies = [
('blog', '0009_auto_20160406_1259'),
]
operations = [
migrations.AlterField(
model_name='post',
name='... | [
"victorguijarro93@gmail.com"
] | victorguijarro93@gmail.com |
5a1d87df7a066281342eb5ce8eaa7bd75446b6dd | 12f03dbeff75c4fc7d1c15326b4b317338735058 | /adv_search1.py | 21a2da2347bdc49507242e86304204c191b20438 | [] | no_license | dzarco/hack.uva | fa969e4253a0f6697000c015ea246df46e38dd32 | 05a99673f7b1d2e54c50a1922e1a9c7768e6d5bb | refs/heads/master | 2021-01-23T04:14:01.634780 | 2017-03-26T17:46:53 | 2017-03-26T18:44:39 | 86,176,379 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,774 | py | #!/usr/local/bin/python
import urllib.request
import bs4
import cgi
def facebook_search(a):
try:
data = urllib.request.urlopen("http://facebook.com/"+a)
bool = False
except urllib.error.HTTPError:
bool = True
return bool
def twitter_search(a):
try:
data = urllib.reque... | [
"noreply@github.com"
] | dzarco.noreply@github.com |
99954f138f7e963f722b10e3831566d321aec4b5 | fa3f7b26b623c071612462c8fec71c944c6ad10d | /cogs/search.py | feba8647d7ab2bd2f7d60b62650c380b89591629 | [
"MIT"
] | permissive | sarzz2/bonafide-bot | fc4810d7ccd08f9e4298b8f4189382f2da3f18ce | c61c738124099144ed4eb173d423567d3465a95e | refs/heads/master | 2023-06-17T21:58:22.344984 | 2021-07-23T15:15:56 | 2021-07-23T15:15:56 | 376,736,401 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,256 | py | from discord.ext import commands
from googlesearch import search
from dotenv import load_dotenv
import requests
import os
load_dotenv()
google_api_key = os.getenv("google-api-key")
def setup(bot: commands.Bot):
bot.add_cog(Search(bot=bot))
class Search(commands.Cog):
def __init__(self, bot):
self.b... | [
"sarthaksingh2001@gmail.com"
] | sarthaksingh2001@gmail.com |
ccfac22a5a38d03aaf49369740523ca537f17435 | f3806d9fb54773908cd9704121a543b114470aca | /angr/procedures/definitions/win32_compstui.py | e3654bf84bcd95b3c81d56795784dd736af69b89 | [
"BSD-2-Clause"
] | permissive | angr/angr | 8ae95fceca51b0a001de56477d984dd01193ac1d | 37e8ca1c3308ec601ad1d7c6bc8081ff38a7cffd | refs/heads/master | 2023-08-17T03:15:21.007865 | 2023-08-15T18:44:57 | 2023-08-15T18:44:57 | 40,328,394 | 7,184 | 1,306 | BSD-2-Clause | 2023-09-14T20:14:23 | 2015-08-06T21:46:55 | Python | UTF-8 | Python | false | false | 4,752 | py | # pylint:disable=line-too-long
import logging
from ...sim_type import SimTypeFunction, SimTypeShort, SimTypeInt, SimTypeLong, SimTypeLongLong, SimTypeDouble, SimTypeFloat, SimTypePointer, SimTypeChar, SimStruct, SimTypeFixedSizeArray, SimTypeBottom, SimUnion, SimTypeBool
from ...calling... | [
"noreply@github.com"
] | angr.noreply@github.com |
d2162dddde799f744fe944a44e2c4f42cb7a6370 | 2a0f5d71540376e11cf88210dbda35d339cc39c0 | /blog/Otros/views1 (copia).py | 441393b59386a8db057fb0f66d1b3c3eddcac93a | [] | no_license | JenniSuce/djangoapp | 8dcb8765019b7a9a9c757e9034f2889e53c5cc02 | 2e41d6a599757a5ef84cb423855e38ab4e02d677 | refs/heads/master | 2020-09-20T22:44:14.306741 | 2016-11-18T17:55:31 | 2016-11-18T17:55:31 | 67,233,058 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,907 | py | #from django.shortcuts import render, get_object_or_404, redirect
#from blog.models import Postear
from django.utils import timezone
#from .forms import PostearForm
# Create your views here.
from django.shortcuts import render, get_object_or_404, redirect
from django.contrib import messages
from .forms import AlumnosF... | [
"jenni_su@hotmail.com"
] | jenni_su@hotmail.com |
ffee585ca59d66cacdd2be00e0741af142fd2230 | 7523529382034ce0e9e421ca0200bdd5ad48fe05 | /bin/date.py | cdcb9dc7592809ac071d9728ae1414053078fe8b | [] | no_license | hiddenman/impexp | 4ac2fa35d46e437c902bf54c9854fae76cee5cdd | 4787c5cd46d41e9f9b7322e90f65ef23f9abfa1b | refs/heads/master | 2021-08-19T13:36:58.016127 | 2017-11-26T11:57:18 | 2017-11-26T11:57:18 | 112,079,004 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 7,593 | py | # -*- coding: cp1251 -*-
# module for parse date and return valid full date
# TODO:
# + Check if last date in period is greater than first date in period (get_dates->split_period_date?)
# + А есть ли поддержка даты без года?
import os, sys, string, log,cfg,time,inspect
def _log(logf,facility,logstr):
""" Internal... | [
"hiddenman@altlinux.org"
] | hiddenman@altlinux.org |
7033d29fc587ac28b326d1c53afe7c3621417640 | c3a1da84822ec8f72c2e5688bae988ffefab8418 | /ranzhi39/cases/ranzhi_test_adduser.py | 9e3031ec271168d7649c1ddd31500d1bfedda078 | [] | no_license | Amiequan/python-1 | 61305c93001847de1a623975db47e349030c1209 | 94290c8b7728ff73a5d3805bd12a8262e56a164e | refs/heads/master | 2021-05-11T22:07:09.979464 | 2018-01-15T02:10:35 | 2018-01-15T02:10:35 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,048 | py | import csv
import unittest
from base.ranzhi_driver import RanzhiDriver
from pages.ranzhi_adduser_page import RanzhiAdduserPage
from pages.ranzhi_login_page import RanzhiLoginPage
class RanzhiTestAdduser(unittest.TestCase):
def setUp(self):
self.driver = RanzhiDriver('Firefox')
# self.driver.naviga... | [
"Amierzeng@gmail.com"
] | Amierzeng@gmail.com |
8e663732d537d70560977ecfd86ed7219fba00c6 | 2cfe0eac67c1d5c42c7daf9a4e05925eb77333dd | /import2firebase.py | c8efd76b3e49bfbd721a0641007b1c9a330a3fdf | [] | no_license | cehali/Yummly28k_refactor | 230b5c6c25da299f72d6405074d32232b722a027 | 3a42ab52b911c4b7dd2481d1a97713861c42dbdb | refs/heads/master | 2021-05-03T10:18:57.877494 | 2018-02-06T22:57:33 | 2018-02-06T22:57:33 | 120,532,184 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,728 | py | import json
import firebase_admin
from firebase_admin import credentials
from firebase_admin import db
with open('recipes_withDishType_withoutParent_specialIndex_3.json') as json_data:
recipes_data = json.load(json_data)
cred = credentials.Certificate('reciperecommender-a2348-firebase-adminsdk-y153k-b5e35e8df0.js... | [
"cezary.haliniarz@gmail.com"
] | cezary.haliniarz@gmail.com |
0a239158da7a4e929daf2fab7fc0257797715246 | 3fcb1d6e8566f1d31237c934a75ffbfa4b5742e0 | /app_case/migrations/0001_initial.py | 9d41d9298f47319eed946430f88a15e6ecd4fdd2 | [] | no_license | xuxushenlan/itest_platform | 42714bd9ee5dc776aefecb80fdeff3bfa654785e | 56ced10fc9fe5ba05f6b699c98b882b93e9982e3 | refs/heads/master | 2021-02-23T08:02:16.418178 | 2019-12-21T10:11:49 | 2019-12-21T10:11:49 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,409 | py | # Generated by Django 2.2.6 on 2019-11-30 14:46
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
initial = True
dependencies = [
('app_manage', '0002_module'),
]
operations = [
migrations.CreateModel(
name=... | [
"fnngj@126.com"
] | fnngj@126.com |
a1d57be50b7c6b7de643f9c7e0d3ee889b0adefe | cf7118bcfbde5d2bfae51f74bffb44a5f39b3961 | /examples/discoro_client3.py | ee9165856b1f16aa58adac8fc11d8cec2376b2f3 | [
"MIT"
] | permissive | tierralibre/asyncoro | b6aba8654a6c974898590f7814190c805704da1f | d0b7b4bb4f4e569235ee74ccc52810d74fe8af12 | refs/heads/master | 2021-01-17T07:56:01.467307 | 2016-08-06T19:24:56 | 2016-08-06T19:24:56 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,981 | py | # Run 'discoronode.py' program to start processes to execute
# computations sent by this client, along with this program.
# Example where this client sends computation to remote discoro process to run
# as remote coroutines. Computations are scheduled with custom scheduler
# (without using RemoteCoroScheduler). Remote... | [
"pgiri@yahoo.com"
] | pgiri@yahoo.com |
d5d4baea0691ce4c22e59e1380f378139f6e1566 | c2e2fe9ccd65e3fbbb98668743b0b4152e8f6d5a | /xgboost_rank.py | 95a4a470f15616c1ecdc1aa5857f3db51fdfa3d0 | [] | no_license | 15090066263/--- | bbb92ede1142709bc9ed867cc622087a018a87f1 | e816d27cd26b25170a27c10f40b0e9900cea62af | refs/heads/master | 2023-03-16T01:26:06.758005 | 2016-08-03T05:39:15 | 2016-08-03T05:39:15 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,663 | py | # -*- coding:utf-8 -*-
#使用xgboost进行预测
import pandas as pd
import xgboost as xgb
from sklearn.cross_validation import train_test_split
import os
train_x_numeric_rank_csv = '../data/train_x_numeric_rank.csv'
train_x = pd.read_csv(train_x_numeric_rank_csv)
test_x_numeric_rank_csv = '../data/test_x_numeric_rank... | [
"noreply@github.com"
] | 15090066263.noreply@github.com |
53088444bd80e9b67010533ddef20954542c298b | f253b4c50ac8f60646c1aeff49f6621080032260 | /src/clv.py | 9135a5718125e4d59ba273c9dc39609e5009b997 | [
"MIT"
] | permissive | xuwenyihust/Shutterfly-Customer-Lifetime-Value | f4ad354d81f92b4eb89b9d9eaad7b7a72a032865 | b7c63daeb45cce22ca1af98a9cb02de053c0ae4c | refs/heads/master | 2021-01-25T00:49:24.966183 | 2017-06-19T03:14:50 | 2017-06-19T03:14:50 | 94,696,515 | 0 | 0 | null | 2017-06-19T02:17:34 | 2017-06-18T15:40:07 | Python | UTF-8 | Python | false | false | 5,329 | py | import os
import json
import argparse
from datetime import datetime
import heapq
#from customer_info import customer_info
#from time_frame import time_frame
class customer_info(object):
def __init__(self, customer_id):
# Customer ID
self.customer_id = customer_id
# Record all the orders
# HashMap<order_id, ... | [
"1016635786@qq.com"
] | 1016635786@qq.com |
8f9f2b4084e6feae2c4e3634ec6c31e48e4bc526 | b64c45e75aa215ddcf7249fb92e047f3e7731187 | /projectdir/utils.py | a0dfa25016c6994023a415d114a185558e6928ca | [] | no_license | johngaitho05/CohMat | 6731b4dfb94475c75f1cd1d2ec55cc810729f939 | ff5b8e5eb877f68a0477f4f19b78c6e7c407af2c | refs/heads/master | 2022-12-12T15:55:53.363782 | 2021-04-04T13:17:05 | 2021-04-04T13:17:05 | 239,868,710 | 1 | 0 | null | 2022-11-04T19:31:50 | 2020-02-11T21:31:47 | Python | UTF-8 | Python | false | false | 2,081 | py | import random
from datetime import datetime, date, timedelta
from django.template.defaultfilters import timesince, register
from django.utils import timezone
import pytz
from django.utils import timezone
class AgoTime:
def __init__(self, date_time):
ago = get_ago_time(date_time)
if type(ago) != s... | [
"johngaitho05@gmail.com"
] | johngaitho05@gmail.com |
d6e8790d4afbffe19764a4389946f426ab19b25a | 7da146cd833653a7fa992e4a36dc5105ad04464d | /Full-Stack Application (React, Docker, Python and more)/server/leads/migrations/0003_auto_20210125_1133.py | d602f250ddb58343d4a24fde5983192adf828095 | [] | no_license | theonewithcurlyhair/ProjectsToShow | 71348ea95193dd3e294e361f488d1fa6cb57408f | 36a0c6cecc941f07653ec4206e0a74d03bf0482d | refs/heads/master | 2023-02-28T06:05:59.740161 | 2021-02-02T16:06:04 | 2021-02-02T16:06:04 | 335,330,817 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 378 | py | # Generated by Django 3.0.5 on 2021-01-25 11:33
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('leads', '0002_auto_20210125_1131'),
]
operations = [
migrations.AlterField(
model_name='lead',
name='notes',
... | [
"kot33adpot@gmail.com"
] | kot33adpot@gmail.com |
ec2d819025e095b8eab845d99f83be6bd2626e1e | d69975f83bfe5ced61b0a52b5e81e786ea654a8d | /ensemble/util.py | 746759c473a6370a23ad43a19d2fca9142a49a04 | [] | no_license | sudharkj/ml_scripts | 3cceca29aabc2597fc76c2b5070500b70275d852 | fcf6938383a212f108b32157f4b992e3c11ba4ad | refs/heads/master | 2020-03-22T21:39:58.685461 | 2018-08-15T05:54:59 | 2018-08-15T05:54:59 | 140,705,143 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,569 | py | # From the course: Ensemble Machine Learning in Python: Random Forest, AdaBoost
# Link: https://www.udemy.com/machine-learning-in-python-random-forest-adaboost/
import numpy as np
import matplotlib.pyplot as plt
from sklearn.tree import DecisionTreeClassifier, DecisionTreeRegressor
def plot_decision_boundary(X, mod... | [
"sudha.rkj@gmail.com"
] | sudha.rkj@gmail.com |
d2f08b23a99d3c829020c94114b056e7b2cbf735 | bfc1864e5b4eef5be60fcc5a9a8411bd70a736f9 | /1-basics/4-repetition/3-nested-loop/2-nestings/bot.py | 8f4158dc22fc3de4f7289413ac96340249d31a4e | [] | no_license | 4OKEEB90/COM404 | 7eadae25e93903010017f824022e4a79fac63e69 | 07991aa632063caff1bfb966b40777c469cbf092 | refs/heads/master | 2020-07-31T09:14:46.819021 | 2019-11-26T12:13:48 | 2019-11-26T12:13:48 | 210,556,802 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 301 | py | print("Enter a sequence of characters consisting of dashes and two markers e.g. \"X----X\".")
seq = str(input())
print("Please enter the character for the marker")
mk = str(input())
for p in range (0,len(seq),1):
if seq[p] == mk:
count = 0
else:
count += 1
print(str(count))
| [
"4okeeb90@solent.ac.uk"
] | 4okeeb90@solent.ac.uk |
2014f2ffda5a4e7cacfe8f4a37985de9b35d1d3f | 51e3aeebc9e5088854301c9d7d6b146d200db971 | /LVQ and Linear Regression/lvq-example.py | c5f8c3e9d5547eaac6a8c241d45da3042866e7f9 | [] | no_license | TheMaxmillanRies/Machine-Learning-Clustering | c54a68ac3520636e5bff0c91296a5053f7ada187 | cd70420fb8e27a65c77103d313f102cd030ad7c2 | refs/heads/main | 2023-02-08T06:03:34.357420 | 2020-12-20T18:36:13 | 2020-12-20T18:36:13 | 323,130,747 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 639 | py | from slearning import LVQ1
import pandas
import numpy as np
import matplotlib.pyplot as plt
X = pandas.read_csv('datasets/lvqdata.csv')
X = X.to_numpy()
y = np.array([1 if i < 50 else 2 for i in range(X.shape[0])])
prototypes = [1, 2]
for p in prototypes:
lvq = LVQ1(n_classes=2, learning_rate=0.002, prot_per_cla... | [
"maxmillan.ries@yahoo.com"
] | maxmillan.ries@yahoo.com |
a12b8ff3f8ee8f03e99454705e3c22e6236d4ec9 | f45acfa5004aa2acbd833044dc067f7e4f2bb9f8 | /hackerrank/tracks/data_structures/queues/castle_on_the_grid.py | 512464e8d5edc4b4c6c8f3d6cfcc001e4be91ef4 | [] | no_license | tmarice/cp | 8652353af73034bf02ceaf66c3c3375645c3a64a | 70c9e7ab30f55f5e2ccca3aba2777716857b8fcd | refs/heads/master | 2021-01-02T22:59:15.653805 | 2018-12-03T21:42:42 | 2018-12-03T21:42:42 | 99,430,307 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,054 | py |
from collections import deque
def get_neighbors(r, c):
cells = []
# up
i = r - 1
while i >= 0 and m[i][c] != 'X':
cells.append((i, c))
i -= 1
# down
i = r + 1
while i < n and m[i][c] != 'X':
cells.append((i, c))
i += 1
# left
i = c - 1
while i... | [
"tmarice@gmail.com"
] | tmarice@gmail.com |
801a2b62b4da99a4dcc49110be6c373608da7381 | 7b1a2930931191444c76d0ee4863912dc811ff4f | /advertising/templatetags/image.py | 0d586ae2cdf441bfb2b19177898112acb045fa95 | [
"BSD-3-Clause"
] | permissive | django-ve/django-advertising | 97a68e49dc2102bfc2dc50eac4fbd443b44f3af8 | d369de379c224161e1c8d5eecde14bfb2b7423c3 | refs/heads/master | 2022-11-21T20:31:53.675161 | 2020-07-23T16:27:11 | 2020-07-23T16:27:11 | 281,835,835 | 0 | 0 | null | 2020-07-23T02:59:43 | 2020-07-23T02:59:42 | null | UTF-8 | Python | false | false | 2,527 | py | import sys
from django import template
from django.conf import settings
from django.shortcuts import get_object_or_404
from django.utils.safestring import mark_safe
from ..models import Advertising
register = template.Library()
@register.simple_tag
def get_images_advertising(height=100, campaign="", *args, **kwarg... | [
"martinpeveri@gmail.com"
] | martinpeveri@gmail.com |
caa8363fd5c97ab47dc848efc22a0d5699ff2f3d | 6acd913b20546b96d9357600ebc9c489c8f68efd | /analysis/o2_lim.py | 8e15f0e5b28ecbc8d53df94dab4f0baa7bfb3b30 | [
"MIT"
] | permissive | Lokamruth/Cancer-compe-strat | eecaeea042af6e419100bb850b3c538ffea86a67 | e4decacd5779e85a68c81d0ce3bedf42dea2964f | refs/heads/master | 2023-08-03T08:45:33.294214 | 2021-09-15T05:46:25 | 2021-09-15T05:49:06 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,833 | py | import numpy as np
import pandas as pd
import matplotlib.pyplot as plt
import common_fn as cf
plt.rcParams["svg.hashsalt"]=0
#Input parms
o2_lim_arr=np.empty([0,2])
for llim in np.arange(0,1,0.2):
for ulim in np.arange(llim+0.1,1,0.2):
o2_lim_arr=np.append(o2_lim_arr,[[llim,ulim]],axis=0)
parm_format='{:.1... | [
"harshavardhan.bv@students.iiserpune.ac.in"
] | harshavardhan.bv@students.iiserpune.ac.in |
3b0309362a3d754a4bac98f858c829933e8829d4 | 8d6ce1c60ebad9b6469833d1d423bfb789737a47 | /homeworks/hw3/list_users.py | fe44e5a1ca5d1450a367273986de156157c88cc7 | [] | no_license | yliya1991/python_course_garahasheva | b164b66e079e888bc8356712b992acdce0109da9 | edae3c4366838ee4b409cbd60d4e4e29321d070f | refs/heads/master | 2022-07-03T22:17:52.770747 | 2020-05-12T17:27:30 | 2020-05-12T17:27:30 | 257,084,926 | 0 | 0 | null | 2020-05-12T18:10:48 | 2020-04-19T19:29:59 | Python | UTF-8 | Python | false | false | 200 | py | from faker import Faker
def users_list(count: int=100):
fake = Faker()
result = ''
for i in range(count):
result+=(fake.name()+' '+fake.email()+ '\n')
return result
| [
"yuliya.zayceva.911@gmail.com"
] | yuliya.zayceva.911@gmail.com |
900e9bf78634437ba8695f4eaed0509dfd542b60 | ff39df8d08d490c07e8908972273a296a916f6c5 | /scripts/demo_example_a.py | 71a18be58c87e434943b517ee840d6b94a1026f6 | [] | no_license | ilinojkovic/catkin_cython_example | e13066e8329534a12f63b458ad56db615a608b1c | 6b335f56f2437520831798cce4f631959168a2bc | refs/heads/master | 2020-05-23T13:40:00.672197 | 2019-06-03T10:33:37 | 2019-06-03T10:33:37 | 186,782,719 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 144 | py | #!/usr/bin/env python
from catkin_cython_example.example_a_factory import get_a
if __name__ == '__main__':
a = get_a(10)
print a.get()
| [
"ilija.stanojkovic@gmail.com"
] | ilija.stanojkovic@gmail.com |
a88810861bbfe0d3309fd3d06610071b44b273a4 | 8fa017b83d3b94962c212366f6eaa7ebcfc7f653 | /crazylib/core/libtmux/server.py | 641312c0a5a8faa661e2b4271b768f5f7baeeb18 | [
"MIT"
] | permissive | crazysnowboy/Crazylibs | a481192c38098b7de89f52d213521b8b37bc315b | eb5128df132ec97d76a233d121ec02484ccb2725 | refs/heads/master | 2021-07-04T02:03:51.699527 | 2020-10-28T01:40:25 | 2020-10-28T01:40:25 | 193,744,219 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 15,584 | py | # -*- coding: utf-8 -*-
"""Pythonization of the :term:`tmux(1)` server.
libtmux.server
~~~~~~~~~~~~~~
"""
from __future__ import absolute_import, unicode_literals, with_statement
import logging
import os
from . import exc, formats
from .common import (
EnvironmentMixin,
TmuxRelationalObject,
has_gte_ver... | [
"kailinchen@faceunity.com"
] | kailinchen@faceunity.com |
06dea2f47072e3eb1f7f198f4789000a3bf1ca0f | 994727432f6a3ced0cc5aa954771a0adfd8c3811 | /dbms_site/urls.py | 03d2d14a27cf73cd079b36a24d3596a60581e89d | [
"MIT"
] | permissive | deep2696/DBMS_Website | d926c87adc94253ef749bb574675640ca147fa7b | 849d0bd509e56d35c138fa6f410d693175523aa4 | refs/heads/master | 2020-04-03T21:51:16.382150 | 2017-11-18T05:13:06 | 2017-11-18T05:13:06 | 155,584,057 | 0 | 0 | null | 2018-10-31T15:52:01 | 2018-10-31T15:52:00 | null | UTF-8 | Python | false | false | 926 | py | """dbms_site URL Configuration
The `urlpatterns` list routes URLs to views. For more information please see:
https://docs.djangoproject.com/en/1.11/topics/http/urls/
Examples:
Function views
1. Add an import: from my_app import views
2. Add a URL to urlpatterns: url(r'^$', views.home, name='home')
Class-... | [
"raghavg7796@gmail.com"
] | raghavg7796@gmail.com |
9bc9e57f415526057f2a2aa24d732b612a705123 | 9b61c0bdc3013f7b44a03da4552f27002fccb758 | /general/spiral_traveral.py | 1f53af4fb3d7a0582c4738fc34d156584a1f60c7 | [] | no_license | sunnysidesounds/InterviewQuestions | 0a9145858fedc3ed246eb401b8cc5814b8a9a6d6 | 028d338700838dbb82aa2f2aea4f82eb870cb528 | refs/heads/master | 2021-03-03T10:41:59.245836 | 2020-10-27T20:24:18 | 2020-10-27T20:24:18 | 245,955,445 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,991 | py | def spiralMatrixPrint(row, col, arr):
# Defining the boundaries of the matrix.
top = 0
bottom = row-1
left = 0
right = col - 1
# Defining the direction in which the array is to be traversed.
dir = 0
while (top <= bottom and left <=right):
if dir ==0:
for i in range(... | [
"sunnysidesounds@gmail.com"
] | sunnysidesounds@gmail.com |
a1812f7f2ebf3080a7e2a9e6e77a45f739bd7ac5 | e65a428ca7ee11d2f62d702842d4afbd493f08a4 | /dictionaries/odd_occurrences.py | 94e312ac04aa7a670ac1baa72e8af5f96bccd5f7 | [] | no_license | NikiDimov/SoftUni-Python-Fundamentals | d8ba24a06c4366e76bdc69f1c5225dca29fe955e | 5bb1bf5928e40f2bac867d33566c8b9dac13f566 | refs/heads/main | 2023-07-15T05:57:57.085880 | 2021-08-19T10:27:45 | 2021-08-19T10:27:45 | 323,631,864 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 400 | py | words = input().split()
words = [el.lower() for el in words]
dictionary = {}
final_list = []
value = 1
for index in range(len(words)):
key = words[index]
if key in dictionary:
dictionary[key] += 1
continue
dictionary[key] = value
for key, value in dictionary.items():
if dictionary[key] %... | [
"niki.dimov86@gmail.com"
] | niki.dimov86@gmail.com |
e90c2f5b3dafdf720e55ab32568ca0901b82703d | 1cedcf27afa82ada8eb9fb929bacc5233ecfb807 | /process_data/create_entity_annotated_corpus.py | 4ebe173f354ee7fccf225cc357946d2833e93497 | [] | no_license | lukuang/trec_news | b4ae20ea0a9d72524e92287212b9753727b2ae0d | 1a58e9ca9317dc16a327d2e5b259c257ddda6531 | refs/heads/master | 2020-03-17T06:59:43.204178 | 2019-04-04T13:25:48 | 2019-04-04T13:25:48 | 133,377,851 | 1 | 1 | null | null | null | null | UTF-8 | Python | false | false | 9,378 | py | """
Create corpus with entity annotation and each entity
will be replaced by its cannonical form with some changes.
More specifically, each entity will have 'ENT' annotated at
the begining and the end. Besides that, the underscores
and all other symbols to connect terms in the
cannonical form of the entity will be... | [
"lukuang1989@gmail.com"
] | lukuang1989@gmail.com |
d977250ceea5379d64823d5bd0fe50134a91e971 | c38705c0dbcae486faf00301bda825b6588890e1 | /app/sample_app/POD/PodLine.py | 039783a6941422391b14bd1396dfa360dd18a87d | [] | no_license | eguerrer1/pipeline | 1ce2a978aa1e21e6d1a321365aa1b8680402db37 | 19ab490673699a1ffd04b21a1570e795e2df1526 | refs/heads/master | 2021-01-25T12:43:34.168446 | 2018-04-04T00:15:49 | 2018-04-04T00:15:49 | 123,501,869 | 0 | 0 | null | 2018-03-01T22:55:05 | 2018-03-01T22:55:05 | null | UTF-8 | Python | false | false | 1,897 | py | import subprocess
import os
from PIL import Image
import pytesseract
import time
outlineFilename = None
framesPath = None
#User Inputs
def setUp(podcastVideoInput, frameFreq):
global outlineFilename
global framesPath
#File/Folder Destination Generation based on User Inputs
podcastName = podcastVideoInput.split('... | [
"eguerrer@vm133.sysnet.ucsd.edu"
] | eguerrer@vm133.sysnet.ucsd.edu |
a9ea5149cf93c9b497359f9cef90b70f36913cc8 | eb35b293e4d8e5d7a75c51c6d5337052cc0ca9eb | /AlternatingCharacters.py | 70c5459e4589393692b11cceee8c616ecc3a96d3 | [] | no_license | Edinas09/Challenges | b2f065c9a94f97003a6245068e101755688694ba | 66cf46bff27129b07bdebc8c200e90d241ac80df | refs/heads/main | 2023-06-14T00:33:18.853089 | 2021-06-26T12:39:06 | 2021-06-26T12:39:06 | 370,351,900 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 714 | py | #!/bin/python3
import math
import os
import random
import re
import sys
#
# Complete the 'alternatingCharacters' function below.
#
# The function is expected to return an INTEGER.
# The function accepts STRING s as parameter.
#
def alternatingCharacters(s):
# Write your code here
contador = 0
for index, ... | [
"edinas09@gmail.com"
] | edinas09@gmail.com |
1213b4cfe0ee051332c2a4fbe49a109885569f4a | 4cc59179aac026ca7ba1d5556610673e3ffe9b0d | /voipain/urls.py | af96ec641dd968e5de11778f6f19f9a55b9323f4 | [] | no_license | Pybast/Voipain | 3f1d1e89dd8e770db20f3f0742744e760e54ded3 | 6c3404ada92fe39bbebb72171de0b7aef86e156b | refs/heads/master | 2022-08-31T01:35:01.684643 | 2019-10-10T12:21:18 | 2019-10-10T12:21:18 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 517 | py | from django.urls import path
from django.conf.urls import url
from . import views
app_name = 'freckly'
urlpatterns = [
path('', views.IndexView.as_view(), name='indexview'),
path('demandes', views.SeeDemands.as_view(), name='seedemands'),
path('demander', views.RegisterDemand.as_view(), name='registerdema... | [
"baptiste.0606@hotmail.fr"
] | baptiste.0606@hotmail.fr |
d45d160bee6a0b3a490fca8a56a155d759b8ae7c | 37d13a24e19cc5239629f8e909d6fc6844b32c75 | /hw/code/9/ga.py | df5961a69475ea5d6ba47b3c51a30b52f0e08512 | [] | no_license | swaruparam/x9115swa | 6afa13c15e6980f528b90d19cd311667a5532e5d | 6158509fbf72c6204abe8164878ab9f0086a5c70 | refs/heads/master | 2021-01-13T16:10:12.654476 | 2015-12-15T20:41:17 | 2015-12-15T20:41:17 | 41,177,856 | 1 | 1 | null | null | null | null | UTF-8 | Python | false | false | 10,782 | py | from __future__ import division
from random import random, randrange, randint, uniform
from abc import ABCMeta, abstractmethod
from math import exp, sqrt, cos, pi, sin
import sys
from dtlz import Model, dtlz
#from plot import make_plot
import datetime
from baseline import baseline, basePopulation
def ga(model, b_min,... | [
"sramakr6@ncsu.edu"
] | sramakr6@ncsu.edu |
72eb57c4cbcfc2c21243dd50349394755e0eb80c | 4d200e1f225455c58e0dd89db587a29411f86245 | /venv/Lib/site-packages/openmdao/components/interp_util/interp_cubic.py | 1d77e254cec12bd8bf1d3bdf520dfb65f8753000 | [] | no_license | ManojDjs/Heart-rate-estimation | df0be78edbc70cc75c006c6f87c8169200de84e0 | d9e89fe017f1131d554599c248247f73bb9b534d | refs/heads/main | 2023-05-09T10:58:37.614351 | 2021-06-01T11:12:45 | 2021-06-01T11:12:45 | 371,493,498 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 7,049 | py | """
Interpolate using a cubic spline polynomial.
Based on NPSS implementation.
"""
import numpy as np
from openmdao.components.interp_util.interp_algorithm import InterpAlgorithm
class InterpCubic(InterpAlgorithm):
"""
Interpolate using a cubic spline.
Continuity of derivatives between segments is ass... | [
"djsmanoj0000@gmail.com"
] | djsmanoj0000@gmail.com |
78b73c3ac2179045d3310891b1e01f16e6c3a8e2 | e59644b7ef8ddd5d806e8dfd2ec0091a552248a9 | /cbrain/legacy/data_generator.py | c919517a3b0a3481ff9956b6a2f3b5b65e4dd2bf | [
"MIT"
] | permissive | GunnarBehrens/CBRAIN-CAM | 51973c00476301f20d80274d33cd9565c4b2d163 | a0c6c523c85c39a04a835551a1d5e59a420c5f6a | refs/heads/master | 2022-07-07T05:54:07.745845 | 2022-07-05T12:14:05 | 2022-07-05T12:14:05 | 227,609,774 | 1 | 0 | MIT | 2019-12-12T13:09:07 | 2019-12-12T13:09:06 | null | UTF-8 | Python | false | false | 7,386 | py | """Define DataGenerator class
Author: Stephan Rasp
"""
import numpy as np
import h5py
import pdb
import threading
# To make generators thread safe for multithreading
def threadsafe_generator(f):
"""A decorator that takes a generator function and makes it thread-safe.
"""
def g(*a, **kw):
return... | [
"s.rasp@lmu.de"
] | s.rasp@lmu.de |
a239a13d734f2f85c901126fa077257bd88ba16d | c8b541ea4fa7d159b80bef116e5cd232ac61b8c1 | /venv/Lib/test/libregrtest/runtest.py | 6b74a3bf598ab50b296434d0a0a67a0538e054f3 | [] | no_license | shengmenghui/knowledge_building | 7a2d8eef040c2d3a45726b3a908be301e922024b | 04fd7784f15535efed917cce44856526f1f0ce48 | refs/heads/master | 2022-12-31T14:18:05.282092 | 2020-10-23T02:51:37 | 2020-10-23T02:51:37 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 8,435 | py | import faulthandler
import importlib
import io
import os
import sys
import time
import traceback
import unittest
from sql_mode import support
from sql_mode.libregrtest.refleak import dash_R, clear_caches
from sql_mode.libregrtest.save_env import saved_test_environment
# Test result constants.
PASSED = 1
FAILED = 0
EN... | [
"15173342800@163.com"
] | 15173342800@163.com |
b5bcb3c16d020040adbb75be24a5f5395c03902d | 94935a0f2f4edef219e9067d9633e4504d6b9f21 | /algorithms/orden_por_mezcla.py | dcf436a0cd922da30d1b8864618d525d3567d76f | [] | no_license | albin-woto/python-poo | f34e4931437d673116356f7ea06c2eefa4bf1d4f | a24ed68c13ae9dec74fbe8df1832440adc1be6aa | refs/heads/master | 2022-11-06T13:30:57.045906 | 2020-06-29T20:46:10 | 2020-06-29T20:46:10 | 275,686,711 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,420 | py | import random
def orden_mezcla(lista):
if len(lista) > 1:
# Esta parte tiene crecimiento logaritmico
medio = len(lista) // 2
izquierda = lista[:medio]
derecha = lista[medio:]
print('Izquierda', izquierda, '*' * 5,'Derecha', derecha)
# Llamada recursiva en cada mitad... | [
"albin.woto@gmail.com"
] | albin.woto@gmail.com |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.