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 220
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 257
values | content stringlengths 2 10.3M | authors listlengths 1 1 | author_id stringlengths 0 212 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
fbc081707ef66f98e229cca660ba24a576af8e5f | 479bf0773eb6b3e80a7257b15b9f203f68707669 | /Examples/V3/problems/problems/updateProblemErrorHandling.py | 258a7c614d7829c23e9bd3352cb41efa31453580 | [] | no_license | rucamedia/python-client | 56fa82c81452e9560d1eb7b5d295896391bf882f | 2b9ddbea0f9173754dfeb4f4e651a7c5a275bf52 | refs/heads/master | 2020-03-29T10:40:08.261883 | 2018-08-30T10:47:25 | 2018-08-30T10:47:25 | 149,817,070 | 1 | 0 | null | 2018-09-21T20:55:50 | 2018-09-21T20:55:50 | null | UTF-8 | Python | false | false | 1,134 | py | """
Example presents error handling for problems.update() API method
"""
from sphere_engine import ProblemsClientV3
from sphere_engine.exceptions import SphereEngineException
# define access parameters
accessToken = '<access_token>'
endpoint = '<endpoint>'
# initialization
client = ProblemsClientV3(accessToken, endpo... | [
"lewon.robert@gmail.com"
] | lewon.robert@gmail.com |
23a21be9bcf676c66497144883ee69f723158063 | 5df5fd36725df0cc9816c5819a3e9d231c1cad70 | /stars.py | e9e6a011992e4859a87e0ba11dd82eef570cf1b7 | [] | no_license | spartanshaz/Python | 73e77698514b20fd52bb4d42a1fc5973f664df83 | fe9921c484f8e694a2f607afb8c7b03061f90acb | refs/heads/master | 2020-05-24T14:39:29.546926 | 2015-06-10T10:18:56 | 2015-06-10T10:18:56 | 37,189,292 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 128 | py | def box(width,height):
print width * "*"
for i in range (height-2):
print"*"+(width-2)*" " + "*"
print width*"*"
box(10,3) | [
"shahzadmuddabbir22@gmail.com"
] | shahzadmuddabbir22@gmail.com |
f770862e00c3d4bd907fea69199c536b14816ffa | c8b938ab98e7ea8a97bd9f5ec001dbfe1af08eef | /CNN Model/main_cnn_code/cnn_crisis_train.py | 34a588a4980e1aa3fedd0377a008d7bb702b6fa2 | [] | no_license | Rajratnpranesh/CRISIS_MODEL | ca32f4190bb568d25f13f210430646a47ac97ec7 | dd1fe63f1591e9d8290513c8f750f349301d5f08 | refs/heads/master | 2020-09-11T15:18:15.149632 | 2019-11-16T18:41:40 | 2019-11-16T18:41:40 | 222,108,439 | 6 | 0 | null | null | null | null | UTF-8 | Python | false | false | 12,793 | py | '''Train LSTM RNNs on the AIDR tweet classification task.
GPU command:
THEANO_FLAGS=mode=FAST_RUN,device=gpu,floatX=float32 python lstm_rnns_aidr.py
Output after 4 epochs on CPU: ~0.8146
Time per epoch on CPU (Core i7): ~150s.
'''
from __future__ import print_function
import numpy as np
np.random.seed(437) # for... | [
"raj.ratn18@gamil.com"
] | raj.ratn18@gamil.com |
81d721b7a0d2e8728825bf4b491d4817d1e1a862 | eeda5834c6bd0632487407e161f8f19a6328f9ea | /Topological_Sorting.py | 9d72d3a06b81c46407ef5253d5dc612846bff6e8 | [] | no_license | Halal375657/Graph-Theory | 01709f7e9125c635c680bc66557d77254a394fed | 549f0f7a7acee9e3a236044648ac635c6138b657 | refs/heads/master | 2020-11-25T02:25:58.986387 | 2020-03-23T09:50:22 | 2020-03-23T09:50:22 | 228,451,265 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,483 | py |
#
# Topological Sorting Algorithm.
#
# O(V + E)
#
from collections import defaultdict
graph = {}
Graph = defaultdict(list)
# Add edge of directed graph.
def addEdges(u, v):
Graph[u].append(v)
# Adding in-degree.
def addDegree(u, v):
try:
graph[v] += 1
except KeyError:
graph[v] = 1
... | [
"halaluddin375657@gmail.com"
] | halaluddin375657@gmail.com |
259af6fd38f7530b5db9bc123a7453b2252e7725 | fa8a563f71519d0bd188f9218c6e34e18e6833f7 | /CIFAR10/cifar10_input.py | 2033d7a931b65d83554c053dd56150780ec7ac44 | [] | no_license | EricGaoJiaBao/cat_emotion | b9493a4629a7e26ad5d1d724508634137c87c5cd | 7c5b3c7e82ef1e1889515892d7f2e69c1f73b904 | refs/heads/master | 2021-01-23T01:18:45.582704 | 2017-09-11T09:57:07 | 2017-09-11T09:57:07 | 102,433,313 | 4 | 4 | null | null | null | null | UTF-8 | Python | false | false | 4,999 | py | #By @Kevin Xu
#kevin28520@gmail.com
#Youtube: https://www.youtube.com/channel/UCVCSn4qQXTDAtGWpWAe4Plw
#Chinese weibo: http://bit.ly/2nAmOcO
#The aim of this project is to use TensorFlow to process our own data.
# - cifar10_input.py: read in data and generate batches
# - cifar10.py: build the model archite... | [
"noreply@github.com"
] | EricGaoJiaBao.noreply@github.com |
7402d3175729950a83667309b34cdfaaab5cce1f | a8c226e94330bb76f1ada9557a34d6d34eb73e59 | /ST_LE/task 4.py | 21748577de394af18f568043e29999b5b05ac897 | [] | no_license | AntonVetoshkin/Students_Lecturers | 8b789d59975b6d4907956882c79ce2e946a8393b | 7b50b7a5371a5c4c35992bc331db17f86dc87016 | refs/heads/master | 2023-05-11T20:58:01.638478 | 2021-05-26T17:31:35 | 2021-05-26T17:31:35 | 365,810,327 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,259 | py | class Student:
def __init__(self, name, surname, gender):
self.name = name
self.surname = surname
self.gender = gender
self.finished_courses = []
self.courses_in_progress = []
self.grades = {}
def add_courses(self, course_name):
self.finished_courses.appe... | [
"aveto77@mail.ru"
] | aveto77@mail.ru |
81409cc992d48f7b31a22d72b721517277678d4f | ce1a7e0f31f8859b3e301d8c6a4c772a52527727 | /CSE 218/LAB 1 & 2/lab1 (2).py | b2d587777f48cb4a3030c3afbc9fa8db549496a5 | [] | no_license | SaemHasan/Level-2-Term-1_CSE_BUET | 2d9ab472b98fb8cbe6caf9c616a3882e8f9893ba | 75d0478f77d438e6bc57bc0dcd52fcde2f6a390a | refs/heads/main | 2023-06-27T05:04:52.420317 | 2021-07-31T09:28:06 | 2021-07-31T09:28:06 | 391,307,544 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 66 | py | #import lab2(1)
print("HELLO SAYEM")
x=5
print (x)
#a=func(2,3)
| [
"1705027@ugrad.cse.buet.ac.bd"
] | 1705027@ugrad.cse.buet.ac.bd |
f185fb7d2592d7b702fbb0aa041313972b43ce49 | a140fe192fd643ce556fa34bf2f84ddbdb97f091 | /.history/모듈과 패키지/외장함수_20200711174751.py | 99b2fc1648509015a8491be7758fc5ff48cd8b55 | [] | no_license | sangha0719/py-practice | 826f13cb422ef43992a69f822b9f04c2cb6d4815 | 6d71ce64bf91cc3bccee81378577d84ba9d9c121 | refs/heads/master | 2023-03-13T04:40:55.883279 | 2021-02-25T12:02:04 | 2021-02-25T12:02:04 | 342,230,484 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 324 | py | # list of python modules라고 검색한다
# Python Module Index라는 페이지를 들어간다.
# # glob : 경로 내의 폴더 / 파일 목록 조회(윈도우 dir)
# import glob
# print(glob.glob("*.py")) # 확장자가 py 인 모든 파일
# os : 운영체제에서 제공하는 기본 기능
import os
print(os,get) | [
"sangha0719@gmail.com"
] | sangha0719@gmail.com |
9f48bfedb2c4173468cb9cd3c705f3b68fd47718 | 340352a8f482b765c3105f595502299c5e318961 | /Raia2011/model/name2idx/variables.py | 486f0c86f54b8984a157707c9b890cb701bf8703 | [
"MIT"
] | permissive | Jin005/cancer_modeling | 9e7e98f6a76c9aded1dad7f67b9e54b3fb6c9ade | 0db555dfd0e35dfa220207c775311bbba30158fc | refs/heads/master | 2022-11-05T19:57:50.630021 | 2020-06-27T04:54:24 | 2020-06-27T04:54:24 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 353 | py | var_names = [\
'IL13stimulation',
'Rec',
'Rec_i',
'IL13_Rec',
'p_IL13_Rec',
'p_IL13_Rec_i',
'JAK2',
'pJAK2',
'SHP1',
'STAT5',
'pSTAT5',
'SOCS3mRNA',
'DecoyR',
'IL13_DecoyR',
'SOCS3',
'CD274mRNA',
#
'len_f_vars'\
]
for idx,name in enumerate(var_nam... | [
"himoto@protein.osaka-u.ac.jp"
] | himoto@protein.osaka-u.ac.jp |
16443e3ed297179dafc58fb10e0a1b55dcc6fec6 | c4726317d2a4387cede3808a8f314b02d0001664 | /soft/FQW/paired_comparison/forms.py | f629043924208522123805d47471d491b0265b41 | [] | no_license | CyclopsV/Final_qualifying_work | 8220eedca7b118ce6eb1978d141ef12dabfa1def | 97f8bb3fabe7dbcad3320daa869afc96dde33bd1 | refs/heads/main | 2023-07-07T22:01:30.962479 | 2021-09-03T13:40:06 | 2021-09-03T13:40:06 | 402,754,083 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,438 | py | from django.forms import ModelForm, TextInput, Textarea, BooleanField, ClearableFileInput
from .models import Comparisons, Users
class ComparisonsForm(ModelForm):
index_check = BooleanField(help_text='Является ли первый столбец индексами', required=False, initial='True')
class Meta:
model = Comparis... | [
"vnikita3@gmail.com"
] | vnikita3@gmail.com |
a6ad218d7bc11de0390f8dc2972083016003f7da | fedaabb798b5110eadf7e90f461f3b52728e1b44 | /project_cellphone/cellphone.py | 53a9be9e1da9ec74a9f72b3023ee7d64e00e8aa9 | [] | no_license | HikaruG/NCU_scripts | cd776ca66174299b2054f9c2cb6c53381f3734e5 | 2bcb31613d303b7556bb85b1fb70c3112025fa9d | refs/heads/master | 2020-07-11T15:14:56.601002 | 2019-08-27T00:04:36 | 2019-08-27T00:04:36 | 204,580,707 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,264 | py | import cellphone_phonecallsys
reload(cellphone_phonecallsys)
import cellphone_calendar
reload(cellphone_calendar)
import cellphone_contact
reload(cellphone_contact)
class Cellphone(object):
def __init__(self, phone_id, phone_num,phone_location):
self.phone_id = phone_id
self.phone_num = p... | [
"noreply@github.com"
] | HikaruG.noreply@github.com |
b224e371785741f76713f1e7f35515d2c7ed977a | e786939abb1c4a8a4730879e45b2bb0d755a9b7e | /players_scrape.py | bf56853a3a3f9d22976f586fa337acfcf38a38f1 | [] | no_license | keithxm23/scrapesquawka | 2d18091793d737be2872faa64738c0f71be5f7c7 | 2a9928486643fe38137305af180bc655659e4c18 | refs/heads/master | 2021-01-20T01:57:25.338928 | 2014-07-16T23:02:48 | 2014-07-16T23:02:48 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 637 | py | #!/usr/bin/env python
import urllib
import os
from bs4 import BeautifulSoup
PHOTO_BASE_URL = "http://www.squawka.com/wp-content/themes/squawka_web/uploaded_icons/players/thumb/"
BASE_URL = "http://www.squawka.com/wp-content/themes/squawka_web/stats_process.php?season_id=119&team_id="
TOTAL_TEAMS = 32
found_teams = 0... | [
"kmascare@akamai.com"
] | kmascare@akamai.com |
47949966bb64eca06b601565bd6738c719e31d0c | 48430e3541ef93d1a87dfeca04707e1c3f01df01 | /day16/Block.py | 6c8b70a530e1bb688948627f0f8bd58ec3b06ace | [] | no_license | shinhash/MyFirstPythonProject | 859a676380deb745aff8f3461ddf45cca2eadc41 | dd408e05b2e5f0dce363caf2555e2659a7d8a1e4 | refs/heads/master | 2022-12-30T15:39:12.295534 | 2020-10-21T11:24:40 | 2020-10-21T11:24:40 | 297,940,459 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 367 | py | from random import *
class Block():
def __init__(self):
self.kind = randint(1, 7)
# self.kind = 2
self.status = 1
self.xloc = 4
self.yloc = 2
def __str__(self):
return "kind = " + str(self.kind) + ", status = " + str(self.status) + ", x = " + str(... | [
"shinhash123@gmail.com"
] | shinhash123@gmail.com |
bad4e975b3fc893bea41ab614dc569b05124cc83 | 773789b345985925028a6a00c5ad0dd3609fad3d | /week07_assignment/wsgi_simple_server.py | eed3d5c8d799f4725e6dd2476a18434db34c635e | [] | no_license | spedl/uw_python | ea254924b37d2946da4048341d00dc52a2c4c4fa | 7073f060d725921028c44ce59f654c54f492b45f | refs/heads/master | 2020-05-28T02:38:31.837734 | 2012-03-19T04:02:43 | 2012-03-19T04:02:43 | 3,181,852 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 749 | py | """
Simple WSGI application runner, including its own WSGI server
Usage: python simple_wsgi_server.py <application> <port>
Example: python simple_wsgi_server.py test.wsgi 8080
Default application is wsgi_test, default port is 8000
The application module can be named anything, but the
application callable it provid... | [
"jacob@bigdoor.com"
] | jacob@bigdoor.com |
ef87da3bc9de550ff3d3d28e44b67645e9acf1ff | 177b940035c7b84cf97fb4f34c451b8b10e55f95 | /caso1ferreteria/caso1ferreteria/__init__.py | 0e33cddf2fdee6747d4b2606824383c0c6aa1de2 | [] | no_license | sergio-escalona/Caso1Ferreteria | 2dd3c56a58d9856a177c2ec0c2db4272d936c0d8 | 743301ac75cad571110f1e1cac4edafcadc86f4c | refs/heads/main | 2023-05-06T13:45:39.601338 | 2021-06-03T04:36:38 | 2021-06-03T04:36:38 | 359,029,991 | 0 | 0 | null | 2021-05-07T19:02:57 | 2021-04-18T02:54:03 | Python | UTF-8 | Python | false | false | 37 | py | """
Package for caso1ferreteria.
"""
| [
"cristofopo@me.com"
] | cristofopo@me.com |
c32280151535cb4189a8683788d19498c57003ae | 142db8ada9070a9c1d8b2582c5819f1b915c6598 | /tests/test_cache.py | dfbec7f38bc50ef8c78704c61a37b0fe62b446a1 | [
"ISC"
] | permissive | mixja/boto3-session-cache | 77e883622d8da30d94d52691b98e68f2a38c0452 | ba64d358319ffc1a05d648867f635bcfceca4644 | refs/heads/master | 2020-12-30T13:21:56.011964 | 2018-02-26T11:40:27 | 2018-02-26T11:41:21 | 91,209,115 | 10 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,213 | py | import pytest
import os
import json
from datetime import datetime
from boto3_session_cache import JSONFileCache
CACHE_PATH = os.path.expanduser(os.path.join('~', '.aws', 'cli', 'cache'))
def test_cache_lookup(fs):
cache = JSONFileCache()
key = 'my-profile--arn_aws_iam__111111111111_role-admin'
data = {'test': '... | [
"justin.menga@gmail.com"
] | justin.menga@gmail.com |
8389ca0978988a6a23f2ee68ab0f2e04e1d8f107 | 3c03073d609ea59bf3086828b6f39ccea9830d43 | /test/test_inline_object21.py | 596ed5573daf20904858755d38631195febc423a | [] | no_license | mkj28/codefresh_client | 7226201ca1958b9ee880cebccef531e43880390d | bd2bfeb43fbc27ac00e98428f1a1382df08f5a95 | refs/heads/master | 2020-04-30T07:22:20.265388 | 2019-03-22T07:49:26 | 2019-03-22T07:49:26 | 176,682,127 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 856 | py | # coding: utf-8
"""
Codefresh API
Codefresh API openAPI 3.0 specification # noqa: E501
OpenAPI spec version: 0.0.1
Generated by: https://openapi-generator.tech
"""
from __future__ import absolute_import
import unittest
import codefresh_client
from codefresh_client.models.inline_object21 import I... | [
"michal@gladly.com"
] | michal@gladly.com |
095739ac447185b9c95741b1cc83f810274081cf | b6db7fcdb24b4da8415e54de81b9b86bc6fcc757 | /annotator_supreme/config/development.py | 8fee63a37d67b3d6bda166bf841da44c1f1b9005 | [
"MIT"
] | permissive | jtoss/annotator-supreme | dcc3cb638f58342c3d8ac3033dbd3dfb486e891d | 9c1fe72f968f6facb8fafc65ba49014014049c3c | refs/heads/master | 2021-09-10T06:27:07.074733 | 2018-03-21T14:36:45 | 2018-03-21T14:36:45 | 112,369,673 | 0 | 0 | null | 2017-11-28T17:56:41 | 2017-11-28T17:56:40 | null | UTF-8 | Python | false | false | 192 | py | import logging
ENV = 'development'
APP_DEBUG = False
# CORS configuration
CORS_HEADERS = 'Content-Type'
CORS_ORIGINS = '*'
KEYSPACE = "annotator_supreme"
#Logging
LOG_LEVEL = logging.INFO
| [
"gustavofuhr87@gmail.com"
] | gustavofuhr87@gmail.com |
3417dd1bfb27a6908472c7fab7fd73e1b3b250d3 | 6a32a3ef88f8eff3efb0938d9a8f32ed94a8b11b | /scripts/02_features.py | 5a642f57a0a04cc863a6999b2440cff50ce7800c | [
"MIT"
] | permissive | codeformuenster/openair-cologne | f2e7a111fb26b64df521a2f65979fb159279e52f | 0e7096695443ad23028a35d41597a4221945b280 | refs/heads/master | 2020-04-16T07:39:22.263476 | 2019-01-29T22:05:02 | 2019-01-29T22:05:02 | 165,394,793 | 3 | 0 | null | null | null | null | UTF-8 | Python | false | false | 759 | py | """Feature engineering."""
import pandas as pd
# %% LOAD
df_lanuv = pd.read_parquet('data/df_lanuv.parquet') \
.groupby(['timestamp', 'station'])['no2'].aggregate('median') \
.reset_index() \
.groupby(['timestamp'])['no2'].aggregate('median') \
.reset_index() \
.rename(columns={'no2': 'no2_cologne... | [
"jensen.thorben@gmail.com"
] | jensen.thorben@gmail.com |
0bbdd4bf7a5f32254ed7f31f8c35606cae64ef68 | 3e5ecad4d2f681f2f4f749109cc99deea1209ea4 | /tf114/tf11_2_diabetes.py | 25d2c7c7cc73f3820f81ab3f4d6d2093ecf8625e | [] | no_license | SunghoonSeok/Study | f41ede390079037b2090e6df20e5fb38f2e59b8f | 50f02b9c9bac904cd4f6923b41efabe524ff3d8a | refs/heads/master | 2023-06-18T06:47:55.545323 | 2021-07-05T00:47:55 | 2021-07-05T00:47:55 | 324,866,762 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,851 | py | from sklearn.datasets import load_diabetes
import tensorflow as tf
tf.compat.v1.set_random_seed(66)
dataset = load_diabetes()
x_data = dataset.data
y_data = dataset.target
y_data = y_data.reshape(-1,1)
print(x_data.shape, y_data.shape) # (442, 10) (442,1)
from sklearn.model_selection import train_test_split
x_trai... | [
"76455292+SunghoonSeok@users.noreply.github.com"
] | 76455292+SunghoonSeok@users.noreply.github.com |
900a29135e6327fba64530bbf7efb62664e1e3e0 | d6f9856369de739eb1d48f36704032fc9d6ad279 | /01-spider/practice/seleniumJdGrandandProduct.py | 5ca58c43fb5dff43ab415094a4e3f08a04e7f0fa | [] | no_license | huchangchun/spider | 7fd1cfd1aced71887700d1a1db176b898ca75775 | 7349c91bc5abf4a633752cc7a33fe24756d2ac97 | refs/heads/master | 2020-03-13T06:54:04.316515 | 2019-12-20T02:08:45 | 2019-12-20T02:08:45 | 131,014,167 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 11,957 | py | #encoding=utf-8
from selenium.webdriver.support import ui
from selenium.webdriver import Chrome
import time,os
from bs4 import BeautifulSoup
from selenium import webdriver
from selenium.webdriver.support import expected_conditions as EC
from selenium.webdriver.support.ui import WebDriverWait
from selenium.webdriver.co... | [
"hu_changchun@126.com"
] | hu_changchun@126.com |
4e39f2b57ab4e11da0fd51bf75e4cf23aae756bb | 8e1c2f90d2a121dceb2fe6f8f3482c0821b49cc8 | /Girilen iki sayı arasındaki sayıları toplayan programı while döngüs....py | 2f9342fd380870e0af9bd7c1be7e724ef754f97b | [] | no_license | KaanPY/PythonBaslangicOrnekleri | 205f9c36e0289ce636337f76d8ae5fb8ab011fb4 | 88261fcf3c445f84c53651c4c612ceb1fb662004 | refs/heads/main | 2023-07-27T00:03:41.694648 | 2021-09-11T10:43:18 | 2021-09-11T10:43:18 | 405,351,741 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 292 | py | # Girilen iki sayı arasındaki sayıları toplayan programı while döngüsü ile ekrana yazınız.
sayi = int(input("Sayı bir giriniz: "))
sayi2 = int(input("Sayı iki giriniz: "))
toplam = 0
while(sayi <= sayi2):
toplam = toplam + sayi
sayi = sayi + 1
print(toplam)
| [
"noreply@github.com"
] | KaanPY.noreply@github.com |
65c54b11e8cdd95bfecd92cf81023fefba87aa9f | 8b0d16a998719783a37b86d3dcae36ecf27029a8 | /demo/mention_pairs_extractor_cpy_12122018/pipeline.py.bak | ebc7ab1d2c7c08b7e75adc3d3b4954800ddbfe8f | [] | no_license | yusrbi/ExQuisiTe | 4e2fbbc466fbf3f0346c27adfd2e76bb0d29fd2d | 3e14df63104022c01a669ea224fb132c0bbac935 | refs/heads/master | 2020-04-18T02:58:57.789571 | 2019-01-23T15:38:40 | 2019-01-23T15:38:40 | 167,182,913 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,156 | bak | #!/usr/bin/env python2
# -*- coding: utf-8 -*-
import sys
import findspark
findspark.init()
from pyspark import SparkContext, SparkConf
from loader import Document_Loader
from extractor import FeatureExtractor
import extractor
import codecs
class PipeLine:
def __init__(self):
#TODO remover the setMaster... | [
"yibrahim@mpi-inf.mpg.de"
] | yibrahim@mpi-inf.mpg.de |
0fda26b376e0f8dcbd1ac5a37aff9b42d12f11f4 | df79e52a9e9d7230edfe81573c667be514b29b62 | /exam/migrations/0006_myuser.py | 5ddf4197d533184889cd92e5ba073c09a94509a5 | [] | no_license | ragnarok347/ceconlineexam | 682b3c18242ef44601049fb7930d28ab1b3d73ee | 451168f8fbcab21f394d31161a8a5f37c0a66e4f | refs/heads/master | 2020-12-22T06:51:15.123837 | 2020-11-30T16:17:42 | 2020-11-30T16:17:42 | 236,702,041 | 0 | 0 | null | 2020-01-28T09:46:09 | 2020-01-28T09:46:08 | null | UTF-8 | Python | false | false | 908 | py | # Generated by Django 3.0.3 on 2020-02-21 10:52
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('exam', '0005_auto_20200217_2025'),
]
operations = [
migrations.CreateModel(
name='Myuser',
fields=[
... | [
"noreply@github.com"
] | ragnarok347.noreply@github.com |
791f8d85d3d886791e02f627e1970db741e70788 | 9d302ca09271e7ef892d0e07aa46181e6a8b07cd | /script.py | 433d5e2bf3e6f0fdf2dda186537df26889426239 | [] | no_license | edify42/fun-key | 0f1c18e27e52ded82c0bf67225ec65a3bf053dca | 0391c1c61f8f6cb8589a6f33d500bdd44cb445ff | refs/heads/master | 2023-08-14T23:38:27.429912 | 2021-10-03T11:04:06 | 2021-10-03T11:04:06 | 412,032,481 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,257 | py | from ecdsa import SigningKey, SECP256k1
import ecdsa
import codecs
def max():
power = 256
max_val = 2**power
print("max number yo: ")
print(max_val)
test_val = 115792089237316195423570985008687907852837564279074904382605163141518161494337
# print(max_val) # 1157920892373161954235709850086879078532699846656... | [
"edify42@yahoo.com"
] | edify42@yahoo.com |
86b0f7f50a85078402d3aee998d9312891fefd9f | 41911c73dec55eec3eac36b6d2e4346d949d2d96 | /Word Censor1.py | c23a1a32ecb185367daaa8e506ec3c058ddde7b0 | [] | no_license | mbarbour0/Practice | cff321a0e5e5090da266016f8e31a1902e1c5cb2 | 781cf1e10154f43adec59f736ef1716acba6c98d | refs/heads/master | 2021-09-07T17:02:37.501748 | 2018-02-26T14:02:35 | 2018-02-26T14:02:35 | 115,876,807 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 266 | py | def censor(text, word):
words = text.split()
count = 0
result = ''
stars = '*' * len(word)
for i in words:
if i == word:
words[count] = stars
count += 1
result = ' '.join(words)
return result
print censor('hey hey what can i do?', 'hey') | [
"m.barbour0217@me.com"
] | m.barbour0217@me.com |
0d1c6e8e53e7251468c2bf5ef873438916e52d02 | ffeb09f710556ffaee1944af9019be17cfb835d4 | /repositories/album_repository.py | 180fdb57717422333506ee3f10db55fcc05ca240 | [] | no_license | ReneeNGraham/SQL_exercise_codeclan- | fc10ed944209734a9b76f51d10ceaa7ae1656e0b | edb9485b9c0218deac4161df1c1fd70b0c633ecb | refs/heads/main | 2023-02-22T06:42:02.076558 | 2021-01-26T23:25:47 | 2021-01-26T23:25:47 | 333,244,340 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,277 | py | from db.run_sql import run_sql
from models.album import Album
from models.artist import Artist
import repositories.artist_repository as artist_repository
def save(album):
sql = f"INSERT INTO albums (title, artist_id, genre) VALUES (%s, %s, %s) RETURNING*"
values = [album.title, album.artist.id, album.genre]
... | [
"renee.noluthando@gmail.com"
] | renee.noluthando@gmail.com |
f451b1b4faea36c7f6d7ca4ceec46e4a325c2715 | 4e5b20fdcca20f458322f0a8cd11bbdacb6fb3e5 | /test/shop/ShopInfoModifyTest.py | bf78087f7fbec6a3ef4fc0ab81ee164682b8ea35 | [] | no_license | shijingyu/sunningAPI | 241f33b0660dc84635ce39688fed499f5c57a5da | 4a3b2ef7f9bdc4707d1eaff185bc7eb636fe90d5 | refs/heads/master | 2020-04-24T22:15:11.584028 | 2019-02-24T06:41:20 | 2019-02-24T06:41:20 | 172,305,179 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 284 | py | #!usr/bin/python
# -*- coding: utf-8 -*-
'''
Created on 2014-8-22
@author: suning
'''
import sys
sys.path.append("../../../api-sdk-python")
import suning.api as api
a=api.ShopInfoModifyRequest()
a.placard = "心心相印"
a.telphone = "010-11255555"
f = a.getResponse()
print(f)
| [
"945090896@qq.com"
] | 945090896@qq.com |
2558ae8382de1f1f6dc75e1393f2ca78965581fd | cf9f0b657a79cf3de0a0df68b915bdf23277e7c3 | /snake.py | 45129b5f4d87b8cb3a828eb53f0c8a11294fc50a | [] | no_license | imaadfakier/snake | c8043c3cd78fef4fce995eebc25327f84afdd11a | df83ae8aca553633eb4ae727a3683820c8282831 | refs/heads/main | 2023-08-15T12:56:37.689558 | 2021-10-18T08:38:22 | 2021-10-18T08:38:22 | 418,224,083 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,610 | py | from turtle import Turtle
SNAKE_SEGMENTS_POSITIONS = [(-40, 0), (-20, 0), (0, 0)]
SNAKE_MOVE_DISTANCE = 20
UP, DOWN, LEFT, RIGHT = 90, 270, 180, 0
class Snake:
# '''
# ...
# '''
"""
...
"""
# ... (ignore)
# class attributes
# ...
def __init__(self):
self.snake_segmen... | [
"58392951+imaadfakier@users.noreply.github.com"
] | 58392951+imaadfakier@users.noreply.github.com |
278df4d6ba4b5361013658159c67c8018ba68755 | c0e019be8b01366e0dce31ce8d0f7f740088adfd | /letterguess1.py | a3252cda1ee316cd15008f8fcc1f3b3cb0e68865 | [] | no_license | rmaher/littleedie | 7601df4e5832e7cad8dd87c2b3633d6b5d149707 | c58ff5b2c8d8ad2499eabcd53e100971f86ca746 | refs/heads/master | 2020-05-17T05:37:21.462387 | 2014-09-06T18:48:02 | 2014-09-06T18:48:02 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 349 | py | def isVowel(char):
'''
char: a single letter of any case
returns: True if char is a vowel and False otherwise.
'''
if char == 'a' or char == 'e' or char == 'o' or char == 'u':
return True
elif char == 'A' or char == 'E' or char == 'I' or char == 'O' or char == 'U':
return True
... | [
"rachelelizabethmaher@gmail.com"
] | rachelelizabethmaher@gmail.com |
691dbc4c44ced539c61b9cfa403a6ef79b3a159c | 96d55aa2f0b5ce6fb6c706dde47eeffc06853539 | /flipbookapp/views.py | 7ad7a1e96b5e510194a9c52bc6e57aec1250f1b5 | [] | no_license | laamp/flipbook | 5b63a0d281b8cde2cc0763157090a69c36929622 | c34f63885bfea8027c105d8ab207d331928d2442 | refs/heads/master | 2020-06-16T20:58:32.685578 | 2019-07-09T05:39:00 | 2019-07-09T05:39:00 | 195,702,036 | 1 | 1 | null | null | null | null | UTF-8 | Python | false | false | 504 | py | from django.shortcuts import render
from django.http import HttpResponse
from .models import Collection, User
def home(req):
return HttpResponse("App home. Hello!")
def collection_details(req, collection_id):
collection = Collection.objects.get(id=collection_id)
context = {collection_id: {"id": collecti... | [
"lance.matthew.smith@gmail.com"
] | lance.matthew.smith@gmail.com |
42ab39570dc84ac1d7601e300d81ad482e4685d7 | ec68d5efe420dea0d8967de7f58a5b89d89a4a34 | /i18nLib/i18nLib.py | 7787967670d9718d91a7aa80cdce60518e5b868c | [] | no_license | sukutt/i18nLib | e63fbb49bedd387d9983212171e62e8dd6261691 | 880b25cb77772a0abf04210bccfb4857b6376043 | refs/heads/master | 2020-09-01T11:55:32.402856 | 2019-11-01T09:32:45 | 2019-11-01T09:32:45 | 218,953,523 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,581 | py | import os
import re
import csv
oldCSVDic = {}
newCSVDic = {}
currentFile = ""
def makeNewFile(data):
f = open(currentFile, 'w', encoding="utf-8")
f.write(data)
f.close()
def readCSV(wholePath, dic, isFirstKey=True):
f = open(wholePath, "r", encoding="utf-8")
data = csv.reader(f)
headers = nex... | [
"woongahkim@netman.co.kr"
] | woongahkim@netman.co.kr |
1ea0910b6c40f92198824d0746983e6181e9e305 | e3a975a04c262d7e848efb5a72d861b9c51e4dcd | /python_parallelism/part_1_threads/4_locks/rLock_usage.py | a798252b8a5428537d9abb0f92bdce933466bd68 | [] | no_license | victorjabur/presentations | b7ac9b25fc122893f87ebfcc0101a8f7307af151 | cf6dc1ea1f04d7108982dc4e1b063ec28b85e6a9 | refs/heads/master | 2021-01-19T12:42:01.726813 | 2017-08-13T00:09:16 | 2017-08-13T00:09:16 | 82,331,575 | 4 | 0 | null | 2017-02-17T19:36:59 | 2017-02-17T19:36:59 | null | UTF-8 | Python | false | false | 1,195 | py | import threading
import time
class Box(object):
lock = threading.RLock()
def __init__(self):
self.total_items = 0
def execute(self, n):
Box.lock.acquire()
self.total_items += n
Box.lock.release()
def add(self):
Box.lock.acquire()
self.execute(1)
... | [
"victorjabur@gmail.com"
] | victorjabur@gmail.com |
c3436938995466b144d6540550367d401cad712c | c443a7cd3a4c2ea3be746a5cfd343d59a555cff9 | /CIFAR-10 93.67 CIFAR-100 70.52/cifar100_vgg16.py | ff6463b8b313289a64af4cce2ecc54610dfa0235 | [] | no_license | woshidandan/fnnmOS_ELM | 0dacf1944235924aa5fbe174f8c29a6314989615 | 0eb6a5000854284fe050a6ff7001aa93b03c1381 | refs/heads/master | 2021-08-15T18:15:35.985541 | 2020-05-12T03:10:53 | 2020-05-12T03:10:53 | 178,802,233 | 3 | 0 | null | null | null | null | UTF-8 | Python | false | false | 15,503 | py | import numpy as np
import tensorflow as tf
import random as rn
# The below is necessary in Python 3.2.3 onwards to
# have reproducible behavior for certain hash-based operations.
# See these references for further details:
# https://docs.python.org/3.4/using/cmdline.html#envvar-PYTHONHASHSEED
# https://github.com/fcho... | [
"2281444815@qq.com"
] | 2281444815@qq.com |
d2a35ea2668ab07a1748e0d2a8759317926dfa88 | 02495eeb56c436d1dbf9f4700c43658d16ffe0ca | /03_P💀Spoopy/pylindrome/docker/app.py | 098301d96aed87ab4fa1b8e3ec47ee7f45351bbd | [] | no_license | ce8so9/csr-2020-tasks | 906a55c14bca0f7a14b228cbce08a38f7d2271eb | cd6ca7f98a40d5e7eb41c61f5b293537188b85c4 | refs/heads/master | 2023-01-12T09:33:02.928645 | 2020-11-10T16:19:30 | 2020-11-10T16:19:30 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 371 | py | #!/usr/bin/env python3
import subprocess
def sandbox(toexec):
return subprocess.check_output(["sudo", "-u", "sandbox", "python3", "-c", toexec]).decode().strip()
try:
code = input()[:100]
for bad in ['#', '"""', "'''"]:
code = code.replace(bad, "")
assert code == code[::-1]
exec(sandbox(c... | [
"lukas@schauer.so"
] | lukas@schauer.so |
8811c483d5db3fb20315160987dfaa8a74ed1799 | 45def2cd621d5ce1b924a7c24379ab6884a71f9d | /server/test.wsgi | fc2faded6dc1fb92d11c753ab7c52d6cae7f03e3 | [] | no_license | mbirtwell/reproduce_mod_wsgi_queue_timeout_bug | 205077d67828e35f6e251a0437afd69df3ff212a | 59e760e72aac93e3f11366d236328aad39fc24a4 | refs/heads/master | 2020-07-05T05:21:12.118127 | 2019-08-15T12:15:58 | 2019-08-15T12:15:58 | 202,535,606 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 291 | wsgi | from time import sleep
import flask
app = flask.Flask(__name__)
@app.route("/delay/<int:amount>/<path:ignore>")
def delay(amount, ignore):
sleep(amount)
body = """\
Delayed: {}
""".format(amount)
r = flask.make_response(body)
return r
application = app | [
"michael.birtwell@starleaf.com"
] | michael.birtwell@starleaf.com |
0c490d56b46e3f0a4b6cb6f26b399042af3e6b37 | b7f45072d056b80ed49e6bcde91877d8576e970d | /ImageJ/py/load_blobs.py | 3037ef28495247737fab6bf5bc930be4277273f8 | [] | no_license | jrminter/tips | 128a18ee55655a13085c174d532c77bcea412754 | f48f8b202f8bf9e36cb6d487a23208371c79718e | refs/heads/master | 2022-06-14T08:46:28.972743 | 2022-05-30T19:29:28 | 2022-05-30T19:29:28 | 11,463,325 | 5 | 8 | null | 2019-12-18T16:24:02 | 2013-07-17T00:16:43 | Jupyter Notebook | UTF-8 | Python | false | false | 137 | py | """
load_blobs.py
"""
from ij import IJ
IJ.run("Close All")
imp = IJ.openImage("http://imagej.nih.gov/ij/images/blobs.gif")
imp.show()
| [
"jrminter@gmail.com"
] | jrminter@gmail.com |
84a7d6d29a2a38c23bdf25e634b5e709d1813ab8 | 8ff9e061e34d77d02b130529ed8804b145df1b64 | /app/soloanalysis/view/base/__init__.py | c6ff558ab2190495e249dad3cf13be479e56de61 | [] | no_license | cash2one/solo-frame | e7277f564214304b398cb67f1b83326aee2d07ca | b9b9bd2fd96af0e0278427f3cff33582f15cf779 | refs/heads/master | 2021-01-23T04:39:19.500293 | 2016-10-29T13:59:14 | 2016-10-29T13:59:14 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,039 | py | #!/usr/bin/env python
# coding:utf-8
import _env # noqa
import sys
import httplib
import traceback
from os.path import join
import tornado
import tornado.web
from tornado.httpclient import HTTPError
from solo.config import APP, DEBUG
def get_error_html(self, status_code, **kwargs):
if status_code == 404:
... | [
"jay_yuyay@hotmail.com"
] | jay_yuyay@hotmail.com |
440e0576d370bb15d1f889a608535bff75c3eea5 | 656a9d82b36c6113bfea9e28819e32877b2a9def | /module/pillow_test.py | 2be01a2fe7f0dc6451e7388412f35a84b5011f2a | [] | no_license | wazsmwazsm/Python_prc | 61b8a363d50772b35ef6763da997e402d8e651f2 | d27f344c1dde88982be693579e66a7ca42f4de11 | refs/heads/master | 2020-12-07T17:07:59.205653 | 2018-11-28T14:58:56 | 2018-12-02T16:00:30 | 95,274,617 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 163 | py | #!/usr/bin/env python3
# -*- coding:UTF-8 -*-
from PIL import Image
im = Image.open('basic_41.jpg')
print(im)
im.thumbnail((200,200))
im.save('thumb.png', 'PNG')
| [
"18748406022@163.com"
] | 18748406022@163.com |
30b76a9a201dbe84b240185ffef64a666fffd06d | b21020746286ba1c1eac1905c393b1ddb1d208ff | /Day_2/Project.py | 5e5ed717af701183056609e5269bcda22b45b646 | [] | no_license | jfalkowska/pyladies-start | 9bcc40abcb11560e853dc1c1cfc6df84addbb408 | 94687377d699644052c1a6d319cd824820e3f9c5 | refs/heads/master | 2021-07-04T11:49:07.245738 | 2017-09-26T14:07:55 | 2017-09-26T14:07:55 | 104,625,968 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 588 | py | print()
dictionary = {
'cd': 'si-di',
'dvd': 'di-wi-di',
}
words_to_process = []
word = input('Podaj wyszukiwane słowo: ').lower()
if word in dictionary:
print('Wymowa Twojego słowa to: ' + dictionary[word])
else:
print('Nie mamy takiego słowa w bazie danych. Wkrótce uzupełnimy słownik.')
diction... | [
"jfalkowska@gmail.com"
] | jfalkowska@gmail.com |
2fa2ad29b02a2a0a4a2b5c8c83e7221a7053cd6c | 0090c267509e2a0e4a3309f7cf4d0d1c20a437f4 | /pdfstat/rate.py | d55f32f1afe29b0f4cd92a1c6eb92d8178dfbe9a | [] | no_license | krzygorz/pdfstat | 6e8cd06582de8baa2444df8108464394011a4611 | 761a2f8b503ca7ad97af351f4ff586b16e9096f8 | refs/heads/master | 2022-06-17T19:22:59.914878 | 2022-05-15T10:18:03 | 2022-05-15T10:18:03 | 249,234,191 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 546 | py | from functools import namedtuple
from itertools import tee
def pairwise(iterable):
a, b = tee(iterable)
next(b, None)
return zip(a, b)
def weighted(pairs):
s = 0
total_weight = 0
for x, weight in pairs:
s += x*weight
total_weight += weight
return s/total_weight
def pages_p... | [
"krzygorz@gmail.com"
] | krzygorz@gmail.com |
9634eb466219c63cc085cd1895ec57eb62ce0188 | 94ed98b2f4eec63be1510cc1555dad064bcc8f13 | /example/mypackage/gui.py | a7104897b98fd8b34cd2a7ddc4d9a617212b18c5 | [
"MIT"
] | permissive | axju/setuptools_freeze | dae496e66e5c6dc5c3d28876a056c8ddd8b570d9 | c1d16bd714f5aec36ea07202f1a466eb0573d839 | refs/heads/master | 2020-07-24T05:43:06.920994 | 2019-09-11T13:32:18 | 2019-09-11T13:32:18 | 207,817,984 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,654 | py | import random
from tkinter import Tk, Label, Button, Entry, StringVar, DISABLED, NORMAL, END, W, E
class ConfiguratorGUI:
def __init__(self, master):
self.master = master
master.title("Guessing Game")
self.secret_number = random.randint(1, 100)
self.guess = None
self.num_gu... | [
"axel.juraske@short-report.de"
] | axel.juraske@short-report.de |
b54f9706f3e6ef7feac1b053edb3cfe821fccb46 | 172162ad255cdf62656a1fcc7b6c712a47d483e8 | /exe3/headquarters/tester.py | 0cff9b087783a889f852916bae51ebe57d4bed3a | [] | no_license | marioskogias/algo | 1a3e64f6e70c8779d88056395af6123fdb6059d8 | 8796b5e1cfec24ef5f596940b77e4c02c3c0536f | refs/heads/master | 2021-01-10T07:14:09.288229 | 2013-03-10T19:34:46 | 2013-03-10T19:34:46 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 190 | py | import os
count = raw_input()
for i in range(int(count)):
print i+1
os.system("./headquarter < headquarters/input"+str(i+1)+".txt")
os.system("cat headquarters/output"+str(i+1)+".txt")
| [
"marioskogias@gmail.com"
] | marioskogias@gmail.com |
40e6e32b3019631f8315891717d114988b825bf1 | 30d85430b0f44e5a57674c1b79e505a6f8e6118b | /registrationapp/models.py | 817439029126dafd22061ed55d1b0dbe14cbbc7d | [] | no_license | Swarnasahu/project | a98c1832731f315b9dcd3385c6a33a1f179a9daf | d79ebfc3d0c6b6c765222eebf1bf3f37b23fe77b | refs/heads/master | 2020-06-02T16:10:27.932375 | 2019-06-10T18:37:46 | 2019-06-10T18:37:46 | 191,222,515 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 379 | py | from django.db import models
class RegistrationData(models.Model):
firstname=models.CharField(max_length=30)
lastname=models.CharField(max_length=30)
username=models.CharField(max_length=30)
email = models.EmailField(max_length=50)
number = models.BigIntegerField()
password1=models.CharField(max... | [
"noreply@github.com"
] | Swarnasahu.noreply@github.com |
1b34b90e2f67217372f0c6145c4d7165d41135b2 | 6927c9e894a813749bc20d4f6d845b49cfd3fe1f | /scanner.py | f72abe6bcc33d2a776739d97b5ffe5e73d29dc40 | [] | no_license | tempCross/BHP_scripts | 4e7492cea85dc18d33252363999faed050656680 | 7eb3096c4c38ccae3d5924826bd835a4a2d3fc59 | refs/heads/master | 2021-01-22T01:14:17.469843 | 2018-07-26T16:25:26 | 2018-07-26T16:25:26 | 102,213,007 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,617 | py | #!/usr/bin/python
import socket
import threading
import time
from netaddr import IPNetwork,IPAddress
import os
import struct
from ctypes import *
from struct import *
# host to listen on
host = "192.168.1.187"
# subnet to target
subnet = "192.168.1.0/24"
# magic string we'll check ICMP responses for
magic_message = "... | [
"noreply@github.com"
] | tempCross.noreply@github.com |
178a9a2b75f11fdfb923aefdd0d5dd8a19b43333 | fae5db82f29b87d6ea32ab9eef2183f318a35e05 | /app/training.py | 9891dd87fdf4f97e52addf857b05cd50067c4326 | [
"MIT"
] | permissive | m-triple-m/project_junky | a06a871f43dbff23c03f54ab15535b7240362b96 | e55d3eeae6e97f002ab3087245e9dbeb4ed3eafd | refs/heads/master | 2022-04-15T08:27:36.250289 | 2020-03-26T22:17:16 | 2020-03-26T22:17:16 | 250,379,330 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,335 | py | import pandas as pd
import numpy as np
import pickle
import sklearn.ensemble as ske
from sklearn import tree, linear_model
from sklearn.model_selection import train_test_split
from sklearn.feature_selection import SelectFromModel
from sklearn.externals import joblib
from sklearn.naive_bayes import GaussianNB
from sklea... | [
"triplem656@gmail.com"
] | triplem656@gmail.com |
224e6bf9c72fe236be357b83360e2f4a0ec1d360 | d299883f8bd2458817b2b9e00d96f8bc9ae35e1e | /conftest.py | 7c6a11468e0f91ff4be86b39a71c996b0c3dad02 | [] | no_license | Teshimella/python_tests | 7109782e29481128b472a3e7e5c9d652dbbcb30e | 094b63a74969783e56551da9a6a31390168f14c9 | refs/heads/master | 2023-01-02T18:53:23.226001 | 2020-11-01T19:38:11 | 2020-11-02T07:07:33 | 309,173,676 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 880 | py | import pytest
from .Gitmetods import GitMetods
import time
import base64
import os
token = os.environ["TOKEN"].encode('utf-8')
owner = 'Teshimella'
git = 'https://api.github.com'
encode_token = base64.b64encode(owner.encode("UTF-8") + b':' + token).decode("UTF-8")
@pytest.fixture
def api(name):
apiagent = GitMet... | [
"Test"
] | Test |
dd4330f60b86977ec40540239079d1a8fef5d657 | 5e84bfc75213f94190131ae86045903304e87242 | /whizdom/wsgi.py | beb18d78cc23476dc7f001d3cb86283117706080 | [] | no_license | waqashamid/whizdom | ac30974ed62a1808ef34a4dae2d0bea014ac4ccb | b0eba30d3a1d0f51b384abb2325a76fdca3cc7be | refs/heads/master | 2022-12-11T15:15:21.595126 | 2018-12-10T11:14:14 | 2018-12-10T11:14:14 | 140,866,190 | 1 | 0 | null | 2022-11-22T02:54:27 | 2018-07-13T15:51:05 | JavaScript | UTF-8 | Python | false | false | 391 | py | """
WSGI config for whizdom project.
It exposes the WSGI callable as a module-level variable named ``application``.
For more information on this file, see
https://docs.djangoproject.com/en/2.0/howto/deployment/wsgi/
"""
import os
from django.core.wsgi import get_wsgi_application
os.environ.setdefault("DJANGO_SETTI... | [
"waqashamid722@gmail.com"
] | waqashamid722@gmail.com |
af2ced00ab5aa3cbb20c882eba158903939ef5e8 | 32c9f7f497ac6e3d50f8bb9a47187fa1677103eb | /src3/npiAddrExtractor.py | d6c642e8fdda399a6a9d68f916ad064e74b77a49 | [] | no_license | lancerzh/AddrVerify | 10729f29e0ba2dbf95a6eb6cfd92546d108aa78f | 23da619229b8e6cfcf874bfda1ee3cf81bf821f9 | refs/heads/master | 2021-01-01T04:55:55.946304 | 2016-04-27T14:53:15 | 2016-04-27T14:53:15 | 55,976,543 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,565 | py | #!/usr/bin/env python3
# -*- coding: utf-8 -*-
'''
Created on Mar 28, 2016
@author: lancer
'''
import verify_by_usps;
import USMailAddress;
import csv, codecs, io;
import time;
import socket
import sys
'''
input npi file which can doanload from http://download.cms.gov/nppes/NPI_Files.html
It include two address info... | [
"xlancer@yeah.net"
] | xlancer@yeah.net |
7a9eacaaff1dee09c8f626968b2da5d9c9330251 | 881041fab1b4d05f1c5371efed2f9276037eb609 | /tasks/airport-polygon/depositor.py | 901985aae38ae47c1dac4ee3d0ad64212ad37cc1 | [] | no_license | ResidentMario/urban-physiology-nyc-catalog | b568f3b6ee1a887a50c4df23c488f50c92e30625 | cefbc799f898f6cdf24d0a0ef6c9cd13c76fb05c | refs/heads/master | 2021-01-02T22:43:09.073952 | 2017-08-06T18:27:22 | 2017-08-06T18:27:22 | 99,377,500 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 353 | py | import requests
r = requests.get("https://data.cityofnewyork.us/api/geospatial/xfhz-rhsk?method=export&format=GeoJSON")
with open("/home/alex/Desktop/urban-physiology-nyc-catalog/catalog/airport-polygon/data.geojson", "wb") as f:
f.write(r.content)
outputs = ["/home/alex/Desktop/urban-physiology-nyc-catalog/catalo... | [
"aleksey.bilogur@gmail.com"
] | aleksey.bilogur@gmail.com |
66b04227002a1607067f96719538442273eec5ec | 1a27fa6447b2ef29f71833658a27564e48b08be6 | /authentication/urls.py | 4a2b0393902a71eb3223082d85f7841ffeee50f6 | [
"MIT"
] | permissive | suryadana/django_rest | 2af80e6df3c6081c4b18c05b997cf45da3e21a88 | ffd3c3988e9f4ba973ef0b3d2b49232885f1b457 | refs/heads/master | 2020-03-26T09:28:12.358593 | 2018-08-14T18:00:29 | 2018-08-14T18:00:29 | 144,750,142 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 249 | py | from django.urls import path
from authentication.views import (
UserCreateAPIView, UserLoginAPIView
)
urlpatterns = [
path('auth/', UserLoginAPIView.as_view(), name="login"),
path('auth/register/', UserCreateAPIView.as_view(), name='register')
] | [
"suryadana80@gmail.com"
] | suryadana80@gmail.com |
d996405520f5fadcbb45bb17b636f2011447af94 | f5b5a6e3f844d849a05ff56c497638e607f940e0 | /capitulo 05/05.02.py | 3c052b435e84ceae4eef942fd6fc518631fd4e89 | [] | no_license | alexrogeriodj/Caixa-Eletronico-em-Python | 9237fa2f7f8fab5f17b7dd008af215fb0aaed29f | 96b5238437c88e89aed7a7b9c34b303e1e7d61e5 | refs/heads/master | 2020-09-06T21:47:36.169855 | 2019-11-09T00:22:14 | 2019-11-09T00:22:14 | 220,563,960 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 602 | py | ##############################################################################
# Parte do livro Introdução à Programação com Python
# Autor: Nilo Ney Coutinho Menezes
# Editora Novatec (c) 2010-2019
# Primeira edição - Novembro/2010 - ISBN 978-85-7522-250-8
# Segunda edição - Junho/2014 - ISBN 978-85-7522-408-3
# Terce... | [
"noreply@github.com"
] | alexrogeriodj.noreply@github.com |
62f0245a21f5755d34178160fb978f1a64a7f184 | 7df8b17e55934a51b6ba17ced3f240ea9bc37cf4 | /create_models/bilstm_creators/50_50/bilstm-sentiment-analyzer50_50_4.py | 6e5bc354f81f459d540b765188362b55959db4d5 | [] | no_license | econmang/practice-lstm | e0c48f070d88e0167d15a8e145cc3692db8055a4 | ad0ce96bf5b0292456bf9446e04f676a39b396c2 | refs/heads/master | 2022-05-12T13:09:22.459416 | 2022-05-06T06:38:37 | 2022-05-06T06:38:37 | 124,381,402 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,336 | py | # Bi-Directinal LSTM
# Imports for keras and sklearn
# keras: API Built on top of Tensorflow
from keras.preprocessing import sequence
from keras.models import Sequential
from keras.layers import Dense, Dropout, Embedding, LSTM, Bidirectional
from keras.utils import to_categorical
from keras.datasets import imdb
from s... | [
"econmang@gmail.com"
] | econmang@gmail.com |
852dfc6a9ea5e8763d80ec53520b8a7e3695a9a9 | 7e104ce38b6b4270a8c3b54c3726ce2c0024ea66 | /betsy/views/order_item.py | f0d781c0b77ac3af363caef091704f4f477fa56b | [] | no_license | anselrognlie/betsy-flask | d8ffa564066496e3e6b726c1b7133c58f876b710 | 0adda0e84320795a701a3f57bb9a785e405bd01a | refs/heads/main | 2023-02-06T11:56:38.491336 | 2020-12-20T18:32:46 | 2020-12-20T18:32:46 | 319,725,952 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,435 | py | # pylint: disable=missing-module-docstring
from flask import Blueprint
from flask import redirect
from flask import url_for
from flask import flash
from ..logging.logger import logger
from ..models.order_item import OrderItem
from .helper.auth_helper import get_current_user, require_login
bp = Blueprint("order_item"... | [
"ansel.rognlie@gmail.com"
] | ansel.rognlie@gmail.com |
4e2e4808b312d1b05fb71850e9bbf88c06f48c2b | cb42eef9aba4fc1a0dc808aae00e73cd5b44d7c0 | /webapp/test_semantic.py | 8f0ce747ca229deca3562a9f33c19139d7b21ae7 | [] | no_license | xintao222/talkcode | 9ad997533699698933a3339e2c644be3d827942f | 28533b00036b6c0931f44aa63988679f601db502 | refs/heads/master | 2021-01-22T00:19:32.823257 | 2011-03-23T22:59:08 | 2011-03-23T22:59:08 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,968 | py | import nltk.classify.util
from nltk.classify import NaiveBayesClassifier
from nltk.corpus import movie_reviews
from nltk.stem.porter import PorterStemmer
stemmer = PorterStemmer()
def word_feats(words):
global stemmer
return dict([(stemmer.stem(word), True) for word in words])
def treat_parts(parts):
re... | [
"disbeat@gmail.com"
] | disbeat@gmail.com |
18fb703b9c1e5c75de8537ea454f8900c32b66af | 7a5243e4c91970773e882a45c05ab68b778b2694 | /treasure_hunt/treasure_hunt/models/object_tip.py | 6289802bb99fee38e5886fc857061282ce31dacd | [] | no_license | brunabxs/info-vis | 8a772bf42d5664de81e8cdea935c7d89b64c5204 | 23a9744628f2d616d09ae59c633e6d8b2bf2f0df | refs/heads/master | 2021-01-19T06:24:56.446753 | 2013-12-08T11:23:52 | 2013-12-08T11:23:52 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 568 | py | from django.db import models
class ObjectTip(models.Model):
text = models.TextField()
related_object = models.ForeignKey("Object")
# EASY, MEDIUM or HARD (Each object sould have at least one tip of each difficulty level)
difficulty_level = models.CharField(max_length=255)
def serialize(self):... | [
"luizpericolo@gmail.com"
] | luizpericolo@gmail.com |
7cd502690ea2014302a0150c24ced0dd7e8e6aba | 5e88b026e477a3945e221030b99877fe882ff71b | /autoxd/cnn_boll/load_img.py | fb12490e604fcd0f6b76af5b8cb345215d9dd748 | [] | no_license | wgcgxp/autoxd | c038a623f2f41537930e157ae741d2c66ec50e4a | 6e350bce34ec5b089f9e5cf4a522b07e6016024c | refs/heads/master | 2022-11-28T08:03:24.093447 | 2020-08-17T07:36:00 | 2020-08-17T07:36:00 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,857 | py | #coding:utf8
from __future__ import print_function
import os
import cv2 #opencv-python
import matplotlib.pyplot as pl
import matplotlib.ticker as tic
from PIL import Image
import numpy as np
from autoxd.cnn_boll import env
from autoxd.cnn_boll.pearson_clust import g_fname_csv, load_data as main_load_data
imp... | [
"wang--kang@sohu.com"
] | wang--kang@sohu.com |
5cfe05bb879388617be66fa26b491d6a9224b810 | 84d5b9e6114f4588386d9342e34d52c3eab1556a | /Part4/packages/regression_model/regression_model/processing/preprocessors.py | c5e1a0a36be6ede1f85412afeb1a90aafbc93cbd | [] | no_license | Tifoaui/cours-A61 | 7980dc2de0bc2a73ac3715982cc987489d280b25 | abd35f0d17a77dd2b661e1a4422fd772c6ff7e0e | refs/heads/main | 2023-02-25T00:53:49.214908 | 2021-01-30T15:59:02 | 2021-01-30T15:59:02 | 330,817,988 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,650 | py | import numpy as np
import pandas as pd
from sklearn.base import BaseEstimator, TransformerMixin
class CategoricalImputer(BaseEstimator, TransformerMixin):
"""Categorical data missing value imputer."""
def __init__(self, variables=None) -> None:
if not isinstance(variables, list):
self.var... | [
"tifaouisaid@gmail.com"
] | tifaouisaid@gmail.com |
94c75af050c8c909d60ab4ed56c2670b2b4bd071 | d5a7981631d1ad2121fb5a252aee4b81260d376a | /posts/migrations/0002_auto_20190526_1626.py | f81d13a52d85166c78a095039650a983c5c67402 | [] | no_license | alldroid/news-aggregator | f43bc869541bb6316df6d48709380fc122dad958 | 7394f6baad718ee88f0cf06ee9af5a5fa4b998e1 | refs/heads/master | 2023-05-04T18:52:55.340932 | 2019-11-19T20:12:11 | 2019-11-19T20:12:11 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 540 | py | # Generated by Django 2.2 on 2019-05-26 16:26
from django.db import migrations
import django.db.models.deletion
import mptt.fields
class Migration(migrations.Migration):
dependencies = [
('posts', '0001_initial'),
]
operations = [
migrations.AlterField(
model_name='comment',... | [
"viceroy627@news.4txip4n1dtve5mhis1bhurobdd.dx.internal.cloudapp.net"
] | viceroy627@news.4txip4n1dtve5mhis1bhurobdd.dx.internal.cloudapp.net |
b2bc6d700ba40275585cfc1a818d9a36ad0f782c | 0d0c13d80924b6e5cfc74a623eb250a5fd2e2cca | /Math/Compute nCr % m.py | 7a9a4904bffa1b09667071e3a52d2ff5587639ea | [
"Apache-2.0"
] | permissive | Akashdeep-Patra/problemSolving | 54e2fc3c3a9587b8c976921f6fc45364af1dfcac | c278e5d090af7370e56789e68b7bb73dc37165f8 | refs/heads/master | 2022-11-15T19:20:54.585886 | 2020-06-29T10:47:39 | 2020-06-29T10:47:39 | 258,956,787 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,200 | py | """
Compute nCr % m
Problem Description
Given three integers A, B and C, where A represents n, B represents r and C represents m, find and return the value of nCr % m where nCr % m = (n!/((n-r)!*r!))% m. x! means factorial of x i.e. x! = 1 * 2 * 3... * x.
Problem Constraints
1 <= A * B <= 106 1 <= B <= A 1 <= C <=... | [
"adeep8961@gmail.com"
] | adeep8961@gmail.com |
0b25817eb5e11c92de72378394c3f884aae9f3f1 | 4b2719da49b1beba62c043c7f099d3744b86e142 | /d010.py | c3e32153f7c45e54f3109c4fdda9d70af96178d0 | [] | no_license | fcvlh/python-cursoemvideo | 68785b5fb09a6c9118cf0cae92b3bc3a6d0f5254 | 26d387716bb998c4882982f586bd375e7731e27b | refs/heads/master | 2020-04-30T20:22:59.034694 | 2019-03-25T01:47:44 | 2019-03-25T01:47:44 | 177,064,646 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 169 | py | v = float(input('Qual é o valor que você tem disponível? '))
d = float(3.27)
c = float(v/d)
print('Com R$ {:.2f} você pode comprar {:.2f} dólares.'.format(v, c))
| [
"felipecarvalho4@hotmail.com"
] | felipecarvalho4@hotmail.com |
5a5e52126f3d65f4e181b73cf8ef52d1509c7bbe | 49800e971c605d74d0841a9bb07a618ad1fc6e49 | /web/apps/nosari/urls.py | d7af7bec90c2311f11dcb3cfe7f3bacf8d6b4a99 | [] | no_license | cerfelix/AntiSARI | ab0c9bd96c8044cd806d26db7b6eea67cf008f70 | 8a217390c367d2af65fd373cbf5794eaa841efea | refs/heads/master | 2020-12-22T10:12:25.454134 | 2020-01-29T09:50:13 | 2020-01-29T09:50:13 | 236,748,324 | 0 | 0 | null | 2020-01-28T14:02:09 | 2020-01-28T14:02:08 | null | UTF-8 | Python | false | false | 235 | py | # _*_coding:utf-8_*_
"""
@ProjectName: AntiSARI
@Author: Javen Yan
@File: urls.py
@Software: PyCharm
@Time : 2020/1/28 下午1:58
"""
from web.apps.nosari.controller import NoSariHandler
urlpatterns = [
(r'', NoSariHandler)
]
| [
"2023335616@qq.com"
] | 2023335616@qq.com |
37acdcb18c346f0b966a42f60f2355c4666e132f | f8ecf2d7a4f3c74286ae2ea7ef592548c7a3b267 | /647_string_Palindromic.py | 1298f49b6fad57de3254a72e38d750de68cffcd5 | [] | no_license | fatterZhang/leetcodeComments | beebec976465986f15ddf119f58fbe7702e55839 | 1535a92c2e141f86ce6c5a784d7d55ad05ed044f | refs/heads/master | 2021-03-25T13:11:09.816365 | 2020-04-30T02:39:19 | 2020-04-30T02:39:19 | 247,621,299 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,192 | py | # -*- coding: utf-8 -*-#
# Name: 647_string_Palindromic
# Author: ARCHI
# Date: 2020/3/20
# Description: 字符串相关的回文串
# -------------------------------------------------------------------------------
# Manacher's Algorithm 马拉车算法 求回文串
# 参考链接: https://www.cnblogs.com/grandyang/p/4475985.html https... | [
"1210188542@qq.com"
] | 1210188542@qq.com |
096008b72b4bbc1a8ce44f32e2520421c06122cb | 448087b1e3335cd4f43172f0e0666f3bb8f351a0 | /awd-lstm-单分类/visualizationTheVector.py | 6b23e7f4327530d09233ebcaf9aa36e98e0efe1c | [] | no_license | NightmareVoid/LSTM_for_EEG | b87833dc6cee97155a894af1357371764b6cc2bf | bd55bea958c6460f9bd518bfe953651fce4f7168 | refs/heads/master | 2020-04-13T08:32:33.504765 | 2019-12-26T11:26:49 | 2019-12-26T11:26:49 | 163,083,858 | 7 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,792 | py | # -*- coding: utf-8 -*-
"""
Created on Wed Mar 13 21:17:16 2019
@author: night
"""
# .::::.
# .::::::::.
# :::::::::::
# ..:::::::::::'
# '::::::::::::'
# .::::::::::
# '::::::::::::::.... | [
"noreply@github.com"
] | NightmareVoid.noreply@github.com |
4c546506530b955241f0ab629a3c62ba306ed6e9 | eeb351838cfb6af781586c0d67e2eb5efade738e | /dynamicProgrammin/climbStairs.py | 427026889857c7b5a1e1ddc4a1c7672ee9acd607 | [] | no_license | iCodeIN/Data-Structures-and-Algoritms | 117a1191e3d4ac8a8c950fcec658fdc475360178 | 32f7cd0961abb293ec2c1d08c5686e4383a9f720 | refs/heads/main | 2023-02-14T19:27:47.209714 | 2021-01-13T02:39:56 | 2021-01-13T02:39:56 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 181 | py | def climbStairs(n):
if n==1:
return 1
dp=[0 for _ in range(n)]
dp[0]=1
dp[1]=2
for i in range(2,n):
dp[i] = dp[i-1] + dp[i-2]
return dp[-1]
| [
"rucha.d1690@gmail.com"
] | rucha.d1690@gmail.com |
5c8a3d633cdc1f30c6039e31239a9dc7458adc8c | 7604468bc21e5f7b11b7b48b884d8b8fd1b5235b | /venv/Scripts/pip3-script.py | 8ce69a0d40c95b828f84e195a0a0f1b138530b64 | [] | no_license | baallnight/syyoo3 | 5be17b7e107ed957880238d54cced70091a287ec | de333cedc00825e1516590aa3a99af988b396bfb | refs/heads/master | 2020-05-05T07:05:36.660787 | 2019-04-13T09:20:01 | 2019-04-13T09:20:01 | 179,813,071 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 412 | py | #!C:\Users\ezen\PycharmProjects\syyoo-3\venv\Scripts\python.exe
# EASY-INSTALL-ENTRY-SCRIPT: 'pip==10.0.1','console_scripts','pip3'
__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... | [
"gkdldkfk@naver.com"
] | gkdldkfk@naver.com |
bf01b79a3700c352727aef8eaafe54f6f54e41dc | 54f716fb857503f1afbde763302e4afd2237fbd0 | /personalhealth/user/models.py | e35c2cae6468d5df984b0f72e06577d282f7dfc3 | [] | no_license | VARSHINI2000V/PersonalHealthRecordManagement | 26fa65b28e1749e13c5194359cb113fa6436e873 | c065eced510ff24248b8d54f5edfdb44fdd7c90d | refs/heads/master | 2023-05-19T21:15:09.515062 | 2021-06-11T07:13:31 | 2021-06-11T07:13:31 | 375,936,877 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 2,245 | py | from django.db import models
# Create your models here.
class Registeration(models.Model): #step 5 need to creaet all fields and insert html file in templates
name=models.CharField(max_length=50) # create a new file urls.py in appname
email=models.CharField(max_length=50,primary_key=True)
password=models.... | [
"20mx224@psgtech.ac.in"
] | 20mx224@psgtech.ac.in |
0c18fac95ddcd9bb781a3fec7a8ca8750a4c3d8b | 01219eaf85e80f9bdebcb722278c12b10e46ac77 | /write_surfrend_script.py | adb61cbcef046de72e25a95240665c2cd268277a | [] | no_license | KuperbergLab/MRI_scripts | 0850613dfba41c9696251402a7c4b3a6311600f2 | 8b4fea4f2e9eeaaf36e8d4f52747bf78455e60a0 | refs/heads/master | 2021-01-23T08:56:58.728335 | 2013-11-05T14:43:14 | 2013-11-05T14:43:14 | 1,350,777 | 1 | 2 | null | null | null | null | UTF-8 | Python | false | false | 1,033 | py | import sys
import os
import os.path
import readInput
from os.path import join as pj
def write_surfrend_script(conname,connum, swd, thresh, exthresh):
"""
Writes out the m file with matlab calls to surfrend_canonical.m.
"""
mfile_script = pj(swd, conname+".m")
commands = []
commands.append("war... | [
"candida@nmr.mgh.harvard.edu"
] | candida@nmr.mgh.harvard.edu |
bf24ed5892fb160f649ce475c426d251ed8c2127 | 85988e23c7e94d3c4c6b8156c7e79040d0064320 | /drf_demo/model_less/views.py | 655e996c67d645cce946fbb1a99746faa5a561dc | [] | no_license | Thiyageshv/PizzaReminder | dcb98731b3ff3c461baa123342d28fc32ec3a97e | ebb10055249721474ea98c9ff2b94976bb8a1cd0 | refs/heads/master | 2020-12-24T18:55:11.824200 | 2016-05-13T00:29:47 | 2016-05-13T00:29:47 | 58,516,310 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,947 | py | import django_filters
import json
from rest_framework import filters
from rest_framework import generics
from rest_framework.response import Response
from rest_framework import viewsets, status
from auth import getresponse
from . import serializers
from . import yelp
from .serializers import locserializer, groupseria... | [
"slogsudan001@gmail.com"
] | slogsudan001@gmail.com |
9ae6888a4830dd4d9410c8388b80e621f27c0173 | f91823b5b660cc9057a713885581e5d3fd678c6d | /Python/419_BattleshipsInABoard.py | 23b3188899e6bf96bba04cf5bbb861e67dc6ff22 | [
"MIT"
] | permissive | Roiw/LeetCode | 7ce722c2c1fa6117ccf18973d7cb6f79482e37c8 | b052963e55a60d6b06608359cad979b8d87ec751 | refs/heads/master | 2021-06-24T01:56:21.116865 | 2021-01-30T07:19:27 | 2021-01-30T07:19:27 | 198,638,278 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 871 | py | class Solution:
def countBattleships(self, board: List[List[str]]) -> int:
def checkBattleDirection(direction, position):
dX, dY = direction
x, y = position[0] + dX, position[1] + dY
while x < len(board) and x >=0 and y < len(board[x]) and y >= 0 and board[x][y] == 'X':
... | [
"lucas.martins.s@gmail.com"
] | lucas.martins.s@gmail.com |
ba837d55e3dd6107d2a049fbd6ffd82ff426d678 | aa9c055001fc48f1e98e3e52e4d23a9dffa11572 | /NumpyCookbook/src/test/commonly_used_functions/test_fermat_factor.py | 1478cd032325f2aae3cb5204e23cf6e6116ad771 | [] | no_license | sts-sadr/NumpyCookbook | b326697393ad804a1b74c310808d68dc242f85a1 | 8ccc270a7793919e7511d09b94d2b1a0f5bad022 | refs/heads/master | 2021-01-09T17:46:16.807042 | 2014-07-18T00:01:47 | 2014-07-18T00:01:47 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,217 | py | import unittest
import numpy
def factor(n, limit, prime_factors):
#1. Create array of trial values
a = numpy.ceil(numpy.sqrt(n))
limit = min(n, limit)
a = numpy.arange(a, a+limit)
b2 = a**2 - n
#2. Check whether b is a square
fractions = numpy.modf(numpy.sqrt(b2))[0]
#3. Find 0 fractio... | [
"wright1michael@gmail.com"
] | wright1michael@gmail.com |
3d583524944b4d54d5c4a94528ae094f9a236bf1 | b2092667277ecd2c5ef01d6070478621a2c73222 | /Bandit/Scripts/ROT_Rotation.py | 6d266e66464c0870b4117358363dbf1a972a1d1e | [] | no_license | WillGreen98/CTF-OverTheWire | 47b181cda18ed4a1f745c1baa4c8d56a4d94120f | c4f11e971aa222306020eeeaa9bca1cc2b228d47 | refs/heads/master | 2020-04-17T11:37:11.305509 | 2019-01-31T00:15:42 | 2019-01-31T00:15:42 | 166,547,604 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 224 | py | #!/usr/local/bin/env python3
from string import ascii_lowercase as lc, ascii_uppercase as uc
def rot_alpha(n):
lookup = str.maketrans(lc + uc, lc[n:] + lc[:n] + uc[n:] + uc[:n])
return lambda s: s.translate(lookup) | [
"will.green98@hotmail.com"
] | will.green98@hotmail.com |
ac26026eb814ca0db15731de59acc6421ff8784d | f1291ebc19962fac85512c807cef74837e4d9a13 | /stss/__init__.py | 51d81fa53ed8741bec7f3cdf7de2dcb615e63026 | [
"MIT"
] | permissive | wuttem/stss | ab11e04079ce326f63212452cfcb90bc90bc8e65 | 518fe422ba090e77a0b4ef998955e097ffe7cae5 | refs/heads/master | 2020-06-10T01:03:01.876263 | 2017-02-19T11:36:50 | 2017-02-19T11:36:50 | 76,118,796 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 96 | py | #!/usr/bin/python
# coding: utf8
from __future__ import unicode_literals
__version__ = '0.1.0'
| [
"matthias.wutte@gmail.com"
] | matthias.wutte@gmail.com |
886ca8342ed0e46c23d2cadfe13df261f5e69e34 | c75f4fd96d537d57e28a1e3d6b25b7e7228dde36 | /hlavnykomp/web/generate_rank.py | 941804ab34ea5b4e81e8561540073b05069f0b72 | [] | no_license | trojsten/proboj-2015-jesen | fd1277c84a890a748690f623ebaf6ce1747e871b | e7381c0c5847816540e2b7b4c44a7293a3a9e4c4 | refs/heads/master | 2021-01-17T12:40:22.778872 | 2017-03-17T11:16:35 | 2017-03-17T11:16:35 | 46,065,114 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 8,736 | py | #!/usr/bin/env python
# -*- coding: utf8 -*-
# Quick start:
#
# virtualenv venv
# source venv/bin/activate
# pip install flask markdown
# ./web.py
import os
import re
import time
import tarfile
from flask import (abort, flash, Flask, make_response, redirect, url_for,
render_template, render_template_string, reque... | [
"faiface2202@gmail.com"
] | faiface2202@gmail.com |
887f6ea2c7e8bbca6135e136376ad8a3086747d8 | 2bd978979c0d5b301f7e677980da5f27dbeba5a7 | /catkin_ws/devel/_setup_util.py | 754f12afef2bd4a4fd682fa90597656f39850f56 | [
"BSD-3-Clause"
] | permissive | Jenny0ly/MultipleAgents | ad9c9af454683f5f8d62483a1221c192cbe17951 | 01ee412b067800c6d45367d398e74df0a5880d54 | refs/heads/master | 2021-05-16T22:34:27.491519 | 2020-05-05T05:31:51 | 2020-05-05T05:31:51 | 250,494,846 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 13,360 | py | #!/usr/bin/python2
# -*- coding: utf-8 -*-
# Software License Agreement (BSD License)
#
# Copyright (c) 2012, Willow Garage, Inc.
# All rights reserved.
#
# Redistribution and use in source and binary forms, with or without
# modification, are permitted provided that the following conditions
# are met:
#
# * Redistri... | [
"jennyoly.maya@gmail.com"
] | jennyoly.maya@gmail.com |
75b0742f4d4d9ac93c8bda2c913177cade4c76c6 | e4217e4ab2f6ef04f7f0e7c95caa5d5c0f750742 | /Cap2/Ejercicios/Ej04.py | 5339273cebee823c00e3c79776f69600e065f8d5 | [] | no_license | ShannonNCM/Sistemas-Dinamicos | 0cc8b88b2c702134c4b10aa977927a504b099187 | 1aea45b0a5657c33d3ecae0a35492f64d60fd55e | refs/heads/master | 2022-12-29T21:16:27.298901 | 2020-10-21T01:22:07 | 2020-10-21T01:22:07 | 281,296,261 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 398 | py | '''un circuito en serie capacitor-resitor esta dado por: RdQ/dt + Q/C = E donde Q es la
carga del capacitor. R=1/(5+t) y capacitancia C=0.5, E=100. Hallar carga del capactiro
en Q(0)=0'''
#importando las librerias
from sympy import *
from sympy.abc import t
#resolviendo la ecuacion diferencia
Q=Function('Q')
eqd1=(1/... | [
"noreply@github.com"
] | ShannonNCM.noreply@github.com |
abcee18f11430112cfe40935f8b86f4ece9b19ee | ed79efafcc798e1af47c3041badf5953e22a9a86 | /.atom/local-history/Users/anas/projects/scadmin_v3/scorecloud/2015-11-24_5-42-01 PM_admin.py | 05856bef3224217a4256a290f35efb724cf8d6c9 | [] | no_license | fsmo/anasfullstack-dotfiles | 47534194bbe37dae48d70b161a7b5bcabf5b4a5e | a0e5eb831a2602b993fb121d94aa17f79b4c05ce | refs/heads/master | 2020-03-19T10:35:55.384275 | 2015-12-18T15:01:54 | 2015-12-18T15:01:54 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 12,086 | py | from django.contrib import admin
from scorecloud.models import *
from django.forms import ModelForm, CharField
from django.forms import widgets
from django.utils.safestring import mark_safe
from django.contrib.admin import DateFieldListFilter, SimpleListFi... | [
"anas.aboureada@doremir.com"
] | anas.aboureada@doremir.com |
70a6b84238efa4e023179a2ad24b371742532fce | fbb141c9b99c4c08ce2c0acfe13630d694d98744 | /7-stack/4.10-shu-zu-zhong-de-ni-xu-dui-lcof.py | f04c9947f38d38bf2a749719998cd041df3b5b3b | [] | no_license | huixian3/algorithm017 | 1534bc8a0364595b056e0f346cfe9fa8b8fee3bd | f43c99dc7810de863f8cd79115e272ac65ce9257 | refs/heads/master | 2023-04-02T07:10:03.670003 | 2021-04-13T14:38:36 | 2021-04-13T14:38:36 | 297,989,771 | 0 | 0 | null | 2020-09-23T14:05:41 | 2020-09-23T14:05:40 | null | UTF-8 | Python | false | false | 1,473 | py | '''
在数组中的两个数字,如果前面一个数字大于后面的数字,则这两个数字组成一个逆序对。
输入一个数组,求出这个数组中的逆序对的总数。
'''
# 归并排序 同 逆序对,分治
# 在megrge环节中计数即可,计数方法是,左边数据大于右边数据元素的pair数量
class Solution(object):
def reversePairs(self, nums):
"""
:type nums: List[int]
:rtype: int
"""
self.cnt = 0
def merge(nums, start, mid... | [
"zhanhuixian@meituan.com"
] | zhanhuixian@meituan.com |
8a0079dd597dba447df0d9aed6437df677f2accb | 710026f64d3a23913ae71d2300147b371f5cb75b | /gammapy/data/tests/test_all.py | 138034335de153523316b69996357d13979c5972 | [] | no_license | Cadair/gammapy | 557c01e33d93fe6cc2daaac35b53590d33e31fbc | 19f4fdd299b8c3495c732fc412f5d18cb9df3590 | refs/heads/master | 2020-12-13T21:52:37.790005 | 2014-02-20T15:15:10 | 2014-02-20T15:15:10 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 950 | py | # Licensed under a 3-clause BSD style license - see LICENSE.rst
from __future__ import print_function, division
from numpy.testing import assert_allclose
from astropy.utils.data import get_pkg_data_filename
from astropy.io import fits
from .. import poisson_stats_image
def test_poisson_stats_image():
"""Get the d... | [
"Deil.Christoph@gmail.com"
] | Deil.Christoph@gmail.com |
6c8b767bfd8451494c732f1f3a4f097e759995a8 | 314719658bf9c6a393bf73e2caa846b682648d7f | /no-save.py | 1c8afd01c10cfbaa1e1c250395656b58bb8d03ec | [] | no_license | vilajp/irenic | f07714b14856d707fd5dca8cefbae1ab20e4b08d | 054c548bde33bfbb9649de91bff1d8e73812a611 | refs/heads/master | 2023-02-22T05:58:24.997871 | 2021-01-26T16:11:18 | 2021-01-26T16:11:18 | 288,257,768 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,685 | py | import os
os.environ['KIVY_GL_BACKEND'] = 'angle_sdl2'
import webbrowser
from kivy.app import App
from kivy.uix.boxlayout import BoxLayout
from kivy.uix.gridlayout import GridLayout
from kivy.uix.button import Button
from kivy.uix.textinput import TextInput
from kivy.uix.label import Label
class MyTextInput(TextInput)... | [
"vilajp@gmail.com"
] | vilajp@gmail.com |
b6bd75945987e1414a96002a48821094fbf1dd28 | 9661a19548c9886beb4965f8b404fc61f0f6831e | /Tools/virtual_server_remove_cores.py | 4e9cb58e9c3f0c823cb8ea5f0573f86ab036705d | [] | no_license | dirkhpe/bv | d3ee2f43ac1cc0b14b38b40417adbd96335db818 | 7725ebc01b3b981897f018a5e81bfd8a62dea11d | refs/heads/master | 2022-01-31T00:30:46.056907 | 2019-06-05T08:30:05 | 2019-06-05T08:30:05 | 107,697,187 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,565 | py | """
This script will find all virtual servers where Core is defined. The core property is removed.
For virtual servers only CPU count is listed. Core is not relevant for virtual servers.
The CPU field in MURCS for Virtual Servers is the 'Number of logical CPUs' in ESL (see ESL documentation).
A server with 4 CPU, 4 co... | [
"dirk.vermeylen@skynet.be"
] | dirk.vermeylen@skynet.be |
155abf1cb8c24811bbe7251caef3d6eb6e1d3629 | 617ff229b63165368e32a303488b29c738a5378a | /src/bad smell/plot_smell_fft.py | c75518ce5eedbec995ac26155c38b340be32e0b4 | [] | no_license | dimpisingh/e-dom | a1ae76229a31c0a5dcc725a80e7a741be660a0da | a820874545e97ec10580db6dd11e35c7eec65abc | refs/heads/master | 2022-05-13T07:27:31.180506 | 2019-04-10T13:53:26 | 2019-04-10T13:53:26 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,425 | py | import os
import plotly
# plotly.tools.set_credentials_file(username='dichen001', api_key='czrCH0mQHmX5HLXSHBqS')
plotly.tools.set_credentials_file(username='amritbhanu', api_key='cuaXxPfbSxptk2irXf7P')
import plotly.plotly as py
import plotly.graph_objs as go
import cPickle
import pickle
cwd = os.getcwd()
data_path =... | [
"amritbhanu@gmail.com"
] | amritbhanu@gmail.com |
81134a6168f4a84855cdf9a45482da4a311f7d74 | c1e7e9012ffeba35473912af3ea432da22e2e085 | /base/67_demo_AIO_Coroutine.py | 392ae9d14f0b8ee2f348413920e72e1098787bd0 | [] | no_license | skwangdl/python_demo | 24e22100b232a7531047a9c313d24aee68c702b7 | 92b0404b3783c22b6109caca18529eb4d30a9dbe | refs/heads/master | 2020-04-30T17:19:04.472884 | 2019-05-30T10:15:04 | 2019-05-30T10:15:04 | 176,975,754 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 787 | py |
# 首先调用c.send(None)启动生成器
# 然后,一旦生产了东西,通过c.send(n)切换到consumer执行
# consumer通过yield拿到消息,处理,又通过yield把结果传回
# produce拿到consumer处理的结果,继续生产下一条消息
# produce决定不生产了,通过c.close()关闭consumer,整个过程结束
def consumer():
r = ''
while True:
n = yield r
if not n:
return
print('[CONSUMER] Consuming %s... | [
"wangck4@lenovo.com"
] | wangck4@lenovo.com |
5eb8ffeec94c2991e9e2530bf7cdee6e3819a92b | ea463d9a1ff7343a553293c1402ee13151624594 | /Sprint3/qaCompiler/outputs/CompiledCode/outputs8_Code.py | d12bb015b4a06dd0ad51ea6cdc5ac73ac10a2f65 | [] | no_license | benbennza1/QACompiler | 88d09ae58b94454a9b99ec20f4fd010910ff855d | f4059a19000ddb6f9cf1b2f7276cb6da0d2bb47e | refs/heads/master | 2021-01-21T11:27:34.216347 | 2017-05-18T22:29:22 | 2017-05-18T22:29:22 | 91,740,893 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,122 | py | from splinter import Browser
from time import sleep
SLASH = "/"
def step (browser, loop = False):
return step1(browser, loop)
def step1(browser, loop = False):
return step3(browser,loop)
if loop:
return
return step2(browser, loop)
def step2(browser, loop = False):
browser.find_by_id("Search").first.type("te... | [
"nizhangan123@hotmail.com"
] | nizhangan123@hotmail.com |
36fffbf08add01a7aa0c0a0417081547bc20bd88 | a7d7c4c04b3bfc0d5705de81ec5ddb52cd8bedf8 | /db/tests/test_system_data.py | a4f3726782ea519628f052dc9df046a8626812dc | [
"MIT"
] | permissive | alorenzo175/ESPRR | f065db03598c2eaa278b095df7ed4c0434f3105a | de896a13c92fc4eaf3f7487e2ca8fb3ef3d04ebb | refs/heads/main | 2023-06-22T09:21:41.341366 | 2021-05-01T03:25:13 | 2021-05-01T03:25:13 | 363,449,089 | 0 | 0 | MIT | 2021-05-01T15:54:44 | 2021-05-01T15:54:43 | null | UTF-8 | Python | false | false | 8,865 | py | from uuid import uuid1
from pymysql.err import OperationalError
import pytest
def test_system_foreign_key(cursor, system_id):
cursor.execute(
"select 1 from system_data where system_id = uuid_to_bin(%s, 1)", system_id
)
assert cursor.fetchone()[0]
cursor.execute("delete from systems where id... | [
"noreply@github.com"
] | alorenzo175.noreply@github.com |
724ace94a1e0870eab100583a8d238c8ae4de8ab | 47a60670de631b53a5299960a56f49c69440f243 | /SentimentAnalysis.py | 9ce675ca812ddc9d52567c408c36b964435aba79 | [] | no_license | findingnino/SentimentAnalyzer | 2f72764220f4da93a596232f0b73066038f8809a | 1680fb0bb14b492a9409a11ba22b7bf95f19d014 | refs/heads/master | 2020-12-30T09:37:57.659112 | 2015-07-18T17:03:59 | 2015-07-18T17:03:59 | 39,018,681 | 1 | 1 | null | null | null | null | UTF-8 | Python | false | false | 842 | py | from textblob import TextBlob
from textblob.classifiers import NaiveBayesClassifier
from os import listdir
import time, winsound
def dir_list(dir):
'''Returns the list of all files in self.directory'''
try:
return listdir(dir)
except WindowsError as winErr:
print("Directory error: " + str((... | [
"ngancitano@gmail.com"
] | ngancitano@gmail.com |
67f4c5e5b9180fbdfcfe9e9ce38ea7ff37093739 | 6142a961585cc01f39ae24de8540d7f9399c2ea0 | /tutorial/quickstart/views.py | 211430b3f1d3d7a4dad560199280e399c053251f | [] | no_license | sremy/django-demo | d5954410bfb4c18c79632b06376898880ee58606 | c74f4ee0e1639e02cea0a40c28517c13f9158f85 | refs/heads/master | 2020-07-29T04:05:35.225899 | 2019-09-30T23:52:26 | 2019-09-30T23:52:26 | 209,662,804 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,850 | py | from django.shortcuts import render
from django.contrib.auth.models import User, Group
from rest_framework import viewsets
from rest_framework.views import APIView
from rest_framework import generics
from rest_framework.response import Response
from rest_framework.request import Request
from tutorial.quickstart.seriali... | [
"seb.remy@gmail.com"
] | seb.remy@gmail.com |
6c6d5f913ad89423170d7e4e728f2d9b67184ad4 | 5bb8b4c7faeebd16da16ecbcd4a98aabaf688e8f | /data_tools/walker/src-cikm/build_graph2/citations.py | 2438338b186b181a26af7fd8e16ccbc3d15dfd74 | [] | no_license | xiaoqinzhe/vrdetection | 014fc2b61c9b30dd2699fdba41089b18b7f060be | 604a812a21a98d72ba8e23a716eb72153bdaa7c4 | refs/heads/master | 2023-07-04T07:44:12.141404 | 2021-08-01T06:21:17 | 2021-08-01T06:21:17 | 150,063,473 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 456 | py | #coding:utf-8
import json
file_path = '/mnt/hdd2/dblp/dblp_ref.json'
citation_file_path = '/mnt/hdd2/cikm/citation.txt'
with open(file_path) as ifile, open(citation_file_path, 'w') as ofile:
for line in ifile:
paper = json.loads(line)
if 'references' not in paper:
continue
outpu... | [
"xiaoqinzhe@qq.com"
] | xiaoqinzhe@qq.com |
d90f4c250ad6540185c4685ac49cf4e5df824ab7 | b4f661f1153637d9cfec18e4cf56b64582c31385 | /src/Python/304.二维区域和检索-矩阵不可变.py | fd58f373a91c848ff44f0bd8495b1cc29de69c8a | [] | no_license | Icedomain/LeetCode | 12dd24bbe2d7aba1f6ebe61bffe4c5e6284fbd06 | 4bc8e41499b9c884d64b5a44fe783fdb7030676e | refs/heads/master | 2021-02-15T15:12:15.009790 | 2020-09-22T11:37:59 | 2020-09-22T11:37:59 | 244,909,740 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 893 | py | #
# @lc app=leetcode.cn id=304 lang=python3
#
# [304] 二维区域和检索 - 矩阵不可变
#
class NumMatrix:
def __init__(self, matrix: List[List[int]]):
if not matrix:
return
n, m = len(matrix), len(matrix[0])
self.sums = [ [0 for j in range(m+1)] for i in range(n+1) ]
for i in range(1, n+1... | [
"1271029566@qq.com"
] | 1271029566@qq.com |
849d980540c6fa535a1182553e06d3b90c074b5a | 711c11d0111a40055ba110e7089a231c2ba42b8e | /toontown/toon/DistributedToonUD.py | b4b001783dd576ab652bc7227ed27b1ab9f1b375 | [
"Apache-2.0"
] | permissive | DeadMemez/ProjectAltis-OldAcornAcres | 03c8dc912ecccae8456d89790f6b332547b75cc3 | e8e0087389933795973e566782affcaec65a2980 | refs/heads/master | 2021-01-19T13:59:07.234192 | 2017-08-20T14:41:45 | 2017-08-20T14:41:45 | 100,869,782 | 0 | 2 | null | 2017-08-20T15:14:35 | 2017-08-20T15:14:35 | null | UTF-8 | Python | false | false | 10,675 | py | from direct.directnotify import DirectNotifyGlobal
from direct.distributed.DistributedObjectUD import DistributedObjectUD
from otp.avatar import DistributedAvatarUD
class DistributedToonUD(DistributedAvatarUD.DistributedAvatarUD):
notify = DirectNotifyGlobal.directNotify.newCategory("DistributedToonUD")
d... | [
"tewtow5@gmail.com"
] | tewtow5@gmail.com |
9f93414a8b6943067c70e69c8d7903d3a7e315a0 | 8a9ced8ebd8bc01f902d0380860200f72b0cd110 | /profiles/models.py | 26f28da68c5060f91605f90aa7656094045a8bc8 | [] | no_license | Priyanshu2019b151067/social_network_django | 14015ed50dd6388d2a22bfcf6338fb9429da7e29 | 1bc20512d2f3a6fe39d30bd84781b53c838e6a48 | refs/heads/master | 2023-06-11T18:58:55.001364 | 2021-06-23T04:45:19 | 2021-06-23T04:45:19 | 379,481,420 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,309 | py | from django.db import models
from django.shortcuts import reverse
from django.template.defaultfilters import slugify
from django.contrib.auth.models import User
from .utils import get_random_code
from django.db.models import Q
# Create your models here.
class ProfilesManager(models.Manager):
def get_all_profile... | [
"priyanshuplpup@gmail.com"
] | priyanshuplpup@gmail.com |
e17ec42260d63dbec8d4f3a7362681eb8117e543 | 7e5a63cc13397cb31ea8d4f22320d05eb6d65d98 | /Python/django/dcourses/dcourses/wsgi.py | f2a120b5da59cd8a1dc970b197a936a7e48bcebf | [] | no_license | loyti/GitHubRepoAssingment | a9e876cf63cccf4f617bdcba374010237a1902f0 | ee9ee4478fc4d89635cb245d324848587f8cd129 | refs/heads/master | 2023-01-22T11:48:44.131695 | 2019-01-14T21:07:05 | 2019-01-14T21:07:05 | 94,840,928 | 0 | 2 | null | 2023-01-12T09:46:12 | 2017-06-20T02:25:47 | Python | UTF-8 | Python | false | false | 394 | py | """
WSGI config for dcourses project.
It exposes the WSGI callable as a module-level variable named ``application``.
For more information on this file, see
https://docs.djangoproject.com/en/1.11/howto/deployment/wsgi/
"""
import os
from django.core.wsgi import get_wsgi_application
os.environ.setdefault("DJANGO_SET... | [
"brice@loyti.com"
] | brice@loyti.com |
17c36a85b75b51e756e29a8ead5b24a5fa4896ea | 89e6c3548fbdd06178aae712de1ff19004bc2faa | /my_dulwich/contrib/test_swift_smoke.py | 222a609b4aa4864ef99696425775c51d3982d551 | [] | no_license | bhgv/ublog_git.hg.repo-django.python-engine | a3f3cdcbacc95ec98f022f9719d3b300dd6541d4 | 74cdae100bff5e8ab8fb9c3e8ba95623333c2d43 | refs/heads/master | 2020-03-23T01:04:07.431749 | 2018-07-25T12:59:21 | 2018-07-25T12:59:21 | 140,899,479 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 13,075 | py | # test_smoke.py -- Functional tests for the Swift backend.
# Copyright (C) 2013 eNovance SAS <licensing@enovance.com>
#
# Author: Fabien Boucher <fabien.boucher@enovance.com>
#
# Dulwich is dual-licensed under the Apache License, Version 2.0 and the GNU
# General Public License as public by the Free Software Foundation... | [
"bhgv.empire@gmail.com"
] | bhgv.empire@gmail.com |
b1ab45a954411d59a7b80dd55ea11ce04a3a0914 | 745492fbba92ce62fb19daf2b94ede4db76d3efa | /Day 44/38. Count and say.py | 712306e774a026bec47eee1de332527a9dbc5bb3 | [] | no_license | MantieReid/100-days-of-code-round-2 | 8d0256cff32c0e332811a179638ea8d1af272a85 | dd07b4de3d62f2e986626981a9ea6511b8f8b167 | refs/heads/master | 2020-12-03T01:21:47.524895 | 2020-04-20T01:47:24 | 2020-04-20T01:47:24 | 231,173,797 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 216 | py | class Solution:
def countAndSay(self, n: int) -> str:
s = '1'
for _ in range(n - 1):
s = ''.join(str(len(group)) + digit
for group, digit in re.findall(r'((.)\2*)', s))
return s
| [
"mantiereid2@gmail.com"
] | mantiereid2@gmail.com |
b04f5902369c128c688593ca330bb43b55ffa29c | a8ed252f3b76a8d134f026ccf0204c5e5e918edb | /apps/common/views.py | 5651d62f133a31899ed83656bb5d35032146918d | [
"MIT"
] | permissive | F483/bitcoin-bounties.com | a8c84bfe61df25bae93f1bfd3c055754414cbe27 | 64a4a973fa38a4fb54178d855c1b82ec18799628 | refs/heads/master | 2020-04-25T23:19:32.859170 | 2014-11-22T15:40:48 | 2014-11-22T15:40:48 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 545 | py | # -*- coding: utf-8 -*-
# Copyright (c) 2014 Fabian Barkhau <fabian.barkhau@gmail.com>
# License: MIT (see LICENSE.TXT file)
from django.http import HttpResponseRedirect
from django.views.decorators.http import require_http_methods
from apps.common.utils.templates import render_response
@require_http_methods(['GET'])... | [
"fabian.barkhau@gmail.com"
] | fabian.barkhau@gmail.com |
7f79f55e72f1534f9e0147d8e1b58a6ee6487135 | 852b0d3386dace1a50b1eead6054eb24bb4bddd2 | /src/main/python/imqueue.py | ecf444820c66b6e0f4e93faa070c453e608dc743 | [
"MIT"
] | permissive | duskvirkus/crop-tool | 2271f95f323a83d6dfdba343bee3fdbcd2aab295 | 89ca43f99ed82ce3106ec0915040185ff3af6448 | refs/heads/main | 2023-08-29T01:49:13.505492 | 2021-10-27T10:09:25 | 2021-10-27T10:09:25 | 417,399,725 | 5 | 0 | null | null | null | null | UTF-8 | Python | false | false | 8,840 | py | from typing import Any
from enum import Enum
import abc
from argparse import ArgumentParser
import os
import threading
import time
import cv2
import numpy as np
from rect_data import RectData
class ImageLoaderThread(threading.Thread):
def __init__(self, thread_id, name, queue):
threading.Thread.__init__... | [
"duskvirkus@protonmail.com"
] | duskvirkus@protonmail.com |
e66adf2a6d1f32f1467ae3ff1e1bdc2c509baa2b | 33fa46042e7decb01008b73202e5d24ce6bad03a | /config/settings/test.py | ece2ef2fbcdf6949a10c811059a6d1e4cacc7b42 | [
"MIT"
] | permissive | rlaneyjr/project_pawz | 2d2ef8ef8a801e788c139a35bf82d72aafac8f69 | 27f316ef35968ed1319ec0585a050ebed795763a | refs/heads/master | 2022-12-05T11:39:04.384922 | 2019-05-28T22:24:24 | 2019-05-28T22:24:24 | 185,061,794 | 0 | 0 | MIT | 2022-12-03T08:21:14 | 2019-05-05T17:28:47 | JavaScript | UTF-8 | Python | false | false | 2,024 | py | """
With these settings, tests run faster.
"""
from .base import * # noqa
from .base import env
# GENERAL
# ------------------------------------------------------------------------------
# https://docs.djangoproject.com/en/dev/ref/settings/#debug
DEBUG = False
# https://docs.djangoproject.com/en/dev/ref/settings/#se... | [
"rlaneyjr@gmail.com"
] | rlaneyjr@gmail.com |
5637b3ee60d7b7414a6682e471e056af11a9ca98 | 21d7e0a30b75601956c1a3a7da85b8ce97f52d81 | /app.py | 38793a3888d200e6f3a4ce2b830fad53c949bde0 | [
"MIT"
] | permissive | ginrou/handwritten_classifier | 9d700898dbbd57397cb272dd6d19bb7b78b762ed | a06a8bfe0264c864caca815acc4ebda172271f2e | refs/heads/master | 2018-12-28T00:24:32.285858 | 2014-12-01T12:51:32 | 2014-12-01T12:51:32 | 27,335,942 | 10 | 1 | null | null | null | null | UTF-8 | Python | false | false | 690 | py | #!/usr/bin/env python
from flask import Flask, render_template, request, jsonify
from NeuralNetwork import *
import numpy
import pprint
pp = pprint.PrettyPrinter(indent=4)
app = Flask(__name__)
nn = NeuralNetwork(in_size = 784, hidden_size = 300, out_size = 10)
nn.load("mat.npz");
@app.route("/")
def index():
r... | [
"ginrou799@gmail.com"
] | ginrou799@gmail.com |
a48301d71e183eb42c92177fcf120ec2d8b0d9ca | 6b15bcbbc4a7537ae231d6544b6161db8c3e7165 | /venv/bin/launch_instance | 25313f89293e6214471d7894222aadaa492341ea | [] | no_license | bopopescu/pythonflask | 1a5ceb1d8e2b2aae2cfae024a61ad023e4281a6f | 59e36cfc8a3f5d3257c2ccf3f9eca4ff3c78418b | refs/heads/master | 2022-11-24T06:40:29.233836 | 2019-06-09T20:13:29 | 2019-06-09T20:13:29 | 282,545,921 | 0 | 0 | null | 2020-07-26T00:10:12 | 2020-07-26T00:10:11 | null | UTF-8 | Python | false | false | 10,649 | #!/Users/rajendrasinghrana/projectstructureflask/venv/bin/python
# Copyright (c) 2009 Chris Moyer http://coredumped.org/
#
# 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,... | [
"rajendrasinghrana79@gmail.com"
] | rajendrasinghrana79@gmail.com | |
a2b9401e365f59e25fda4d940259a3dc95ee6a8e | 3359b7dd5fd3d33b749545129a994e4328df8b9b | /temperature-regex.py | 6ed771e2edb05d80100cf730cb6ff4dec5581e3d | [] | no_license | Sway007/regex-python-test | dddfaa0e08d72d80d4c3e17943c3d246533045d5 | 34280d3946adb1b0685fc0735655e883f2d71012 | refs/heads/master | 2021-01-24T07:57:21.574814 | 2018-02-26T14:02:17 | 2018-02-26T14:02:17 | 122,966,658 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 355 | py | import re
pattern = '^([-+]?\d+(?:\.\d*)?)\s*([CF])?$'
match = '0'
match = input('try to validate a temperature:\n')
while match is not '#':
m = re.match(pattern, match, flags=re.IGNORECASE)
if m:
print('pass, and class is {}'.format(m.group(2)))
else:
print('invalid')
match = input(... | [
"yansw007@gmail.com"
] | yansw007@gmail.com |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.