blob_id stringlengths 40 40 | directory_id stringlengths 40 40 | path stringlengths 3 281 | content_id stringlengths 40 40 | detected_licenses listlengths 0 57 | license_type stringclasses 2
values | repo_name stringlengths 6 116 | snapshot_id stringlengths 40 40 | revision_id stringlengths 40 40 | branch_name stringclasses 313
values | visit_date timestamp[us] | revision_date timestamp[us] | committer_date timestamp[us] | github_id int64 18.2k 668M ⌀ | star_events_count int64 0 102k | fork_events_count int64 0 38.2k | gha_license_id stringclasses 17
values | gha_event_created_at timestamp[us] | gha_created_at timestamp[us] | gha_language stringclasses 107
values | src_encoding stringclasses 20
values | language stringclasses 1
value | is_vendor bool 2
classes | is_generated bool 2
classes | length_bytes int64 4 6.02M | extension stringclasses 78
values | content stringlengths 2 6.02M | authors listlengths 1 1 | author stringlengths 0 175 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
87d2c895c4c15dd4c38376f740c302e94c9d1a8d | cbe1a042417584da2ad2ebdeb046f438953ddf4a | /web_crawler/naver_review.py | e24acd0c893897c1b68f8bd11e67ff2211129ab5 | [] | no_license | sjknight79/Police_study_200810 | 36f13276e6379deeb3972192fec1a5320924dc8d | 94329b820f854696dcefa3798ccdb4c469822adf | refs/heads/master | 2022-11-30T13:00:53.272355 | 2020-08-12T00:28:37 | 2020-08-12T00:28:37 | 285,436,413 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 430 | py | import requests
from bs4 import BeautifulSoup
url = "https://movie.naver.com/movie/bi/mi/review.nhn?code=188909"
res = requests.get(url)
# print(res.text)
soup = BeautifulSoup(res.content, 'html.parser')
# print(soup.prettify())
ul = soup.find("ul", class_="rvw_list_area")
# print(ul)
lis = ul.find_all("li... | [
"noreply@github.com"
] | noreply@github.com |
3cda43de60849b7e6f49a8d3582fccee1df59256 | 0b65ab6c42179965bfd76c2c55943cb83e3c34d4 | /runserver.py | 2d3f8de484ccb862a0bc488821d4e4103f1fe730 | [] | no_license | ojixzzz/WebAnalytics-Flask | 2c3bed3cf2dbf910bf466535367bed3dd9c5e675 | f9d0de4fc71f639b0e0779664c2614a3545e58c6 | refs/heads/master | 2020-12-22T05:08:55.158147 | 2016-06-15T06:19:20 | 2016-06-15T06:19:20 | 60,417,969 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 97 | py | from analytic import app
app.debug = True
if __name__ == '__main__':
app.run(host='0.0.0.0') | [
"ojixzzz@gmail.com"
] | ojixzzz@gmail.com |
33f4608198892596efdf57c1d8dfe31a4a950ab0 | 32c00255e58a17ea97c27f932c7e9871019f216b | /eeg_processing/config.py | 3c42a10fa560445ca29c50237a8f7c959b5c8a65 | [] | no_license | saintvictoria/crowdeeg-viewer | 9d080dac23f0bb59f0bd79a8eba164aa6ae8cc45 | 681bb37a7af55460c556584d0dc7423421f9c2fa | refs/heads/master | 2021-01-23T02:48:06.691225 | 2015-10-05T17:10:46 | 2015-10-05T17:10:46 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 521 | py | from collections import OrderedDict
# EDF profile - signal channel numbers to the names we wish to use
edf_profiles = {
'DREAMS': OrderedDict([
('Time', 'time'),
('8', 'FP1-A1'),
('7', 'C3-A1'), # one channel is enough for MTURK!
('1', 'O1-A1'),
])
}
# EDF File Defaults
EDF_FILE... | [
"joshbradshaw11@gmail.com"
] | joshbradshaw11@gmail.com |
5901e5381b54af17773dc3e7c1520e28cf0de3f4 | 2cb507ecd6629b9ff457a36e462f987913d94c1a | /webspider/3.数据提取/3.3bs4模块/07-bs4案例.py | e0ba2dc15a95fa18c7b4907a3e13a505e0e05098 | [
"Apache-2.0"
] | permissive | youaresherlock/PythonPractice | 6869e0a5949675198826e5a07552237a636d6f5b | 2e22d3fdcb26353cb0d8215c150e84d11bc9a022 | refs/heads/master | 2021-08-16T03:09:44.203035 | 2021-08-02T07:40:00 | 2021-08-02T07:40:00 | 146,625,560 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 804 | py | #!usr/bin/python
# -*- coding:utf8 -*-
"""
https://mil.news.sina.com.cn/roll/index.d.html
"""
import json
import requests
from bs4 import BeautifulSoup
url = 'https://mil.news.sina.com.cn/roll/index.d.html'
headers = {"User-Agent": "Mozilla/5.0 (compatible; MSIE 9.0; Windows NT 6.1; Trident/5.0)"}
response = request... | [
"2263194561@qq.com"
] | 2263194561@qq.com |
6517fec4d77570a3b3058385a4b8b69313b8a877 | 6ed5b3ef5c24d9b24bff329d7d69a54908386014 | /ALDS1_9_A.py | ed191daedd9af5fedc5e2c2a200be721b6352afa | [] | no_license | python-practicing/Aizu_Online_Judge | cb954b806329fc3332916b9120eb8d77965b896c | 364e205c0f345c2387019bee269fb1075ffdf761 | refs/heads/main | 2023-04-27T07:56:28.485550 | 2021-05-16T07:45:53 | 2021-05-16T07:45:53 | 356,594,797 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 860 | py | import math
n = int(input())
heap_elements = list(map(int, input().split()))
for i in range(1, n+1):
key = heap_elements[i-1]
if i == 1:
left_key = heap_elements[1]
right_key = heap_elements[2]
print(f'node {i}: key = {key}, left key = {left_key}, right key = {right_key}, ')
else:... | [
"noreply@github.com"
] | noreply@github.com |
3f9c5087daf02fa4d3f63eed410bf3cac7690a7a | 5936b0f025944d265cc64d31ef93bc578d5ae6a2 | /home/migrations/0002_load_initial_data.py | aa10fce4bdfc1b079fe4363502f83665c2758cfe | [] | no_license | crowdbotics-apps/smiley-18358 | b4e91ddeaf525aedf990ec1df65d65fb583f4b7c | 7935dd2fad196a7b573c1126905af5fcf93110b0 | refs/heads/master | 2022-11-06T07:02:33.512245 | 2020-06-23T20:08:09 | 2020-06-23T20:08:09 | 274,497,439 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,278 | py | from django.db import migrations
def create_customtext(apps, schema_editor):
CustomText = apps.get_model("home", "CustomText")
customtext_title = "smiley"
CustomText.objects.create(title=customtext_title)
def create_homepage(apps, schema_editor):
HomePage = apps.get_model("home", "HomePage")
ho... | [
"team@crowdbotics.com"
] | team@crowdbotics.com |
b8f3fa45da63fbbe34737aa9fbd34da6475d1715 | edb140c6b4cf5042480f2dd8adca6222dc0f7fa6 | /ec2/urls.py | 5faee05666c950b8a542c519bd358f746c5eafc9 | [] | no_license | chuong-phan/ec2 | bc4afb6e4b515ac8104cc9027226bbf42e5a9ddc | 748c04b177f1597131e7e506dcbf3cb64f3c7ffd | refs/heads/master | 2021-07-16T04:18:06.538715 | 2017-03-13T16:16:31 | 2017-03-13T16:16:31 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 760 | py | """ec2 URL Configuration
The `urlpatterns` list routes URLs to views. For more information please see:
https://docs.djangoproject.com/en/1.10/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-based ... | [
"phannguyenchuong89@gmail.com"
] | phannguyenchuong89@gmail.com |
3c41505b6df63f203fef498970b71945aa8ac5d8 | b3b68efa404a7034f0d5a1c10b281ef721f8321a | /Scripts/simulation/situations/complex/looping_interaction_situation.py | a00207c4f468d786c117ad5289444841aeb74d90 | [
"Apache-2.0"
] | permissive | velocist/TS4CheatsInfo | 62195f3333076c148b2a59f926c9fb5202f1c6fb | b59ea7e5f4bd01d3b3bd7603843d525a9c179867 | refs/heads/main | 2023-03-08T01:57:39.879485 | 2021-02-13T21:27:38 | 2021-02-13T21:27:38 | 337,543,310 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 9,478 | py | # uncompyle6 version 3.7.4
# Python bytecode 3.7 (3394)
# Decompiled from: Python 3.7.9 (tags/v3.7.9:13c94747c7, Aug 17 2020, 18:58:18) [MSC v.1900 64 bit (AMD64)]
# Embedded file name: T:\InGame\Gameplay\Scripts\Server\situations\complex\looping_interaction_situation.py
# Compiled at: 2020-10-01 19:10:21
# Size of sou... | [
"cristina.caballero2406@gmail.com"
] | cristina.caballero2406@gmail.com |
75434b093211de8bd09ddd5d42a9bf15f06d16c6 | 77116b044adb3f28c5ea53d17fc69c29fd9bee55 | /modules/influxdb_wrapper.py | 683fcb41dd50d91836b1b24a3421205c11cc4a99 | [
"MIT"
] | permissive | manav1403/stopstalk-deployment | 63a5c22f20cf1dbe81024ba63b33c1c986ae8ada | 667f6d89b24ce04595e2c70e02aa44aa3d836c42 | refs/heads/master | 2023-03-22T18:39:37.371341 | 2021-03-20T15:40:20 | 2021-03-20T15:40:20 | 290,265,152 | 0 | 0 | MIT | 2020-08-25T16:22:59 | 2020-08-25T16:22:58 | null | UTF-8 | Python | false | false | 2,960 | py | """
Copyright (c) 2015-2020 Raj Patel(raj454raj@gmail.com), StopStalk
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, including without limitation the rights
... | [
"raj454raj@gmail.com"
] | raj454raj@gmail.com |
6e7c618700c92cd8df767a24b9ce804ec40da416 | 90cc82215e9e67cc548e11b0ee1dc76ba8c2d4c8 | /lab4.py | a072dc19d00f28f63f81863f3d5543e7f9cd2bc9 | [] | no_license | greplist/mzi | e76c6bf9295ca786fbc68efe3b93f97b279e06d6 | 00c1769d3e8479f08a7914a4e4f689a7d24e318e | refs/heads/master | 2021-07-05T17:00:34.200440 | 2017-09-28T10:57:07 | 2017-09-28T10:57:07 | 103,229,156 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,292 | py | from Crypto.Util.number import getStrongPrime
from Crypto.Random import random
from math import log
def egcd(a, b):
if (a == 0):
x, y = 0, 1
return b, x, y
g, x, y = egcd(b % a, a)
x, y = y - (b / a) * x, x
return g, x, y
def it_egcd(a, b):
states = []
while a != 0:
states.append((a, b))
... | [
"softforlutshix@gmail.com"
] | softforlutshix@gmail.com |
e0620bad78e3d37d6cae6bbb4aad089d4272be4c | d1548848a67d8b4bca7f3253eb5c08dcb031b132 | /NetworkTEST.py | 18145c1f719a41f5452ae17d043247372617afa7 | [] | no_license | LeslieK/MaxFlow | 3e7bcfdacbfef248d24ba4efcbed016de16320e0 | b2360e927508fcc2b977032e50c479b878b35cb3 | refs/heads/master | 2016-09-11T02:01:04.852145 | 2013-11-26T18:13:54 | 2013-11-26T18:13:54 | 13,695,868 | 2 | 1 | null | 2013-10-21T16:15:02 | 2013-10-19T05:09:26 | Python | UTF-8 | Python | false | false | 3,407 | py | '''
Performs network flow analysis on a network of V points
Each point is a bike station in the citibike network
Pairs of points are connected if they are a distance of _DISTANCE km
from each other.
Capacity on an edge is the sum of the bike docks at each edge vertex.
'''
import json
import argparse
import matplotlib.p... | [
"leslieklein@comcast.net"
] | leslieklein@comcast.net |
5c28907d436b434c6086d6e55952dad43ef34844 | 5a0db8775f29934648c384771a9518a810d9a55f | /读写文件.py | 82057f386fa5b80206666d2a37aa301cdc30d4c2 | [] | no_license | GhostClock/PythonStudy | c3634d8a6ab4e4c34fef080f7fcdc8d114d8575c | c4fb35f0ca2d6f8d49d65fb7cb571012a1fc5be2 | refs/heads/master | 2021-06-26T17:32:08.162956 | 2017-09-10T11:45:51 | 2017-09-10T11:45:51 | 88,620,418 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 648 | py | from sys import argv
script,fileName = argv
print "We will going to erase %r " % fileName
print "If you dont want that ,Hit CTRL-C"
print "If you do want that ,Hit RETURN"
raw_input("?")
print "Opening the file..."
target = open(fileName,'w')
print "Truncating the file ,Good Bye"
target.truncate()
print "Now Im g... | [
"GhostClock@GhostClock.local"
] | GhostClock@GhostClock.local |
9e0a93f3988ad9bafaa30d4e1f01ee3091a6d91d | 3fa79c1c450676a6ad07cceef6a311ff3e18e366 | /util/old/downsample2x_velocity.py | 93057a87dc8932f1759f38353893e4af55bdfa7c | [] | no_license | Alan19922015/cism-data | 7858bfd834e00c1f4cba865bf6a6574f757d9ee0 | f7a48a37bdb102bd929bb07626bf9236166d5d37 | refs/heads/master | 2020-03-19T06:29:54.002451 | 2017-04-04T17:39:26 | 2017-04-04T17:39:26 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,873 | py |
from numpy import *
from struct import unpack
from netCDF4 import Dataset
def downsample( a , f ) :
if (f == 1) :
return a
nx = a.shape[0] / f
ny = a.shape[1] / f
a1 = a[:a.shape[0],:ny]
for j in range(ny) :
a1[:,j] = a[:,j*f:(j+1)*f].mean(1)
a2 = a1[:nx,:ny]
for i in range(nx) :
a2[i,:] = a... | [
"kennedyjh@ornl.gov"
] | kennedyjh@ornl.gov |
7d529134fc3ef9143ade22ef95e546615b1e24e1 | c1c1a60defe660a12bb568339925a0b85d3de918 | /utils.py | b5874ef9bdaf2b94a86ad97140262e7a426868c3 | [] | no_license | mysunk/dacon-celestialtype-classification | dbf9afad251d93542d37bad12d914cb4819438cb | 872e3f06b3faa7c013856d9cf02b6b990c875ec6 | refs/heads/master | 2023-03-25T20:38:13.788811 | 2021-03-25T06:00:09 | 2021-03-25T06:00:09 | 351,323,372 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,697 | py | import pandas as pd
import glob, os
import csv
try:
import cPickle as pickle
except BaseException:
import pickle
def to_number(x, dic):
return dic[x]
def load_dataset(n_stack): # stacking에 따라 다른 dataset load -- not implemented
# load dataset
train = pd.read_csv('data_raw/train.csv', index_col=0... | [
"rlaaudtjs@gist.ac.kr"
] | rlaaudtjs@gist.ac.kr |
ae671c59180030aef4bf58a5dbb0cd5abbc89454 | e5dc2651bcce866d89537014221cd345b4e2d103 | /codeitsuisse/routes/parasite.py | 3fad245cec992636ce7bf3cdfa33825b513ce067 | [] | no_license | borische1322/CodeITSuisse | f748aa6fb2adaff9e8eca01998757e945d0d80f4 | 76f0a117656975652132eaa0da8aa1b58629d198 | refs/heads/master | 2023-08-14T22:31:48.765960 | 2021-09-25T10:27:08 | 2021-09-25T10:27:08 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,957 | py | import logging
import json
from flask import request, jsonify
from codeitsuisse import app
global p1ANS
global test
p2Ans=0
again1=1
again2=1
test=0
logger = logging.getLogger(__name__)
@app.route('/parasite', methods=['POST'])
def evaluate_parasite():
global text
data = request.get_json()
logging.info... | [
"noreply@github.com"
] | noreply@github.com |
6d3e6d6192178fdbd567a66120eb0aeb0b1077a1 | a281d09ed91914b134028c3a9f11f0beb69a9089 | /contrib/great_expectations_semantic_types_expectations/great_expectations_semantic_types_expectations/expectations/expect_column_values_to_be_valid_stellar_address.py | e90bce385fe104a9ad05fb1b06683e925a02a2db | [
"Apache-2.0"
] | permissive | CarstenFrommhold/great_expectations | 4e67bbf43d21bc414f56d576704259a4eca283a5 | 23d61c5ed26689d6ff9cec647cc35712ad744559 | refs/heads/develop | 2023-01-08T10:01:12.074165 | 2022-11-29T18:50:18 | 2022-11-29T18:50:18 | 311,708,429 | 0 | 0 | Apache-2.0 | 2020-11-10T15:52:05 | 2020-11-10T15:52:04 | null | UTF-8 | Python | false | false | 6,125 | py | """
This is a template for creating custom ColumnMapExpectations.
For detailed instructions on how to use it, please see:
https://docs.greatexpectations.io/docs/guides/expectations/creating_custom_expectations/how_to_create_custom_column_map_expectations
"""
import json
from typing import Optional
import coinaddrv... | [
"noreply@github.com"
] | noreply@github.com |
74d08d6dbd8515e44b6a02e7c4576cb9cf0fd0b8 | d0a0989e2f965e482efa41456449c87cba6ea19d | /quote/dash_quote.py | 4eb3c6682fefb4c829115aeafe0f542b6ae2ff28 | [] | no_license | dsjclp/dsjclp.eu.pythonanywhere.com | cdc50a1975e4a55d7970e2f35c8a2c4140ac753f | 81491d86883ff38f9712da2725abaadc71533d26 | refs/heads/main | 2023-01-09T14:00:31.761476 | 2020-11-15T20:15:52 | 2020-11-15T20:15:52 | 273,483,698 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 30,853 | py | import dash
import dash_bootstrap_components as dbc
import dash_core_components as dcc
import dash_table as dct
import dash_html_components as html
import pandas as pd
from django_plotly_dash import DjangoDash
from dash.dependencies import Input, Output, State
from dash_table.Format import Format, Group, Scheme, Symbol... | [
"dsjclp@gmail.com"
] | dsjclp@gmail.com |
ae46d3018ef730c3d8c886c21676d65c05981388 | 8cc2c6e674477b425f9d799da39ebf71a0403e4b | /QAf.py | fbe6e0ac68e9d258a54c997f07be8019b3d555bd | [] | no_license | Amrit-stack/Python-assignments-III | 85f2c427013c56a7e2e1529374aa8bb648619c2a | 92e19702a87255529a06ac73b9a092dfae558741 | refs/heads/master | 2022-11-21T11:44:02.867852 | 2020-07-12T12:53:34 | 2020-07-12T12:53:34 | 279,063,884 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 507 | py | def binary_search (arr, left, right, x):
if right >= left:
mid = left + (right - left) // 2
if arr[mid] == x:
return mid
elif arr[mid] > x:
return binary_search(arr, left, mid-1, x)
else:
return binary_search(arr, mid + 1, right, x)
else:
return -1
arr = [ 2, 3, 4, 10, 40 ]... | [
"noreply@github.com"
] | noreply@github.com |
8c22ff668872cc85bea12d1e8242af7b09b05524 | 3c60806513f6dfb3f17e76caf738cde530dae0fc | /demo.py | dbeff5d73c7752bc8862ea10a9b081e8b45625df | [] | no_license | ArnaudGardille/SinkhornEM | 258116b1963c1a75f3677af4604d4852592f1610 | 1a5471ac709242d6c8e428970b596777fb75254f | refs/heads/master | 2023-03-20T08:21:21.136156 | 2021-03-02T22:17:25 | 2021-03-02T22:17:25 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,058 | py | # -*- coding: utf-8 -*-
"""
Created on Fri Jul 3 14:16:24 2020
@author: Amin
"""
from visualizations import visualize_average_segmentation
from BayesianGMM.BayesianGMM import BayesianGMM
from DataHandling import DataHandler
import numpy as np
from BUtils import Simulator
config = {'random_init':True, # If True, lo... | [
"amin-nejat@github.com"
] | amin-nejat@github.com |
da2846a18904cb304bdee4a3e21c7faab448b9b5 | ad681d7aebbf77a43c16950b2094cb0e93771146 | /Order Of Growth.py | c4867d66527000bef41f4c3b442001e4d7ce56a6 | [
"Apache-2.0"
] | permissive | samli6479/PythonLearn | 1f00d3b83f3b0750f4bdca3aeda666b7c9590431 | 2ad78f62d58612132d3a3759aecec4a52381566f | refs/heads/master | 2021-01-12T11:02:01.837883 | 2016-11-04T00:00:20 | 2016-11-04T00:00:20 | 72,797,227 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,204 | py | # Order of Growth
# A method for bounding the resources used by a function by the "size" of a problem
# n: size of the problem
# R(n): measurement of some resource used(time or space)
# R(n) = Theata(f(n))
#Theata means that there exist k1 and k2 s.t. k1f(n)<=R(n)<=k2f(n) for all n larger than some minimum m.
from... | [
"samli6479@gmail.com"
] | samli6479@gmail.com |
29c1ae82f792f643a540f96f81573c324424623a | d305e47f7f760e3cb3cfcd101c34f4f2cf30fcbf | /python/opencv/src/opencv/luorixiaoguo.py | d5fa0332ca2a3db0747c1201d1fc439bb618fdaa | [] | no_license | wherego/python | 1fe2e46998bbd58f678ead829c1a3f2bbb843d22 | bdd5715b24f9f32fc223420ede9b1f28d1531385 | refs/heads/master | 2020-12-24T15:49:41.060934 | 2014-12-07T14:00:34 | 2014-12-07T14:00:34 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 691 | py | #-*- coding: utf-8 -*-
import cv2
import numpy as np
fn="7.jpg"
if __name__ == '__main__':
print 'http://blog.csdn.net/myhaspl'
print 'myhaspl@qq.com'
print
print 'loading %s ...' % fn
print '正在处理中',
img = cv2.imread(fn)
w=img.shape[1]
h=img.shape[0]
ii=0
#生成日落效果
#b[:,:] =... | [
"2890408644@qq.com"
] | 2890408644@qq.com |
1c8d3cbc4869819831526f4d76d094711f9424ee | 6bf2425dc79bad40d5a7458dd49b9fbcc4f6a88c | /src/ml_project/pipelines/data_engineering/nodes.py | 520c75cb7a6509f09b1bcbd7889af4152ea1b734 | [] | no_license | smottahedi/ml-project | 6a6df8c665ec7fad59f416ec299a0b3cf2ee829c | 2477e3393740c8eee4ba4e483e84afb0bb0168b8 | refs/heads/main | 2023-07-16T07:04:36.912667 | 2021-09-02T03:25:32 | 2021-09-02T03:25:32 | 402,276,384 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,340 | py | # Copyright 2021 QuantumBlack Visual Analytics Limited
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# THE SOFTWARE IS PROVIDED "AS IS",... | [
"sammottahedi@gmail.com"
] | sammottahedi@gmail.com |
0cb7eed95e6805e9352b83c72c8aa7571facc3e4 | 16491ea88d51e13f806b83fbabd8b5543c80d617 | /recommender/recommender.py | c24846f8c1e9d81343593b393a3987d97bbd6ae0 | [] | no_license | spinor29/MachLearn | 98ce33c00c668d53c7e08143fbe2e058e008d0e1 | ea4f19a604a90b2b73eecd80211d616422e29771 | refs/heads/master | 2021-01-01T15:30:34.564099 | 2015-02-21T04:30:35 | 2015-02-21T04:30:35 | 21,888,330 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 7,000 | py |
import numpy as np
import scipy as sp
#from scipy import *
from sklearn import linear_model
from pylab import *
import time
def costFunction(params, *Z):
[ X, Y, R, nm, nu, nf, lamb, J_or_G ] = Z[:8]
X = params[:(nm*nf)].reshape(nm, nf)
Theta = params[(nm*nf):].reshape(nu,nf)
X_grad = np.zeros(X.sh... | [
"jclin29@gmail.com"
] | jclin29@gmail.com |
f5557d5ff6492966343a1b46c76dde955a03f5a7 | b15a9d9c7374c4a1fa5ec3ef63603a8c57e8681f | /Design-Patterns-Python/memento/caretaker.py | 6a143d567f4390a284f8bff63c8f3a579f175f00 | [] | no_license | gohils/zemr_notebook | 3f7490ef7a2559655746c3e2e0dbfb835a83891e | 00d53cea9970df44160c51e6ad2bdeadfae2c91f | refs/heads/master | 2023-08-04T14:32:35.428016 | 2023-07-20T11:51:08 | 2023-07-20T11:51:08 | 222,027,451 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 761 | py | "The Save/Restore Game functionality"
class CareTaker():
"Guardian. Provides a narrow interface to the mementos"
def __init__(self, originator):
self._originator = originator
self._mementos = []
def save(self):
"Store a new Memento of the Characters current state"
... | [
"noreply@github.com"
] | noreply@github.com |
b1850bb9f42ce970e1af828ad7e8073288267aa4 | 1929443c8e4ec6ccd79777f18d161546867e17ef | /methods/transformers/tests/test_pipelines_fill_mask.py | 2777bee42548e1da90a9efb1537e16c2cba4f6ce | [
"MIT",
"Apache-2.0"
] | permissive | INK-USC/RiddleSense | 6f4b00546d7f4d5ada12db50929c1f0d7713d541 | a3d57eaf084da9cf6b77692c608e2cd2870fbd97 | refs/heads/main | 2023-08-14T19:01:01.478946 | 2021-07-05T04:06:01 | 2021-07-05T04:06:01 | 376,487,870 | 8 | 2 | null | null | null | null | UTF-8 | Python | false | false | 9,295 | py | import unittest
import pytest
from transformers import pipeline
from transformers.testing_utils import require_tf, require_torch, slow
from .test_pipelines_common import MonoInputPipelineCommonMixin
EXPECTED_FILL_MASK_RESULT = [
[
{"sequence": "<s>My name is John</s>", "score": 0.0078230835... | [
"yuchen.lin@usc.edu"
] | yuchen.lin@usc.edu |
1d561d2cb7059ab47fbbf55bf488968c40e1e094 | 9ff8e53cda466f8093481fd9343f1fc3d1849ddf | /replace_isoforms.py | 08604c1cea2be42b3fee388090e2f3da081be3ba | [] | no_license | masakistan/bioscripts | aefaed90be4985fc98bda04056a1490bfb679f0b | 8b86b3bda78a872d5ab6f71dea6179af5920165c | refs/heads/master | 2021-01-17T13:26:02.972142 | 2017-01-02T07:22:14 | 2017-01-02T07:22:14 | 56,871,633 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,843 | py | import sys, argparse
def parse_gene_seq_ids_file( file_path ):
seq_to_gene = dict()
with open( file_path ) as fh:
for line in fh:
line = line.strip().split()
seq_to_gene[ line[ 1 ] ] = line[ 0 ]
#print len( seq_to_gene )
return seq_to_gene
def parse_gene_seq_ids_files( ... | [
"sfujimoto@gmail.com"
] | sfujimoto@gmail.com |
0a84c7d2819c6909abef3aa8cf9c8e577efad451 | 13f4a06cd439f579e34bf38406a9d5647fe7a0f3 | /nn_ns/parsing/IterParser/ParseResultAST.py | 205e7e97ea49432cf019048a7b1198e730ce036c | [] | no_license | edt-yxz-zzd/python3_src | 43d6c2a8ef2a618f750b59e207a2806132076526 | 41f3a506feffb5f33d4559e5b69717d9bb6303c9 | refs/heads/master | 2023-05-12T01:46:28.198286 | 2023-05-01T13:46:32 | 2023-05-01T13:46:32 | 143,530,977 | 2 | 2 | null | null | null | null | UTF-8 | Python | false | false | 346 | py |
from sand.types.NonMathTree import NonMathTree, LeafNode, OrientedNode, UnorientedNode
class ParseResultAST(NonMathTree):
class __UnboxedTypeID__:pass
class ConRuleNode(OrientedNode, ParseResultAST):pass
class AltRuleNode(UnorientedNode, ParseResultAST):pass
class TerminalNode(LeafNode, ParseResultAS... | [
"wuming_zher@zoho.com.cn"
] | wuming_zher@zoho.com.cn |
82a7de1459e7e0d223566ae0c7cdbaa5df079c74 | 96ee7ef1baa5ebc042de71642c3c8712ef56cf06 | /venv/Scripts/pip3.7-script.py | 26a4d76aaf913f91c7fd32ae8a46878b2261134c | [
"Apache-2.0"
] | permissive | dipsuji/Phython-Learning | 0439b4d53854e2b35dd05b2bef174d7a3db9b8e0 | 78689d3436a8573695b869a19457875ac77fcee4 | refs/heads/master | 2020-04-04T11:08:57.730233 | 2019-04-25T14:08:59 | 2019-04-25T14:08:59 | 155,879,955 | 1 | 1 | null | null | null | null | UTF-8 | Python | false | false | 400 | py | #!"S:\Phython Learning\venv\Scripts\python.exe"
# EASY-INSTALL-ENTRY-SCRIPT: 'pip==10.0.1','console_scripts','pip3.7'
__requires__ = 'pip==10.0.1'
import re
import sys
from pkg_resources import load_entry_point
if __name__ == '__main__':
sys.argv[0] = re.sub(r'(-script\.pyw?|\.exe)?$', '', sys.argv[0])
sys.exi... | [
"mauryasujata69@gmail.com"
] | mauryasujata69@gmail.com |
1caf326fb364e9ce7b082c99ca141de64a131f52 | fc12826ab97ecd171fac1553b05dd56700ebc928 | /yapl_parser.py | 0358d3ceb5da9fcb761b18f5c8ab39fc8927aea6 | [] | no_license | m-jojo-s/YAPL | ff76c06f0be1508a2a2e1a1a3353a81405acbf95 | b337260483cb3bd9ab50c4f957ccd35788958e77 | refs/heads/main | 2023-04-10T02:01:18.888457 | 2021-04-24T19:54:06 | 2021-04-24T19:54:06 | 359,183,946 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,341 | py | import ply.yacc as yacc
from yapl_lexer import *
#sys.tracebacklimit = 0 # to prevent traceback debug output since it is not needed
# to resolve ambiguity, individual tokens assigned a precedence level and associativity.
# tokens ordered from lowest to highest precedence, rightmost terminal judged
precedence = (
... | [
"21100025@lums.edu.pk"
] | 21100025@lums.edu.pk |
5dff5ce729438b3c534d2d4da22d067350b99165 | 4e32131f3c9cf8355378eadbb71158a3df77ec48 | /ocr/utils/builders.py | ceb0c49b8a3db9b0c38ebb1b30ac757c6c9b326f | [] | no_license | reymondzzzz/transformer_ocr | c6e227f8c05406b0b20d10ffe9ca6f6c8c5b9cd5 | 347dfc3512550a211185caec2bfaaa19ce021b43 | refs/heads/master | 2023-04-11T19:59:07.991523 | 2021-04-12T08:41:01 | 2021-04-12T08:41:01 | 279,027,780 | 1 | 1 | null | null | null | null | UTF-8 | Python | false | false | 4,880 | py | from typing import Tuple
import albumentations as Albumentations
import albumentations.pytorch as AlbumentationsPytorch
import pretrainedmodels
import pytorch_lightning.callbacks as LightningCallbacks
import torchmetrics as PLMetrics
# import pytorch_loss as PytorchExtraLosses
import timm
import torch
import torch.nn ... | [
"starkov.kirill123@gmail.com"
] | starkov.kirill123@gmail.com |
81aa159a3fffbe35c2f49ba73dfafe34c2c9ce02 | 3ba3a0e970644fb9a8f55bf47900fcc8bd940c71 | /euler102.py | 08a267640c5084532b130e24beae3e30b33298ee | [] | no_license | jacekkubacki/projectEulerInPython | be6f3e9cf814a5513d682685fc28a816aa0b3890 | a372e2f48507f3741b504eea892de49d7d630c85 | refs/heads/master | 2021-01-17T13:08:20.648105 | 2020-07-19T20:25:11 | 2020-07-19T20:25:11 | 22,376,669 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,123 | py | #!/usr/bin/env python3
# Triangle containment
# Problem 102
#
# Three distinct points are plotted at random on a Cartesian plane, for which -1000 <= x, y <= 1000, such that a triangle is formed.
#
# Consider the following two triangles:
#
# A(-340,495), B(-153,-910), C(835,-947)
#
# X(-175,41), Y(-421,-714), Z(574,-64... | [
"jacekkubacki@users.noreply.github.com"
] | jacekkubacki@users.noreply.github.com |
6a3aa7b0e23d7132cd569036c9ba4c32875eb08e | 475303b69537b3739c7846ca0ab13ab02ad6340f | /src/graphs/models/toxic_comment.py | d938602b608cb096aa9667f75f83727e672f2a48 | [] | no_license | Guest400123064/FedKGQA | 8a0328faccee6819181879cb52ee530a2b0cfa6d | 6a51b354d7526bd7e63b08607f86f53ce5e84afc | refs/heads/main | 2023-04-21T00:51:39.541230 | 2021-05-22T14:46:08 | 2021-05-22T14:46:08 | 342,565,805 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,261 | py | import torch
import torch.nn as nn
from easydict import EasyDict
class ToxicComtModel(nn.Module):
def __init__(self, config: EasyDict):
super().__init__()
self.config = config
self.seq_encoder = CommentEncoder(config.comment_encoder)
self.out_layer = OutputLayer(config.output_lay... | [
"lgfz1003@icloud.com"
] | lgfz1003@icloud.com |
8dfab0b34286b301bbb0cd4a0508c6d7549c2f09 | fc6033386df4b83abe0e49e9aab03adcdd921134 | /maxflow.py | 09055f9b7db1b0a776674eee8f201618c3a736e6 | [] | no_license | showmen-gupta/algorithms | 0db0b85a891cc47015e9330dbdecca3764e92d3a | c86c8b582c5bec715c3b55135387bc9e66925277 | refs/heads/master | 2021-05-11T21:14:54.201070 | 2018-01-14T20:44:54 | 2018-01-14T20:44:54 | 117,465,038 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,601 | py | class G:
def __init__(self, g):
self.g = g # residual g
self.R = len(g)
'''Returns true if there is a path from source 's' to sink 't' in
residual g. Also fills parent[] to store the path '''
def BFS(self, s, t, parent):
# Mark all the vertices as not visited
visited ... | [
"shwmndsgpt99@gmail.com"
] | shwmndsgpt99@gmail.com |
17ecaa88d0e2ac422aa3e090e3e08974e7e40179 | b7a120b56a4e0379e24523e76781144af23b5b91 | /venv/bin/easy_install-3.7 | 1502696c9705bb5d9b5d0e589f7d285ec774edca | [] | no_license | liuqi10/python_base | bd2cadb1e8e1f9f1dbfb44f71c6b73933b0a5903 | d56058a75240dd644739517d03d13eabcd67d3d9 | refs/heads/master | 2021-05-25T07:59:30.518515 | 2020-04-07T08:37:31 | 2020-04-07T08:53:25 | 253,729,473 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 449 | 7 | #!/Users/lq/PycharmProjects/python_base/venv/bin/python
# EASY-INSTALL-ENTRY-SCRIPT: 'setuptools==40.8.0','console_scripts','easy_install-3.7'
__requires__ = 'setuptools==40.8.0'
import re
import sys
from pkg_resources import load_entry_point
if __name__ == '__main__':
sys.argv[0] = re.sub(r'(-script\.pyw?|\.exe)?... | [
"17611682976@163.com"
] | 17611682976@163.com |
4b94ea0efb14d60e69e0110fd84977c9ba7a7611 | 50948d4cb10dcb1cc9bc0355918478fb2841322a | /azure-mgmt-compute/azure/mgmt/compute/v2018_04_01/models/virtual_machine_scale_set_public_ip_address_configuration_py3.py | 76a82b78db8773b9a74688ddbdadeac51ed6ec07 | [
"MIT"
] | permissive | xiafu-msft/azure-sdk-for-python | de9cd680b39962702b629a8e94726bb4ab261594 | 4d9560cfd519ee60667f3cc2f5295a58c18625db | refs/heads/master | 2023-08-12T20:36:24.284497 | 2019-05-22T00:55:16 | 2019-05-22T00:55:16 | 187,986,993 | 1 | 0 | MIT | 2020-10-02T01:17:02 | 2019-05-22T07:33:46 | Python | UTF-8 | Python | false | false | 2,197 | py | # coding=utf-8
# --------------------------------------------------------------------------
# Copyright (c) Microsoft Corporation. All rights reserved.
# Licensed under the MIT License. See License.txt in the project root for
# license information.
#
# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes ... | [
"lmazuel@microsoft.com"
] | lmazuel@microsoft.com |
a68519e47c61580f353d0d2941d49c1dc2e26010 | 21526140eff7799e6f3ffa13e610cec7a3c07c4f | /data/loadwhiskeys.py | acd03e929e74cb1817a712ae00fbc6930bb20c08 | [] | no_license | soumyagk/CS6456 | b5b392f78263f1f11fede248cd5f5565a59b1b01 | 5258ab8375f40a23b25a01e4f6475763e8ec2352 | refs/heads/master | 2021-05-31T14:23:29.006617 | 2015-11-24T13:51:26 | 2015-11-24T13:51:26 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,665 | py | import csv
import pymysql
csvfile = open('whiskeys.csv', 'r')
conn = pymysql.connect(host='localhost', port=3306, user='root', passwd='', db='gestviz')
cur = conn.cursor()
fieldnames = ("Name","Rating","Country","Category","Price","ABV","Age","Brand")
reader = csv.DictReader( csvfile, fieldnames)
v_rec_id = 1;
for ro... | [
"aishwarya.rajagopal@listertechnologies.com"
] | aishwarya.rajagopal@listertechnologies.com |
a772879e485592a2933d28abf327fa778c4be088 | 7ac5ea4a31eb2e382b144206febe663b9531afaa | /main.py | 15b43fdf66c16250ee9931fc50883bc1306bf1a1 | [] | no_license | roseate8/SOC-prediction | 0e3b04d8286c319192627034987b80cdb85d8b08 | 7e664a2fa111004a215639113e3aab72e08e6d6e | refs/heads/master | 2020-09-17T05:58:34.678938 | 2020-05-25T18:50:42 | 2020-05-25T18:50:42 | 224,012,465 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,664 | py | from battery import Battery
from kalman import ExtendedKalmanFilter as EKF
from protocol import launch_experiment_protocol
import numpy as np
import math as m
def get_EKF(R0, R1, C1, std_dev, time_step):
# initial state (SoC is intentionally set to a wrong value)
# x = [[SoC], [RC voltage]]
x = np.matrix(... | [
"noreply@github.com"
] | noreply@github.com |
0a5b6982fcdfc59b094c36f964a57334db398003 | 81f943eab36ac03e9d58677722a86aac512e108d | /knn.py | 20dea10bc4c17d7b83926809981d3fffbdbb39da | [] | no_license | Ritika-Singhal/KNN-Algorithm | 39595e55967a2fd1db941c017d7d37175fe7c8ef | e46c5cd5053db3be04560eeef2b337cda8cecb62 | refs/heads/master | 2020-07-31T06:52:37.944109 | 2019-09-24T07:28:08 | 2019-09-24T07:28:08 | 210,521,620 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,364 | py | import numpy as np
from collections import Counter
class KNN:
def __init__(self, k, distance_function):
"""
:param k: int
:param distance_function
"""
self.k = k
self.distance_function = distance_function
def train(self, features, labels):
"""
In... | [
"noreply@github.com"
] | noreply@github.com |
d0006c97e0d1863494d71eb5d015224002a7ed02 | f48d0c0f485951eba6032c5caee02ddfac123801 | /文本分类/Bag of Words Meets Bags of Popcorn/main2.py | e3da802d0cd22ca411d9b2a4992c0d4c41cfa708 | [] | no_license | linlinxiaostudent/DeepLearning_AE | 31b54e1f269cfcc5e4ddb3646638049ac7229eb1 | 9e5d9c96270ddff3d377f25e7cd46fe15ee23c26 | refs/heads/master | 2020-03-10T10:50:43.332134 | 2018-04-13T13:08:10 | 2018-04-13T13:08:10 | 129,342,227 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,794 | py |
from bs4 import BeautifulSoup
import pandas as pd
import numpy as np
import os
import re
import nltk
from nltk.corpus import stopwords
from sklearn.feature_extraction.text import TfidfVectorizer as TFIDF
data = pd.read_csv('labeledTrainData.tsv', header=0, delimiter="\t", quoting=3)
def review_to_words(raw_review)... | [
"1710684729@qq.com"
] | 1710684729@qq.com |
c1c8be7822203830cca468d1e183c39f3458843a | 484b7daa8f7e73271be1b6de37afdc5825717f4f | /catcolony/models.py | 2adfc7f37b9c914974f5737621a7c1e3ac1de872 | [] | no_license | maxpinomaa/cat-video-thing | 409200ff3c18f7034aa072177a3c2e37ee531c9a | 529d453d9b8764377268a2783b6cc6ac0ae80e1c | refs/heads/master | 2021-01-10T07:23:56.607822 | 2016-03-23T20:06:32 | 2016-03-23T20:06:32 | 52,385,383 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 648 | py | from django.db import models
from django.utils import timezone
from embed_video.fields import EmbedVideoField
from taggit.managers import TaggableManager
class Item(models.Model):
author = models.ForeignKey('auth.User')
title = models.CharField(max_length=200)
text = models.TextField()
video = EmbedV... | [
"maxpinomaa@hotmail.com"
] | maxpinomaa@hotmail.com |
5793547e4f2688f451442dce1b433dfd365ef5a8 | 9715a7d27f9b146632f964b643ee7243a7e9a38c | /match-sift.py | b7275f8f1c0e357c2af2b24419bc14fbb03ef725 | [] | no_license | uakfdotb/skyquery | 3eb9b2265992127a3c5b3b3612c32ddea0f39195 | dc67b98ee8034711c274408640e3582d20482673 | refs/heads/master | 2020-07-07T03:49:57.856424 | 2019-08-21T19:13:18 | 2019-08-21T19:13:18 | 203,237,682 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,632 | py | from discoverlib import geom, grid_index
import get_db
import cv2
import json
import math
import multiprocessing
import numpy
import os
from PIL import Image
import scipy.ndimage
import sys
video_id = int(sys.argv[1])
db = get_db.get_db()
BASE_PATH = 'ortho-masked.jpg'
FRAME_PATH = 'frames/{}/'.format(video_id)
LK_P... | [
"fbastani@perennate.com"
] | fbastani@perennate.com |
298082e18a03176a471a740af59ae20082832547 | 0999efba1b1664c633fac61d25acdae33253e01a | /appli/Scanfiles.py | 620a0dcb636040e16e3e9b0e83e79a11b494ce32 | [] | no_license | kanenk/scanfiles | 7bb4fbd3583cf0fa7168899d171baac5e25eb1a4 | 3c849d78201ba38e6af9832d1b8abf1ff887e693 | refs/heads/master | 2021-01-01T06:05:57.750530 | 2015-07-17T13:32:26 | 2015-07-17T13:32:26 | 39,254,702 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,170 | py | #!/usr/bin/python3
# Filename : scanfile.py
# Author : kane
# Email : knguyen@ipno.in2p3.fr
# Date : 2014.08.01 15:49:00
# release : 1.0
# Python : v2.7.6
import os
from datetime import *
from ConnectDB import ConnectDB
from ReadHeader import ReadHeader
from os.path import join
class ScanFiles(object):
def __ini... | [
"kanenk@hotmail.fr"
] | kanenk@hotmail.fr |
c011b7b08fb155bd148236837436fd398b3bfe3f | 81939a436389adeaa01c421aecf6cbd6ff6dc7dc | /src/algs/gsa/operators.py | c1f348dab44a0684adfb5519500e0c9130cba1f2 | [] | no_license | HighExecutor/PyWFScheduler | 37c9ed9c60f6466e143183ca7f5f67ac1e80c40b | c80c1cbcc5c4da47f51c50b89e48458414762691 | refs/heads/master | 2022-06-24T02:48:55.054544 | 2022-06-17T21:05:42 | 2022-06-17T21:05:42 | 226,922,857 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,173 | py | """
1) Vector representation
2) generate() - generation of initial solutions
3) fitness(p) (with mofit field)
4) mass(p, worst, best)
5) force_vector_matrix(pop, kbest, G)
6) position(p, velocity) - function of getting new position
7) G(g, i) - changing of G-constant, where i - a number of a current iteration
8) kbest(... | [
"1123581321qwe"
] | 1123581321qwe |
a8941635b8bd727ba5cc5cf04482c0015a9fc46e | 1eb4dd793a8b9467fd45a1ac35e5446fdde6c732 | /database.py | bfce504bbd78f71b957be12256a3bc2bbc18ce3a | [] | no_license | dinowais/SteelEye | e0879be9719b230da6dbc684f72ab8f58f91ee55 | 440a8ef75c046247a7c5a2a591a6b7ca49c5e208 | refs/heads/master | 2023-04-28T18:36:44.023926 | 2021-05-23T10:15:39 | 2021-05-23T10:15:39 | 370,003,362 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 495 | py | from sqlalchemy import create_engine
from sqlalchemy.ext.declarative import declarative_base
from sqlalchemy.orm import sessionmaker
SQLALCHEMY_DATABASE_URL = "sqlite:///./sql_app.db"
# SQLALCHEMY_DATABASE_URL = "postgresql://user:password@postgresserver/db"
engine = create_engine(
SQLALCHEMY_DATABASE_URL, connec... | [
"owais@trialx.com"
] | owais@trialx.com |
5dc1dd51756ee330466da3f484fc22691e0247e4 | dd50dc51a0cde14363356245b45f6ae4508db247 | /ipnd_notes_comments.py | 4c70d55e2e5397bc5caf66389ac56220b4935987 | [] | no_license | supaheckafresh/IPND_Stage_5 | 3d06899eb02ae30db0e74f0e747f99cf433c84b3 | 5ad37bb4becf7914d5754570119ad84e181fc522 | refs/heads/master | 2016-09-05T23:27:10.209062 | 2015-06-30T19:58:10 | 2015-06-30T19:58:10 | 38,330,056 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,804 | py | from google.appengine.ext import ndb
from google.appengine.api import users
import os
import cgi
import urllib
import time
import jinja2
import webapp2
template_dir = os.path.join(os.path.dirname(__file__), 'templates')
jinja_environment = jinja2.Environment(
loader = jinja2.FileSystemLoader(template_dir),
... | [
"neilstrain@gmail.com"
] | neilstrain@gmail.com |
4673777d1c1a994069de18c0acda79831f581168 | 611055f18da392e5a63b2d80ce102701201981eb | /src/apps/comentarios/admin.py | 52f74fce4df52fd09dd0fe7013e06fc2089b1463 | [] | no_license | danielhuamani/django-backbone | facf6f2ced78991577957bd2f8bb8c42255cd795 | 6523e19d8599753ccf28b6a2d4f511ec0fe0f1c7 | refs/heads/master | 2021-01-10T12:47:26.514543 | 2015-11-18T17:12:02 | 2015-11-18T17:12:02 | 45,657,924 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 129 | py | from django.contrib import admin
from .models import Comentario
# Register your models here. #
admin.site.register(Comentario)
| [
"danielhuamani15@gmail.com"
] | danielhuamani15@gmail.com |
9298894090d4c51fc83e043ba6abe8d100c3ead7 | 7fe1869ec99c99744a3c92a44bf1cdaac43ba245 | /book_tools/pymobi/__init__.py | 66e7169e529bd92f0a5db2a7edcfd90605a12411 | [
"MIT"
] | permissive | Aladex/sopds-fb2sax-sqlalchemy | 1fb77e11b18a1f8ce86d77eaf6a187e197692941 | 648ca37901ef3bc9478fbcf61d743a00f13cdfdc | refs/heads/master | 2022-10-27T10:50:32.479783 | 2022-10-09T04:26:02 | 2022-10-09T04:26:02 | 253,155,416 | 0 | 0 | MIT | 2022-07-06T20:34:56 | 2020-04-05T04:29:05 | Python | UTF-8 | Python | false | false | 185 | py |
__author__ = 'Yugang LIU'
__email__ = 'liuyug@gmail.com'
__version__ = '0.1.3'
__license__ = 'GPLv3'
from book_tools.pymobi.mobi import BookMobi
from book_tools.pymobi.util import *
| [
"aladex@gmail.com"
] | aladex@gmail.com |
de3e575f2387290b028793eb66449df3e1387a60 | c26985d3c075dbb3c0f1b9bf00d4fb2cbfcac5fe | /site_management/tests/test_urls.py | aeb6fcc9a7563cd10cb24618191a7f3b3795682b | [] | no_license | Code-Institute-Submissions/on_the_rocks | 2e20fa17a9a817ac86919e5a528f140aeb9a19d6 | 2728877f6554c7552a2ee9139740a079a2343dfd | refs/heads/master | 2023-01-02T14:57:47.037723 | 2020-10-31T23:18:35 | 2020-10-31T23:18:35 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,352 | py | from django.test import SimpleTestCase
from django.urls import resolve, reverse
from site_management.views import site_management, approve_review,\
delete_review, user_profile, order_history
class TestUrls(SimpleTestCase):
def test_site_management_url_resolved(self):
url = reverse('site_management')
... | [
"matt.snell.00@hotmail.co.uk"
] | matt.snell.00@hotmail.co.uk |
e8daaf5d3be0632b16552f307402e1e84024c44b | 55ad15f616ff7e9f20a7d448b8ea6193de7dc586 | /subprocess_wrapper.py | 90ef592e8899e8593dec9c7dad2ad62bbc30b9f4 | [] | no_license | sammac/samstools | 0abcbcd0ba4ee404cc66c384f8624f84c983bf81 | 0051623ab0125a4bdf767d1e62c946b44b24d2b8 | refs/heads/master | 2020-04-22T23:48:23.524621 | 2013-09-05T22:39:07 | 2013-09-05T22:39:07 | 10,346,553 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,093 | py | #!/usr/bin/env python
from subprocess import Popen as sp_Popen, PIPE as sp_PIPE
from threading import Thread as th_Thread
class SPWrapper(object):
"""Supply a command, then run, specifiying timeout"""
def __init__(self, cmd):
self.cmd = cmd
self.process = None
self.timed_out = None
... | [
"smaclennan@langstone.wetafx.co.nz"
] | smaclennan@langstone.wetafx.co.nz |
ee5d9088a648e83c220c2dc7e4f83db84f9ab93e | f02e654d5590a861804e3220ed76ba2192e1699b | /aslam/deprecated/ASLAM/deprecated/old2/test.py | bdc9562460aa075503b52776c3db9d3ae345080c | [
"MIT",
"BSD-3-Clause"
] | permissive | AmarNathH/software | 73e2afd3affaf2c1595b406480edac8b8fb2fcac | e225810c7501250f48add43349a64f49450cc79f | refs/heads/master | 2020-12-02T20:50:18.439874 | 2017-07-03T16:51:07 | 2017-07-03T16:51:07 | 96,219,939 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 636 | py | #!/usr/bin/env python2.7
from classes import *
import numpy as n
S = State(5, 1, 5, 1)
for x in range(5): S.objects[str(x)] = Object()
S.update()
S.hObs('0', 45, 5)
S.dObs('0', 10**(1./2), 0.5)
S.update()
import matplotlib.pyplot as plt
from mpl_toolkits.mplot3d import Axes3D
fig = plt.figure()
ax = fig.add_subpl... | [
"software@cuauv.org"
] | software@cuauv.org |
d62e8f7b4422bd4d811bf2f519efdfd6bdc74feb | 9b07d27c172787358836f29f8c7c2d489ecac5e7 | /nCrawler.py | 4283658b3d81594c78a16cd6e017b17a4fc5008d | [] | no_license | cassar1/Crawler | cb05b91b2477a63c9e647df342855ebbef57465d | 0bf5effe7d0af0d33628f2413f009448c0fb343a | refs/heads/master | 2021-01-13T01:39:58.514385 | 2014-03-20T11:55:15 | 2014-03-20T11:55:15 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 22 | py | __author__ = 'Jurgen'
| [
"jurgen.cassar@hotmail.com"
] | jurgen.cassar@hotmail.com |
3eb31eaae7cb87b8e84c1b0b56b39c193af3feee | 1b598ee68cd6d840990298f470cbd9ff60ccd01b | /tests/test_face_cascade.py | c0d650a2b4a148e7f4ef71f7a2fd971bf1b29f05 | [
"MIT"
] | permissive | luizcarloscf/cv2utils | 1cfbbc24bc8c4bf319868dd1a95746f5d93002be | d5efdb8c8e9d86529b235384a90ba53266bc4668 | refs/heads/master | 2023-02-16T08:34:26.243785 | 2023-02-02T13:55:50 | 2023-02-02T13:55:50 | 207,383,388 | 1 | 1 | MIT | 2023-02-02T13:55:52 | 2019-09-09T19:01:25 | Python | UTF-8 | Python | false | false | 915 | py | import cv2
import pytest
from cv2utils import FaceCascade
def test_detect_faces():
image = cv2.imread("face.jpg")
face_detector = FaceCascade()
result = face_detector.detect_faces(image)
assert len(result) == 1
assert type(result[0]) is dict
assert 'box' in result[0]
assert 'label' in re... | [
"luizcarloscosmifilho@gmail.com"
] | luizcarloscosmifilho@gmail.com |
76347a0bc807d2e3b00e30fef2748954370b3171 | 99c4d4a6592fded0e8e59652484ab226ac0bd38c | /code/batch-2/dn5 - tviti/M-17135-2263.py | 9deedfe8d85e527c7a5c6e89ba8391269f3c8492 | [] | no_license | benquick123/code-profiling | 23e9aa5aecb91753e2f1fecdc3f6d62049a990d5 | 0d496d649247776d121683d10019ec2a7cba574c | refs/heads/master | 2021-10-08T02:53:50.107036 | 2018-12-06T22:56:38 | 2018-12-06T22:56:38 | 126,011,752 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 7,569 | py | def unikati(s):
sez = []
for x in s:
if x not in sez:
sez.append(x)
return sez
def avtor(tvit):
a = ""
for x in range(len(tvit)):
if tvit[x] == ":":
break
else:
a += tvit[x]
return a
def izloci_besedo(beseda):
beseda_1 = ""
for ... | [
"benjamin.fele@gmail.com"
] | benjamin.fele@gmail.com |
49af3d314c37c310a9fcc94f87b731f8337355e4 | f75e668cd21924f11e39d79eab978574d4f223c1 | /esframework/tests/event_handling/event_bus_test.py | c8b572037ad54bc08c2fd744e2248152429998a5 | [] | no_license | weemen/esframework | 141b2723214f11e11aec43d49ff98142b5f11eba | 044d9e12bca274b4ca52ccb0058b44e47beabbfd | refs/heads/master | 2020-03-28T19:31:18.872323 | 2019-01-12T17:16:21 | 2019-01-12T17:16:21 | 148,983,855 | 1 | 0 | null | 2019-01-12T17:16:22 | 2018-09-16T10:10:30 | Python | UTF-8 | Python | false | false | 3,184 | py | import unittest
from esframework.event_handling.event_bus import BasicBus
from esframework.exceptions import EventBusException
from esframework.tests.assets import EventA
from esframework.tests.assets.event_handling import SimpleEventListener
class TestBasicBus(unittest.TestCase):
""" testing the basic bus featu... | [
"weemen@leonweemen.nl"
] | weemen@leonweemen.nl |
c37a39159451217ffd7944df64ecb8052010e5ef | 8d18a96e67798938c64a5a05e1338820679be6b5 | /DocApp/main/migrations/0002_auto_20200501_2121.py | 1939408f6fcd56c8b55977c4ff8e998cbb0f5ca2 | [] | no_license | vishwaspuri/DocApp | 043a59805558e9dc0a87e1bcee77ef6e3b854481 | 0afd2c653f4e1a07d5ca413c7b9c4b88f09858e4 | refs/heads/master | 2022-09-06T06:52:17.401280 | 2020-05-14T09:11:53 | 2020-05-14T09:11:53 | 255,527,876 | 0 | 7 | null | 2020-05-26T19:00:20 | 2020-04-14T06:25:33 | JavaScript | UTF-8 | Python | false | false | 1,208 | py | # Generated by Django 3.0.5 on 2020-05-01 21:21
from django.db import migrations, models
import django.db.models.deletion
import uuid
class Migration(migrations.Migration):
dependencies = [
('main', '0001_initial'),
]
operations = [
migrations.AddField(
model_name='profile',... | [
"f20190112@pilani.bits-pilani.ac.in"
] | f20190112@pilani.bits-pilani.ac.in |
56f8397cd80c31bf0258a6c8726c43dfa3581ba0 | 6b2a8dd202fdce77c971c412717e305e1caaac51 | /solutions_5688567749672960_1/Python/Jakube/A.py | 4b619d8aaec440fa7678ace44a08aae319de1d8e | [] | no_license | alexandraback/datacollection | 0bc67a9ace00abbc843f4912562f3a064992e0e9 | 076a7bc7693f3abf07bfdbdac838cb4ef65ccfcf | refs/heads/master | 2021-01-24T18:27:24.417992 | 2017-05-23T09:23:38 | 2017-05-23T09:23:38 | 84,313,442 | 2 | 4 | null | null | null | null | UTF-8 | Python | false | false | 1,162 | py | def splitter(number):
s = str(number)
return int(s[:len(s)//2] or "0"), int(s[len(s)//2:]), len(s[len(s)//2:])
def compute(number):
steps = 0
while number:
# get second part of the number
half1, half2, l = splitter(number)
if half2 == 0:
steps += 1
... | [
"eewestman@gmail.com"
] | eewestman@gmail.com |
d0ac595a122ecd472ef080d0b8bd510635b637ea | 6fab6422c26e00cde21f51f8f10eb88ff5c458af | /api/serializers.py | 51f7198a3741d3245a04b600aeef1d4bc543c61a | [] | no_license | nicksonlangat/alzy-api | ffa3f43198fa0a6e8f58b88ae3f206e4c69f6cfb | d4a95da469d0895eb0c8a2897f3927e61da89aa9 | refs/heads/master | 2023-02-28T08:36:15.600769 | 2021-02-09T22:37:03 | 2021-02-09T22:37:03 | 337,120,025 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 930 | py | from django.contrib.auth.models import User
from rest_framework import serializers
from .models import *
class UserSerializer(serializers.HyperlinkedModelSerializer):
class Meta:
model = User
fields = ('id', 'username', 'email', 'password')
extra_kwargs = {'password' : {'write_only': True, ... | [
"nicksonlangat95@gmail.com"
] | nicksonlangat95@gmail.com |
10661eaf4db62200c682b0ed7858c28b09a06815 | 41e36b381affe7e9c6ed0681b7eba99b6e96f8f8 | /backend/grocery_assistant/grocery_assistant/tests/test_recipes_post.py | 7546eacaf12bcc4dd6693082eb7447a6748103d1 | [] | no_license | vbifaa/foodgram-project-react | 8dc321d968ec064bcc76aede2a21769837a0ba35 | 30db5ef4968c723f3b664a614ed187e22f2015f7 | refs/heads/master | 2023-07-11T21:17:55.291522 | 2021-08-22T18:14:53 | 2021-08-22T18:14:53 | 388,137,596 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,252 | py | from .data.set_data import SetOneRecipeData
class TestPostRecipe(SetOneRecipeData):
def test_correct_post_recipe(self):
response = self.auth_client.post(
'/api/recipes/', self.recipes[self.recipe_id], format='json'
)
self.assert_correct_recipe_response(
response=r... | [
"yakubenko.mish@yandex.by"
] | yakubenko.mish@yandex.by |
f3c46d47d4582718dfb6dd5b01fc9693777fc6bd | f576f0ea3725d54bd2551883901b25b863fe6688 | /sdk/network/azure-mgmt-dns/azure/mgmt/dns/v2023_07_01_preview/aio/_dns_management_client.py | 27d21876b1846ae591194de288047cefd6a1b680 | [
"MIT",
"LicenseRef-scancode-generic-cla",
"LGPL-2.1-or-later"
] | permissive | Azure/azure-sdk-for-python | 02e3838e53a33d8ba27e9bcc22bd84e790e4ca7c | c2ca191e736bb06bfbbbc9493e8325763ba990bb | refs/heads/main | 2023-09-06T09:30:13.135012 | 2023-09-06T01:08:06 | 2023-09-06T01:08:06 | 4,127,088 | 4,046 | 2,755 | MIT | 2023-09-14T21:48:49 | 2012-04-24T16:46:12 | Python | UTF-8 | Python | false | false | 5,306 | py | # coding=utf-8
# --------------------------------------------------------------------------
# Copyright (c) Microsoft Corporation. All rights reserved.
# Licensed under the MIT License. See License.txt in the project root for license information.
# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may ... | [
"noreply@github.com"
] | noreply@github.com |
e8bad14d95e08fc8e990e74f3bdf81de17ebc718 | 23b7fa714698be444d82ac649314616495c66235 | /petl/transform/__init__.py | 5dac1f6cd765844d320a78b291999fef24a54ef6 | [
"MIT"
] | permissive | mbelmadani/petl | a38ed1e595157fb556fe86ae32e796f6eff60a7a | b6867f056bf44d699f8f7b8432769e4b5127e937 | refs/heads/master | 2021-04-03T09:04:56.785188 | 2019-08-06T15:09:40 | 2019-08-06T15:09:40 | 124,597,339 | 0 | 0 | MIT | 2018-03-09T21:53:44 | 2018-03-09T21:53:44 | null | UTF-8 | Python | false | false | 2,444 | py | from __future__ import absolute_import, print_function, division
from petl.transform.basics import cut, cutout, movefield, cat, annex, \
addfield, addfieldusingcontext, addrownumbers, addcolumn, rowslice, head, \
tail, skipcomments, stack
from petl.transform.headers import rename, setheader, extendheader, \
... | [
"alimanfoo@googlemail.com"
] | alimanfoo@googlemail.com |
bc72cc0f0343ca37bc40790a466c5e2c0b09be43 | 2f46c6463d4f871a72d4296c3dae00f029e892f1 | /src/cogent3/maths/stats/jackknife.py | 33192edc584ffa4dc6506935473a1e778893a7bd | [
"BSD-3-Clause"
] | permissive | BrendanBeaton/cogent3 | a09376c55f24da837690219157770ad94e917579 | e10f4f933921d52b000096b7c016190a1602add6 | refs/heads/master | 2022-12-02T07:59:11.112306 | 2020-06-30T05:40:33 | 2020-06-30T05:40:33 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,782 | py | import numpy as np
from cogent3.util.table import Table
__author__ = "Anuj Pahwa, Gavin Huttley"
__copyright__ = "Copyright 2007-2020, The Cogent Project"
__credits__ = ["Anuj Pahwa", "Gavin Huttley"]
__license__ = "BSD-3"
__version__ = "2020.6.30a"
__maintainer__ = "Gavin Huttley"
__email__ = "Gavin.Huttley@anu.edu... | [
"Gavin.Huttley@anu.edu.au"
] | Gavin.Huttley@anu.edu.au |
4d110ba899e09c73a7e36c1890edd98ee87c735a | 8a5a3f1ad1bdc659b74c9899888853c987047507 | /agile_project/agile_project/settings.py | 9e272ca414edeac3218f050326117ebd1314e2ce | [] | no_license | tomaszblawucki/stan-gregorsky | c126dc78193b2a1c6eb69a124680bfc3f6c318a8 | 25784304b8b8e0633308f7400b4d70858af6d9bc | refs/heads/master | 2020-04-23T16:25:13.702519 | 2019-06-10T14:23:53 | 2019-06-10T14:23:53 | 171,297,365 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,887 | py | """
Django settings for agile_project project.
Generated by 'django-admin startproject' using Django 2.1.7.
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... | [
"tomasz.blawucki@gmail.com"
] | tomasz.blawucki@gmail.com |
44adf6b6092d9e48ed92769805836377be265962 | 2b694821034ac1415b7610849a58af92e8af3f64 | /main.py | 1a8062ba765b25800027bdc97d89b6a9423395ac | [] | no_license | HermesSJC/PythonTranslate | 25d1d4bc7a77ccaa9caa8c0f48da401eb120cb3a | 14c0df89ef4b554908e34cd8811a776374edf695 | refs/heads/master | 2020-04-12T19:37:47.266709 | 2019-04-16T05:20:12 | 2019-04-16T05:20:12 | 162,713,991 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 259 | py | from MainWindow import MainWindow
from PySide2.QtWidgets import QApplication
import sys
def main():
app = QApplication(sys.argv)
window = MainWindow()
window.show()
sys.exit(app.exec_())
if __name__ == '__main__':
main() | [
"noreply@github.com"
] | noreply@github.com |
862c81b2ef0de78fa644bf52c982c1328e8d71a2 | 8d9b037e466dd18e878bac7e42a1d0ef25097161 | /metrics/generate_samples.py | a5683e4ce9e5120c36f30ccf8ffb13f2bed3355b | [] | no_license | klory/MPG_Arxiv | fa4946f14b9a0deb2523b0bdbdfa37abc8f47205 | 4cd5b29b2d4640c49b3fc92d04131bf33aec250a | refs/heads/main | 2023-08-27T02:01:53.104604 | 2021-11-03T23:32:01 | 2021-11-03T23:32:01 | 406,527,697 | 4 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,986 | py | import torch
import os
import pdb
import numpy as np
import sys
sys.path.append('../')
import common
def randomize_ingr_label(bs):
ingr_label = torch.zeros(bs, 10)
for i in range(bs):
idxs = np.random.choice(10, np.random.randint(4), replace=False)
ingr_label[i, idxs] = 1.0
return ingr_lab... | [
"hfdtsinghua@gmail.com"
] | hfdtsinghua@gmail.com |
2c7f52b950e7ba35aa93cd70115be97c7e9623a2 | 2c6ecf3feb62fda6753cac49be6d8cee25740dae | /venv/Scripts/easy_install-script.py | 2ae9ecd6aed1ce6921f4f9523d463ea8bd9fa501 | [] | no_license | ce-shop/CeShopAdminAPI | 4b6a796e588c4374a5b3bc0ced9fb63a0b9f31c0 | 44ee5d0732a474a1e4c67ac5a3012194d897399f | refs/heads/master | 2020-12-21T02:39:23.027961 | 2020-01-26T07:24:16 | 2020-01-26T07:24:16 | 236,280,976 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 433 | py | #!D:\www\CeShopAdminAPI\venv\Scripts\python.exe
# EASY-INSTALL-ENTRY-SCRIPT: 'setuptools==39.1.0','console_scripts','easy_install'
__requires__ = 'setuptools==39.1.0'
import re
import sys
from pkg_resources import load_entry_point
if __name__ == '__main__':
sys.argv[0] = re.sub(r'(-script\.pyw?|\.exe)?$', '', sys.... | [
"40131389+WuAlin0327@users.noreply.github.com"
] | 40131389+WuAlin0327@users.noreply.github.com |
ed098e93dfb8cbb2fbfaa7a1aaafa82196b49f69 | 557dc2a440c9d8fb6fb76b6256bea9fc5853213a | /3-7-1ddd.py | a89d2f72c2b45f9812e9e05031221aae47231996 | [] | no_license | dashiki78/python_section2 | f5d6e760116dbda7836e082880534147398bd65c | a54fc4939c6506ae74fbf538dca8ba775c71f389 | refs/heads/master | 2020-03-22T02:27:26.168575 | 2018-07-02T00:26:24 | 2018-07-02T00:26:24 | 139,371,380 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,998 | py | import sys
import io
from selenium import webdriver
from selenium.webdriver.firefox.options import Options
import time
sys.stdout = io.TextIOWrapper(sys.stdout.detach(), encoding = 'utf-8')
sys.stderr = io.TextIOWrapper(sys.stderr.detach(), encoding = 'utf-8')
class NcafeWriteAtt:
#초기화 실행(webdriver 설정)
def __... | [
"dashiki78@gmail.com"
] | dashiki78@gmail.com |
1197d22b4092f0070ba99d63e0074573c7e860f4 | 6045f8519065f17b9d832a8e051723a520b58e3c | /ex Basic Sytax/2. Drink Something.py | bc6082c6982ee35b8a65971bc335d24452e1b965 | [] | no_license | a-angeliev/Python-Fundamentals-SoftUni | a308a6c94eb705a3319f6e081543c1cad0b1b37d | a9a5eba0376ebc7395daeda527408d1e59d58316 | refs/heads/master | 2023-07-19T05:55:28.104160 | 2021-09-11T18:25:58 | 2021-09-11T18:25:58 | 399,575,767 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 155 | py | n = int(input())
if n<=14:
print("drink toddy")
elif n<=18:
print("drink coke")
elif n<=21:
print("drink beer")
else:
print("drink whisky") | [
"nachko01@gmail.com"
] | nachko01@gmail.com |
4f6cbcf3e0543fbc33767b8e8ceb9f39d449180c | b5e075462c902a5cdafb524dac8afa9371ef059a | /Library/integration/test_instance_id.py | 827cbe2e4ce99507786cecab1d217bfd256daf4a | [] | no_license | jigarkb/Invesmate | 25fd512be274f979a85f884b05d7452e52af1ac5 | 8d74314b1dc3c640599e66922375cc420e357f34 | refs/heads/master | 2021-09-18T14:33:58.913770 | 2018-07-15T23:50:21 | 2018-07-15T23:50:21 | 107,160,161 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 938 | py | # Copyright 2017 Google Inc.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, ... | [
"jigarbhatt93@gmail.com"
] | jigarbhatt93@gmail.com |
709b50b04fda4aa769d4863ac3b1568a456ad4e7 | 60a0b9f7df16030dac7726c8d4b2bc88579a5e87 | /tests/test_sandbox.py | cb63764d1b463c192cf33c5a2f63552d88fbea70 | [] | no_license | usacs/aristotle | 4ef9d6b6de47d8a12db6e663305d4d081c63e159 | 0413d0240eb9ef8b120e68789b82fe93d3db846d | refs/heads/master | 2022-08-27T12:59:17.301597 | 2020-05-28T07:17:56 | 2020-05-28T07:17:56 | 267,346,219 | 0 | 0 | null | 2020-05-30T08:41:03 | 2020-05-27T14:46:41 | Python | UTF-8 | Python | false | false | 46 | py | import pytest
def test_ok():
assert True
| [
"amoor.hari@gmail.com"
] | amoor.hari@gmail.com |
260b8b5eca11766e13b26825faa4fc8c3e1ab396 | c1fbe2b0b691549979b318ab658cfd0b89e070c7 | /synapseutils/migrate_functions.py | ff4bf6d461fb9fb3f2fc1178e1f1c05001b05318 | [
"Apache-2.0"
] | permissive | jkiang13/synapsePythonClient | dc469539cd7ace94c62cacf53fbd85f58ecbcc72 | ffeca2f8e33ebb51e4840feb50396d759cf93bdf | refs/heads/develop | 2021-07-11T14:38:18.887179 | 2021-05-28T22:55:48 | 2021-05-28T22:55:48 | 247,107,195 | 0 | 1 | Apache-2.0 | 2021-02-17T00:15:32 | 2020-03-13T15:46:47 | Python | UTF-8 | Python | false | false | 53,053 | py | import concurrent.futures
import csv
from enum import Enum
import json
import logging
import math
import sys
import traceback
import typing
import synapseclient
from synapseclient.core.constants import concrete_types
from synapseclient.core import pool_provider
from synapseclient.core import utils
from synapseclient.t... | [
"jordan.kiang@sagebase.org"
] | jordan.kiang@sagebase.org |
8a2fa77e9a860b3b2ac21b16b7d0e7fe45df1e7a | f5a87723b69e4c52f4f95c27c4d3bdbbe801212b | /homeassistant/components/pi_hole/config_flow.py | 5acaffd13b1b53afe90082e2186b85a02de9055d | [
"Apache-2.0"
] | permissive | craigjmidwinter/home-assistant | b5ef821213dfeacb67e12fa6a5f76cfd898b9aff | 68ca0a05c8a849ba374539e3c6a883555a567abf | refs/heads/dev | 2023-07-20T00:00:10.335031 | 2021-12-04T00:13:16 | 2021-12-04T00:13:16 | 75,567,206 | 1 | 0 | Apache-2.0 | 2023-09-13T06:57:26 | 2016-12-04T21:57:33 | Python | UTF-8 | Python | false | false | 6,146 | py | """Config flow to configure the Pi-hole integration."""
from __future__ import annotations
import logging
from typing import Any
from hole import Hole
from hole.exceptions import HoleError
import voluptuous as vol
from homeassistant import config_entries
from homeassistant.components.pi_hole.const import (
CONF_... | [
"noreply@github.com"
] | noreply@github.com |
4ea052981899c8b2d541490b7e479a087ba003cd | aab628ac8bbabee5be5eacd62f02dd57887b1368 | /posts/admin.py | 162b24c22d97a22a02816b1f92fc9e5eee09f5e8 | [] | no_license | arundhyani/trydjango | f28d3cca0c2073e8e49ac46e945facabb5ed9126 | 14d48d69d479643612425e6c557cafd0b6f27dd9 | refs/heads/master | 2020-03-23T15:27:33.382509 | 2018-08-12T19:49:01 | 2018-08-12T19:49:01 | 139,466,247 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 339 | py | from django.contrib import admin
from .models import Post
class PostModelAdmin(admin.ModelAdmin):
list_display = ["__str__","update","timestamp"]
list_display_links = ["update"]
list_filter = ("update","timestamp")
search_fields = ['title']
class Meta :
model = Post
admin.site.register(Po... | [
"arun.dhyani567@gmail.com"
] | arun.dhyani567@gmail.com |
93445be0fe7f2304b57849fd393fb87152e4fed1 | 95230c76a9e09d518c125ea8105002a7af6d1afc | /05_qstyle_sheets/style_sheets_example.py | 48aab6b37dbed01f2b7497c75912ca16b2631c56 | [] | no_license | amkartheek/nuke_python | d5f86f5ccb9742cd65acaf571fd4f5c7ca4032ff | 67ed5e25796506c9321f487f576bc142842e0041 | refs/heads/master | 2020-05-31T19:04:19.463232 | 2018-03-09T19:17:19 | 2018-03-09T19:17:19 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,088 | py | from PySide.QtGui import *
from PySide.QtCore import *
import sys
class MyLineEdit(QLineEdit):
def __init__(self):
super(MyLineEdit, self).__init__()
class Panel(QWidget):
def __init__(self):
super(Panel, self).__init__()
first_name_label = QLabel("First Name:")
self.first_na... | [
"harukun2002@gmail.com"
] | harukun2002@gmail.com |
b6e89f8e6a9defc0b34985c6463aaee012df5de7 | d6bc51e34d7cb8f45b0000fb0fe236b6fe6e06b9 | /get_my_face_image.py | f6db2c66c86fae13b1d49469228baecfc8a338a3 | [] | no_license | dingjingjing0212/myseltornot | e63b6a91370cc5fb37366be9a93c4e20ce5748a7 | 03a41ba5c45fd4d698c4b8e3d58d280d4c2b07d9 | refs/heads/master | 2020-04-28T08:52:53.576168 | 2019-03-12T06:22:41 | 2019-03-12T06:22:41 | 175,145,767 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,676 | py | # -*- coding: utf-8 -*-
import os
import pickle
import cv2
import dlib
import numpy as np
def change_contrast_and_brightness(image, alpha=1.0, beta=0):
image = alpha * image + beta
image[image < 0] = 0
image[image > 255] = 255
return image.astype(np.uint8)
predictor_file_path = 'data/models/shape_p... | [
"dingjingjing@djjdeMacBook-Pro.local"
] | dingjingjing@djjdeMacBook-Pro.local |
9789466f6317a7c47b259e2c07f2ba93c65a8d5a | c0baf3c55b538ffd083fdf8b94e034323fcd980d | /Crawl Table.py | babe1280fdc2f52bb95e09b2d817d98cf6a8ce93 | [] | no_license | krishna5737/Crawlers | 9c96d15970f1a794c5c1c7f7fbae9a014bfe7015 | 0b2d3ae430ad77bb748476f1f9a12b320948db81 | refs/heads/master | 2020-03-17T05:32:35.491855 | 2018-05-14T07:23:46 | 2018-05-14T07:23:46 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,322 | py | #import libraries BeautifulSoup, csv, urllib.request
import bs4 as bs
import urllib.request
import csv
def input_url():
#try to open the url using urllib if true return the url
flag = 0
while (flag == 0):
try:
url = input("Enter URL: ")
urllib.request.urlopen(url)
... | [
"noreply@github.com"
] | noreply@github.com |
16b184584b1a0e8f5b547720eb57c19050402caf | 0d207a7ff86797206614cbd11b9388850dc7c649 | /cartpole-master/retest.py | e3bed8a8b6899b302088f8446bcf1977fcc2a5b1 | [
"MIT"
] | permissive | ConnorMich/Fast_Slow_Dynamics_Control | 639a2924ee321ef277049e13d889b20dbcb599fb | d242b2df77391a59bb950ccd704ab80ed2804be1 | refs/heads/master | 2020-05-03T05:04:38.314204 | 2019-04-29T15:59:16 | 2019-04-29T15:59:16 | 178,439,149 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,948 | py | import gym
import sys
import numpy as np
import argparse
from scores.score_logger import ScoreLogger
from scores.score_logger import FS_score
from scores.score_logger import Test_Score
from scores.score_logger import video
from dqn import DQNSolver
import datetime
import os
ENV_NAME = "CartPole-v1"
TRAINING_EPISODE_T... | [
"cnnphx@gmail.com"
] | cnnphx@gmail.com |
31c03c46273a3ec99f7d4ec05e1b47a219fe961a | 291c08a11a29ce995099f775ac0ef79cd69dd1fc | /file_app/migrations/0001_initial.py | 3918065b948c8b8a81a7a5331b098db45406b028 | [
"MIT"
] | permissive | Amirsorouri00/neolej | 1e278a2216a961b8abedc32b30d4fccf5c431d0b | 8fa18f2c1a38b0a59ed7eeeed7ed37ef7b9dad97 | refs/heads/master | 2020-04-20T15:36:24.669991 | 2019-03-17T07:20:02 | 2019-03-17T07:20:02 | 168,935,557 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 557 | py | # Generated by Django 2.1.3 on 2019-02-16 15:28
from django.db import migrations, models
class Migration(migrations.Migration):
initial = True
dependencies = [
]
operations = [
migrations.CreateModel(
name='File',
fields=[
('id', models.AutoField(aut... | [
"amirsorouri26@gmail.com"
] | amirsorouri26@gmail.com |
4f222f886a3b809a9587571250863c0aa5cc8dc9 | 1a5a455ee38b025accf864941a90ac952ddb5c69 | /manage.py | 0c1fe5dc7e33ee4e9b6421a07042a3e5fad896bc | [] | no_license | vikasjindal2001/user-validation-through-email-verification | 857c79a2ede3bb901ecd905861a372e1b82c24f7 | dda2d601fec74e25178993f8d5663e18fbcda25c | refs/heads/master | 2023-07-25T17:28:17.020657 | 2021-09-03T14:48:25 | 2021-09-03T14:48:25 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 671 | py | #!/usr/bin/env python
"""Django's command-line utility for administrative tasks."""
import os
import sys
def main():
"""Run administrative tasks."""
os.environ.setdefault('DJANGO_SETTINGS_MODULE', 'newvikasproject.settings')
try:
from django.core.management import execute_from_command_line
exc... | [
"vikasjindalmsc@gmail.com"
] | vikasjindalmsc@gmail.com |
e0b15df612ba3b856357439a9d6586d0186b146e | c0c4fe8f9aff2e7684fcaf10329f963873753b2a | /src/biotite/sequence/sequence.py | 1a6b8230a35cd5b6afd265692459ee224fe40473 | [
"BSD-3-Clause"
] | permissive | thomasnevolianis/biotite | 85e1b9d6a1fbb5d9f81501a8ebc617bc26388ab9 | 916371eb602cfcacb2d5356659298ef38fa01fcc | refs/heads/master | 2022-11-30T19:40:53.017368 | 2020-08-04T07:00:59 | 2020-08-04T07:00:59 | 285,375,415 | 0 | 0 | BSD-3-Clause | 2020-08-05T18:41:48 | 2020-08-05T18:41:47 | null | UTF-8 | Python | false | false | 11,010 | py | # This source code is part of the Biotite package and is distributed
# under the 3-Clause BSD License. Please see 'LICENSE.rst' for further
# information.
"""
The module contains the :class:`Sequence` superclass and :class:`GeneralSequence`.
"""
__name__ = "biotite.sequence"
__author__ = "Patrick Kunzmann"
__all__ = ... | [
"patrick.kunzm@gmail.com"
] | patrick.kunzm@gmail.com |
95ee6d9028cb4c1c7c5a614b96db2580eee8344c | e859d4604615e4ff3c6730554b12ae7b09e86286 | /django-stubs/db/models/fields/files.pyi | bb53d5944104eade0990047b3af0abafb3dbaff7 | [
"BSD-3-Clause"
] | permissive | microblag/django-stubs | d91655c346279424cf5e57b80a0b104dceb86ddc | d0eb05832551d344f06ec3e83cb850866a4d37c2 | refs/heads/master | 2020-04-18T05:18:24.887114 | 2019-02-06T04:02:28 | 2019-02-06T04:02:28 | 167,273,694 | 0 | 0 | null | 2019-01-24T00:12:42 | 2019-01-24T00:12:42 | null | UTF-8 | Python | false | false | 2,954 | pyi | from typing import Any, Callable, List, Optional, Type, Union
from django.core.checks.messages import Error
from django.core.files.base import File
from django.core.files.images import ImageFile
from django.core.files.storage import FileSystemStorage, Storage
from django.db.models.base import Model
from django.db.mod... | [
"maxim.kurnikov@gmail.com"
] | maxim.kurnikov@gmail.com |
a39a00acac47914e717411524682266198077482 | 7fb51ae4163aeea47d0fb434f28666ea99b104af | /app.py | 2cb0275c32bef3070e1b21c6218a864f8431cfd1 | [] | no_license | knowsuchagency/cdk-hello-apigw-asgi | 153eaae8d01a14e5886315122613c462ea90de70 | a47cdc58ddd9bb070419d4fbcfa1cf07fb3873f9 | refs/heads/master | 2022-12-28T15:44:05.585842 | 2020-10-18T18:17:15 | 2020-10-18T18:17:15 | 301,259,143 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 764 | py | #!/usr/bin/env python3
from aws_cdk import core
from hello_apig_wsgi.hello_apig_wsgi_stack import HelloApigWsgiStack
from hello_apig_wsgi.pipeline_stack import PipelineStack
from pydantic import BaseSettings
class Config(BaseSettings):
"""https://pydantic-docs.helpmanual.io/usage/settings/"""
account: str =... | [
"knowsuchagency@gmail.com"
] | knowsuchagency@gmail.com |
d41ca9e5632d9d18c48449b696185e20724e3e04 | 8f7cd4def3b08def0199eaf0c911d3dc434c8c1f | /venv/Scripts/easy_install-script.py | 9bd09b08847442b354b77a0bf42013d55ffad20d | [] | no_license | colafishx/webPage1 | ba65599a8dbcee72b685516835d8317d382865eb | badcfb8b3f10186b9042fb798950a1c2d4bc0235 | refs/heads/master | 2020-06-10T06:08:38.716528 | 2019-06-25T00:48:19 | 2019-06-25T00:48:19 | 193,604,704 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 456 | py | #!"C:\Users\Big data\PycharmProjects\webPage1\venv\Scripts\python.exe"
# EASY-INSTALL-ENTRY-SCRIPT: 'setuptools==39.1.0','console_scripts','easy_install'
__requires__ = 'setuptools==39.1.0'
import re
import sys
from pkg_resources import load_entry_point
if __name__ == '__main__':
sys.argv[0] = re.sub(r'(-script\.p... | [
"colafishx@gmail.com"
] | colafishx@gmail.com |
d6a7ea4be0c3d75a3b28ac3ff8c9b5e269691de4 | b8ce3e24a63a776e59d46986fecd8de291e2ec58 | /DGTSQD/urls.py | 5cd17297b746411e488204f214ea6116290d1b7e | [] | no_license | SathyaprakashraiS/DGTSQD-DJANGO | a9303cd6f538fb8326e73b0284303583636f63ea | c020848b824a206419b308b29e6ead4dfdc9f814 | refs/heads/main | 2023-07-13T12:10:28.313059 | 2021-08-30T18:13:22 | 2021-08-30T18:13:22 | 319,416,338 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,042 | py | """DGTSQD URL Configuration
The `urlpatterns` list routes URLs to views. For more information please see:
https://docs.djangoproject.com/en/3.1/topics/http/urls/
Examples:
Function views
1. Add an import: from my_app import views
2. Add a URL to urlpatterns: path('', views.home, name='home')
Class-based ... | [
"sathyaprakashrai2002@gmail.com"
] | sathyaprakashrai2002@gmail.com |
10f7c480f2212599841736bdfdf28fe0de43ab30 | 9183f1bc6a78c04552c4fbcf095415ed1603cc8b | /plants.py | e27d021cefa3c05b201c14a36e1417aa1412fe58 | [] | no_license | Alexander4127/plant-searcher-app | 4c942a8d0533d55ffac68fe0f897448db2b55545 | d120292a6ed753c9f848375ec139e91d0b70f8d5 | refs/heads/main | 2023-09-05T14:36:26.613002 | 2021-10-25T16:14:35 | 2021-10-25T16:14:35 | 385,708,708 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 10,297 | py | import requests
from bs4 import BeautifulSoup
import pandas as pd
import numpy as np
class PlantFinder:
def __init__(self):
self._categories = []
self._spec_desc = []
self._data = pd.DataFrame()
self._pests = pd.DataFrame()
self._all_colours = set()
self.collect_in... | [
"noreply@github.com"
] | noreply@github.com |
28d3b44b77faf8fb27a807ede09802bfc537eb6d | b788c477ea949e5ca17a5b3d9c24bdd07c6f7a7a | /custommixins/settings.py | b3a98dfb16d7d9390d9b93b31faa5a85f53d10d5 | [] | no_license | xettrisomeman/MixinUpdated | c756723fca9469f8a78bd9b70dcdfa1badaab8c8 | eabb08051ab3dcf1fca41d6efd8e728b6d8f8877 | refs/heads/master | 2020-06-26T09:16:48.097258 | 2019-07-31T07:55:44 | 2019-07-31T07:55:44 | 199,593,752 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,916 | py |
import os
# Build paths inside the project like this: os.path.join(BASE_DIR, ...)
BASE_DIR = os.path.dirname(os.path.dirname(os.path.abspath(__file__)))
# Quick-start development settings - unsuitable for production
# See https://docs.djangoproject.com/en/2.1/howto/deployment/checklist/
# SECURITY WARNING: keep t... | [
"webizmoxx@gmail.com"
] | webizmoxx@gmail.com |
a385b95268ee064344dcc0651454f2a1c24477fe | b73d6665b42ab26f2fcb0a8c4d166f7379d6bf77 | /categories/migrations/0002_auto_20191206_0812.py | 0a673deacd314dc9e4cd470fe0bdb7fd9868c7f4 | [] | no_license | JeppeAug/chavolve-project | 8ba2377d569160c27dfbc4338f2e3dea0e8c9ef4 | 6e20c021ae1b28c3a4fc3138b2f5a64dfb400dde | refs/heads/master | 2020-09-26T12:12:38.129267 | 2019-12-06T12:37:00 | 2019-12-06T12:37:00 | 226,252,908 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 758 | py | # Generated by Django 3.0 on 2019-12-06 07:12
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('categories', '0001_initial'),
]
operations = [
migrations.AddField(
model_name='category',
name='description',
... | [
"jeppe.aug@gmail.com"
] | jeppe.aug@gmail.com |
4c838e38957b8e229ba09084ca17679920d4a87a | 85a9ffeccb64f6159adbd164ff98edf4ac315e33 | /pysnmp/XYPLEX-LAT1-MIB.py | 9115a68e1bcae47973be45f12f9172c3ebd1ff1c | [
"Apache-2.0"
] | permissive | agustinhenze/mibs.snmplabs.com | 5d7d5d4da84424c5f5a1ed2752f5043ae00019fb | 1fc5c07860542b89212f4c8ab807057d9a9206c7 | refs/heads/master | 2020-12-26T12:41:41.132395 | 2019-08-16T15:51:41 | 2019-08-16T15:53:57 | 237,512,469 | 0 | 0 | Apache-2.0 | 2020-01-31T20:41:36 | 2020-01-31T20:41:35 | null | UTF-8 | Python | false | false | 19,721 | py | #
# PySNMP MIB module XYPLEX-LAT1-MIB (http://snmplabs.com/pysmi)
# ASN.1 source file:///Users/davwang4/Dev/mibs.snmplabs.com/asn1/XYPLEX-LAT1-MIB
# Produced by pysmi-0.3.4 at Mon Apr 29 21:40:05 2019
# On host DAVWANG4-M-1475 platform Darwin version 18.5.0 by user davwang4
# Using Python version 3.7.3 (default, Mar 27... | [
"dcwangmit01@gmail.com"
] | dcwangmit01@gmail.com |
bb30f670495e905e6715106618fe9e77f8760979 | fe9fb8292ae68eebe0ed863edb103075029d065c | /Transcriptomics/transcriptomics_1.py | 8ef391cc15cffdbbb98ef4ea48ea3a8752a9f704 | [] | no_license | francescajean/PFB-problemsets | 8aef06b3137e9d8008998a613f92d144d867efea | c521d1fb2d46d47952dad41cbabeb0079c77c721 | refs/heads/master | 2020-04-01T11:29:32.479869 | 2018-10-27T15:19:23 | 2018-10-27T15:19:23 | 153,164,629 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 947 | py | f#!/usr/bin/env python3
import sys
import re
#import pysam
from Bio import SeqIO
kmer_size = sys.argv[1]
input_file = sys.argv[2]
top_kmer_number = sys.argv[3]
kmer_dict = {}
list_sequences = []
for seq_record in SeqIO.parse(input_file,'fastq'):
sequences = str(seq_record.seq)
seq_strip = sequences.rstrip()
list... | [
"fje@pfb07.cshl.edu"
] | fje@pfb07.cshl.edu |
31ce60f8f2d8671df33b9aecdd9ac9385f959a49 | 2949466be9b2761a8d8945938b8ed5be8bdc2fa7 | /第9回/a.py | 7916cc33209d0fd0e2132f3a809af4b36e2122e0 | [] | no_license | greedtn/EEIC-Algorithms2021 | ab1087977e45fb6d386bff9db8ae4984363b203c | d38235f776ad51fac93be5a7972a68299a7e0706 | refs/heads/main | 2023-06-12T09:48:16.287802 | 2021-07-12T12:49:09 | 2021-07-12T12:49:09 | 357,838,621 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 585 | py | import sys
import resource
sys.setrecursionlimit(1000000)
resource.setrlimit(resource.RLIMIT_STACK, (-1, -1))
N, M, S, T = map(int, input().split())
S -= 1
T -= 1
edges = [[] for _ in range(N)]
for _ in range(M):
a, b = map(int, input().split())
edges[a-1].append(b-1)
edges[b-1].append(a-1)
done = [Fal... | [
"naoto.tsuda63@gmail.com"
] | naoto.tsuda63@gmail.com |
534fd9302ed0fb08767eb5f5e4e6d9586c986e98 | 95e1bc0785c88b77812872543db4d1ab9f3d126e | /model/utils.py | 27b3eafe28bd8a4cbd71cbe70312a6ad69629f48 | [
"Apache-2.0"
] | permissive | renhongkai/lstm-crf | 7635a098cad3ba4c587b1f4bc704bdb5fcd41f96 | cb47d7d865152893a06fbb890a5cbaa9fb7d03c0 | refs/heads/master | 2021-05-06T12:47:30.929889 | 2017-12-06T00:14:58 | 2017-12-06T00:14:58 | 113,182,910 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 32,197 | py | """
.. module:: utils
:synopsis: utility tools
.. moduleauthor:: Liyuan Liu, Frank Xu
"""
import codecs
import csv
import itertools
from functools import reduce
import numpy as np
import shutil
import torch
import json
import torch.nn as nn
import torch.nn.init
from model.ner_dataset import... | [
"13753198867@163.com"
] | 13753198867@163.com |
c2be6b88131e68c62aa48b3786283a180db645d5 | 26e39895d20a9f6a2d3d79fc84307bf5aa4ff45e | /classes.py | f8b1e7960605b55d947ef29676dd0e354c0c013f | [] | no_license | karanpepi/oops-python | 0324dbd2f561d904eb28b961cdfaeb7cf502c1d4 | 8d4433819bd70e30b4ccd32aee098ddf3ea853c1 | refs/heads/master | 2020-04-24T22:24:13.868199 | 2019-02-24T07:52:43 | 2019-02-24T07:52:43 | 172,310,763 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 518 | py | #Basic class and method
# class Subject:
# """docstring for ClassName"""
# def __init__(self):
# self.name = "Python"
# self.use = "web development"
# sub = Subject()
# sub2 = Subject()
# sub.use = "AI"
# print(sub.use)
# print(sub2.use)
#Instance variable and class variable/static variable
# class Car:
... | [
"karan.narwekar@routemobile.com"
] | karan.narwekar@routemobile.com |
88894940e71b6a27ead4076a227999278abace79 | 142cb494e93de36045a717cb9d92a0e719cb0007 | /apibb/apibb-server.py | a39e142bc5ad93b4bc04820d98594e8f79090c76 | [
"MIT"
] | permissive | RagnarDanneskjold/playground21 | 5a8553e93c97684c330d757f1291f1e1be2eee15 | 566d2478b0a0557934d89ebf29d0b9f3317fa76f | refs/heads/master | 2021-01-17T05:44:26.915795 | 2015-11-28T21:13:18 | 2015-11-28T21:13:18 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,070 | py | import os
import re
import json
import random
import apsw
import time
# import flask web microframework
from flask import Flask
from flask import request
# import from the 21 Developer Library
from two1.lib.wallet import Wallet
from two1.lib.bitserv.flask import Payment
connection = apsw.Connection("apibb.db")
name... | [
"jeff@bloq.com"
] | jeff@bloq.com |
9094d0aa7881214514389028e5649424dde7e59d | d180d7bea0db0aa65ee6d6112c14da903b1867b5 | /run.py | 58fee9cdd7064a02060da43ffe06f863a65d5852 | [
"CC-BY-4.0"
] | permissive | willemsk/phdthesis-text | 694eb21b0465b67f26291d0349c3fee821562311 | 43d0f0f68bb84e6305f6b430816f8585ce4e8112 | refs/heads/main | 2023-06-22T22:17:33.632485 | 2023-06-07T12:54:06 | 2023-06-07T12:54:06 | 345,727,833 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 13,723 | py | #!/usr/bin/env python3
# encoding: utf-8
#
# Copyright (C), 2012-2014 by Wannes Meert, KU Leuven
#
# Very naive compilation script for the ADSPHD class.
#
# No file dependency checks are performed (use TeXnicCenter, Texmaker, latexmk,
# rubber, SCons, or make if you want such a feature).
#
import glob
import os
import... | [
"kherim.willems@imec.be"
] | kherim.willems@imec.be |
a6ece782ddf978d05bafc7a4c5e181c849ba4483 | c944b854f931cfce8cef2858e3431d470dfa9f45 | /484_find_permutation.py | ef1bf974f8d5a0a1fcc43b5eb6d28a36017b5954 | [] | no_license | Klose6/Leetcode | c6d190ea254505efb15ce001312cf721e775b565 | 338da8147461ff445067818ea8fa42fa76ebf23f | refs/heads/master | 2021-07-15T16:30:58.354881 | 2021-06-24T18:43:53 | 2021-06-24T18:46:00 | 129,567,240 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 476 | py | """
484 find permutation
"""
def findPermutation(s):
n = len(s)
nums = [i+1 for i in range(n+1)]
i = 0
while i < n:
if s[i] != "D":
i += 1
else: # find the continuous Ds and reverse them
j = i+1
while j < n and s[j] == "D":
j += 1
# print(f"{i}, {j}")
nums[i:j+1] =... | [
"scsehebut@gmail.com"
] | scsehebut@gmail.com |
11b93de78ab70c6b13026e2928e725308a40b872 | 498f06792cf33c7925808ff2ab77374eec77e2f0 | /test.py | 85f4eb863ce68753257fbf2751ed5f9c400326bd | [] | no_license | NameLacker/hello-world | dcdd0e273a2c494c6a8e0cb49cdff635015b0e5a | a7627473ec9f5fb1a762aeeff49b8eca6cced9a0 | refs/heads/master | 2020-04-04T01:00:21.826230 | 2018-11-01T05:31:47 | 2018-11-01T05:31:47 | 155,664,299 | 0 | 0 | null | 2018-11-01T05:30:07 | 2018-11-01T05:03:04 | null | UTF-8 | Python | false | false | 653 | py | import numpy as np
# import heapq
# a = np.array([[1,np.nan,2.1,5],[1.3,2,3,2],[1,2,6,2],[2, 1,7,2]], dtype='float32')
##### 处理nan,inf######
# nan = np.isnan(a)
# print(nan)
# a[nan] = 0
# print(a)
##### 处理nan,inf######
##### 找最大值索引######
# a = np.array([2,34,1,5,5])
# c = a.argsort()[-3:][::-1]
# c... | [
"noreply@github.com"
] | noreply@github.com |
0ad9fe4925f4b28b1e4d34b71d268ddf45ccb8a2 | 301e55ee3990b2daf135197eac81e1cc244e6cd3 | /python/search-in-rotated-sorted-array.py | ac8d648b579b72e53fc06f4ec7a23090d95a213e | [
"MIT"
] | permissive | alirezaghey/leetcode-solutions | 74b1b645c324ea7c1511d9ce3a97c8d622554417 | c32b786e52dd25ff6e4f84242cec5ff1c5a869df | refs/heads/master | 2022-08-22T16:28:05.459163 | 2022-08-18T12:02:51 | 2022-08-18T12:02:51 | 203,028,081 | 3 | 1 | null | null | null | null | UTF-8 | Python | false | false | 996 | py | from typing import List
class Solution:
# Time complexity: O(log n) where n is the length of nums
# Space complexity: O(1)
def search(self, nums: List[int], target: int) -> int:
left, right = 0, len(nums)-1
while left <= right:
mid = left + (right - left) // 2
... | [
"alireza.q1357@gmail.com"
] | alireza.q1357@gmail.com |
09e0f6c4d47782c5b4710ab60f4a4e5b02c290a1 | 314de118562454e7b72406905af4906c6f528794 | /xor.py | 00e42149ed2c304906bab3bb6f57eee37250aa8e | [] | no_license | AkhilSinghania/XOR_Backprop | bc03b0e153d4fb058ec3cb463e810b45e4ca3891 | 539e287c050c04c1be8ede3cef71d06ada456112 | refs/heads/master | 2021-01-23T00:09:41.475833 | 2017-03-22T08:50:45 | 2017-03-22T08:50:45 | 85,703,098 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,013 | py |
import sys
import numpy as np
def sigmoid(x):
#Activation Function used in forward propagation
return 1/(1+np.exp(-x))
def sigmoidDash(x):
#Derivative of sigmoid function
#Activation function used in back propagation
return x*(1-x)
#Given Data
x = np.array(([0,0],[0,1],[1,0],[1,1])) #4x2 matrix
#Actua... | [
"noreply@github.com"
] | noreply@github.com |
e0c7dd836f868d77b664a7a7d8b6cb4c6b8ce3e2 | 2d33afa6c666d839828473c65c9800df7ff40bec | /resume/urls.py | 2544270ce66dba35c78124edce5ccb3c212356b5 | [] | no_license | raphaelmulenda/cv_template | 5ee1d10a462b3694556bd3ecb07591557df7151a | b9fc98d246f1efb50fd2cc404d3511b7214109b2 | refs/heads/main | 2023-08-25T02:39:43.169105 | 2021-10-19T12:15:28 | 2021-10-19T12:15:28 | 418,229,601 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 127 | py | from django.urls import path
from . import views
urlpatterns = [
path("", views.HomePage.as_view(), name="home-page")
]
| [
"mulendaraphael@yahoo.fr"
] | mulendaraphael@yahoo.fr |
452f415224a2bf6bed7e7911ecdbbe8b15249042 | 4904b6b2ac9f760e7e9bf15ab72f22ff86e67ecb | /firstapp/apiurls.py | f46b83fbf888e8967c77b90bfbf1526159946a2f | [] | no_license | mudong1991/md_django_xadmin | d04dcb7515cf31a1f081809c5cd13a81e447235f | 83ee41678ea00993756a22eefcce13a2b5a2b2b1 | refs/heads/master | 2021-01-10T23:54:38.532606 | 2016-10-13T09:10:03 | 2016-10-13T09:10:03 | 70,788,466 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 416 | py | # -*- coding: UTF-8 -*-
__author__ = 'MD'
from django.conf.urls import url, patterns
from firstapp import apiviews
from rest_framework import routers
urlpatterns = [
url(r"^systeminfo", apiviews.systeminfo),
url(r'^sync_time/', apiviews.GetSystemTime.as_view()),
]
route = routers.DefaultRouter()
... | [
"Administrator@2013-20160229XQ"
] | Administrator@2013-20160229XQ |
23d8589bbfe5f9b76e56d2548b4f80fb857464f5 | 7c413e5355663de13abd2584cb25939292c9faea | /src/Temporal.py | 4166b26a26d83cf23db28e5fe834aed807ce5c64 | [] | no_license | Zumbalamambo/Deep-Activity-Recognition | 83b39cd0ea497be5897dfd4a13e48daa418a4484 | 83078f329b7336b485a5f640ebfeb52d6d69f3a6 | refs/heads/master | 2020-03-30T13:21:32.935369 | 2018-09-03T00:14:30 | 2018-09-03T00:14:30 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 9,259 | py | # -*- coding: utf-8 -*-
import tensorflow as tf
import Layers
import os
class Temporal:
def __init__( self,
dim = 224,
inp_channels = 2,
timesteps = 5,
n_actions = 101,
modelsPath = '../models/',
metaGraph... | [
"cmranieri2@gmail.com"
] | cmranieri2@gmail.com |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.