blob_id stringlengths 40 40 | directory_id stringlengths 40 40 | path stringlengths 3 281 | content_id stringlengths 40 40 | detected_licenses listlengths 0 57 | license_type stringclasses 2
values | repo_name stringlengths 6 116 | snapshot_id stringlengths 40 40 | revision_id stringlengths 40 40 | branch_name stringclasses 313
values | visit_date timestamp[us] | revision_date timestamp[us] | committer_date timestamp[us] | github_id int64 18.2k 668M โ | star_events_count int64 0 102k | fork_events_count int64 0 38.2k | gha_license_id stringclasses 17
values | gha_event_created_at timestamp[us] | gha_created_at timestamp[us] | gha_language stringclasses 107
values | src_encoding stringclasses 20
values | language stringclasses 1
value | is_vendor bool 2
classes | is_generated bool 2
classes | length_bytes int64 4 6.02M | extension stringclasses 78
values | content stringlengths 2 6.02M | authors listlengths 1 1 | author stringlengths 0 175 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
0f0cbc46c4436c3392f93f81140f49f552fd4695 | 3d62bf6d662726384159cefbc5626f8b3b3f2738 | /virtual/bin/gunicorn | 03387e9cf34349109d38d5673cc12a270aac4cb8 | [
"MIT"
] | permissive | samwendo/Awward | c589f2879a1d65ebe8e76e332bec126a3f969b0c | 19948628e3c2e064538913397d70b470da94a658 | refs/heads/master | 2021-09-09T15:46:08.747921 | 2019-11-25T14:25:28 | 2019-11-25T14:25:28 | 223,365,693 | 0 | 0 | null | 2021-09-08T01:26:59 | 2019-11-22T09:09:42 | Python | UTF-8 | Python | false | false | 253 | #!/home/sam/DJANGO/DJANGO-IP/AWARDS/virtual/bin/python
# -*- coding: utf-8 -*-
import re
import sys
from gunicorn.app.wsgiapp import run
if __name__ == '__main__':
sys.argv[0] = re.sub(r'(-script\.pyw|\.exe)?$', '', sys.argv[0])
sys.exit(run())
| [
"wendosam21@gmail.com"
] | wendosam21@gmail.com | |
165b0e8a95e9915de979a24e4d2797c83c227fd8 | 0551b477327d1a1c44036e452d5dc6effdb0d0f9 | /components/Objects.py | d4c90e5173d28384de5c6bbfc27d71f58906aee1 | [] | no_license | Weirdodude101/Project-Users-V2 | 0faedd65c265119003258f34aba51d60055844b1 | 663ce8ebbea465cf58974d15c34818979d75ece9 | refs/heads/master | 2021-01-10T14:32:49.883395 | 2016-03-10T03:50:48 | 2016-03-10T03:50:48 | 51,277,671 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 695 | py | import Localizer
class Person:
def __init__(self,username,password,fname,lname,age,gender,hobby,desc):
self.username = username
self.password = password
self.fname = fname
self.lname = lname
self.age = age
self.gender = gender
self.hobby = hobby
self.... | [
"anonymousplaysminecraft1@gmail.com"
] | anonymousplaysminecraft1@gmail.com |
62b0119607ba874cec8b53150c7bd5211f79abe6 | 01243e4bd3979fb12056e338356aac7fa2aac66b | /4_1_FrogRiverOne/solution.py | 8756f9d0db1db09434f6b1913690ec222a4e2d37 | [] | no_license | ziippy/my_codility | fd4a8e16754723de3c882fab823fb55ec060879b | 593b2220aef8074f000ff409f92f3e978d7d5f3b | refs/heads/master | 2023-01-08T23:03:07.493826 | 2020-11-13T00:51:09 | 2020-11-13T00:51:09 | 310,746,216 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,333 | py | '''
A small frog wants to get to the other side of a river. The frog is initially located on one bank of the river (position 0) and wants to get to the opposite bank (position X+1). Leaves fall from a tree onto the surface of the river.
You are given an array A consisting of N integers representing the falling leaves.... | [
"ziippy@naver.com"
] | ziippy@naver.com |
0666262461097e626c0a07880937d6024b8d37cd | 501587665b694905cefd1260e33e558f0161bff0 | /T2Control de flujo/5_ejercicio.py | d3c0d5342dc4046635744a3d713bd8cf9f74f63c | [] | no_license | kroze05/Tarea_2 | 38d98b0fe563535ebdebfecdb0a9b2437fe13117 | 7357393a2e83ade79aeccc4d21e55acd79a563d0 | refs/heads/master | 2023-08-06T19:37:13.101629 | 2021-09-12T01:25:36 | 2021-09-12T01:25:36 | 405,518,428 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 579 | py | #5) Realiza un programa que pida al usuario un nรบmero entero del 0 al 9, y que mientras el nรบmero no sea correcto se repita el proceso. Luego debe comprobar si el nรบmero se encuentra en la lista de nรบmeros y notificarlo:
while True:
lista = [0,1,2,3,4,5,6,7,8,9]
print(lista)
val=int(input("ingresa un valor ... | [
"jeremiaschano@hotmail.com"
] | jeremiaschano@hotmail.com |
47b2b5549a877f3b8f29674f02a58a285f2fd471 | 435b287d58ed65bfa65bf042134e1bb1bfaed0dd | /day13/intcode.py | ed741db6a87696a5e6ec3c8c8a3fafa89e171c25 | [] | no_license | marxin/AoC2019 | 2ef5b79b37351e86be3e44c9d400332f6dae3ae0 | 2a76ec78908be2f3c3c145fef6e52ade11c48a7b | refs/heads/master | 2020-12-01T20:53:38.068563 | 2019-12-25T08:38:05 | 2019-12-25T08:38:05 | 230,766,575 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 14,335 | py | #!/usr/bin/env python3
import time
from termcolor import colored
import argparse
parser = argparse.ArgumentParser()
parser.add_argument('--verbose', '-v', help="Verbose mode", action = 'store_true')
args = parser.parse_args()
init_data = [1,380,379,385,1008,2663,456801,381,1005,381,12,99,109,2664,1101,0,0,383,1101,0... | [
"mliska@suse.cz"
] | mliska@suse.cz |
8b4bb1e31367dbdbdf9d7729b69f0ad00807b2cd | fe714f7a88e10a68a3fec1cbc71f599cce060f75 | /app/core/migrations/0004_recipe.py | cc0753743678e436a49dbf3427af67364747e121 | [
"MIT"
] | permissive | jfreites/recipe-app-api | 05d920f768e1e5e18e182b2f42dc43594f46367a | bac39edb4e991ff9ded7123fac72947aea051d60 | refs/heads/master | 2020-05-20T00:59:44.463382 | 2019-05-13T03:06:38 | 2019-05-13T03:06:38 | 185,301,303 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,042 | py | # Generated by Django 2.1.8 on 2019-05-10 02:40
from django.conf import settings
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
dependencies = [
('core', '0003_ingredient'),
]
operations = [
migrations.CreateModel(
... | [
"jonathanfreites@gmail.com"
] | jonathanfreites@gmail.com |
70de90d63d6dba4fe526a8189f6bd21ef4253959 | ca3a8405b5f7816a920239167271d07f629c5b17 | /TestScript.py | 3b283002d640981158e0a31ce51ec98e0bb30b0f | [] | no_license | fulingyue/BASIC-Compiler | 8526ac4e44a9868e733ebbb47527b9c60082bce0 | ca2028c539ce0c7896c3959ea1f4ac67892aa78c | refs/heads/master | 2022-12-01T19:06:28.830677 | 2020-08-12T15:26:02 | 2020-08-12T15:26:02 | 280,983,586 | 1 | 1 | null | 2020-08-12T15:26:03 | 2020-07-20T01:27:34 | Python | UTF-8 | Python | false | false | 17,411 | py | import pickle
import base64
import sys
import subprocess
import time
YOUR_BASEPATH = '/Users/zhengwenxin/Documents/Projects/BASIC-Compiler/ut'
VERBOSE = False
def info(s):
print('[Info] {}'.format(s))
def fatal(s):
print('[FATAL ERROR] {}'.format(s))
sys.exit(0)
def judge(testcase):
build_timeout = ... | [
"peterzheng98@sjtu.edu.cn"
] | peterzheng98@sjtu.edu.cn |
f04081756eb9ba8d511aca2091a3fe42671e693e | 6c16c8491a8abac379ff28536f2b9c2c091aa5db | /Shopping__list/product/views.py | 02baf364db8a388e03003eeceedfdc57388fb010 | [] | no_license | boblad/Shopping__list-api | 6e1155ec982f9d721bf47d5972d1ed95f8c713bc | 151e024267a517aaaaae8670e2511dac0025bee1 | refs/heads/master | 2021-01-11T03:48:28.130358 | 2016-11-03T01:13:35 | 2016-11-03T01:13:35 | 71,387,553 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 387 | py | from rest_framework import viewsets, permissions
from .models import Product
from .serializers import ProductSerializer
class ProductViewSet(viewsets.ModelViewSet):
"""
This viewset automatically provides `list` and `detail` actions.
"""
queryset = Product.objects.all()
serializer_class = Product... | [
"bryant.oblad@gmail.com"
] | bryant.oblad@gmail.com |
df061777bbbe5436fc79ed8e93342e5251ba95a9 | 1266478bc74f3e047d0daf9ed2d5866b2e8a53c3 | /product/models.py | d3eabfdbf21c40b6f548131f36a3587f05cb7ba1 | [] | no_license | LovellOduor/sokosnap | 1aca6d5ef48b631d9a0cc4828f334fa17a756f68 | 8fe182a05cffb704c6a76f41ffa322c656b4c87e | refs/heads/master | 2023-08-26T09:27:09.202761 | 2021-11-13T12:54:09 | 2021-11-13T12:54:09 | 427,603,326 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,488 | py | from io import BytesIO
from PIL import Image
from django.core.files import File
from django.db import models
from vendor.models import Vendor
# Create your models here.
class Category(models.Model):
title = models.CharField(max_length=255)
slug = models.SlugField(max_length=255)
ordering = models.IntegerF... | [
"lovelloduor123@gmail.com"
] | lovelloduor123@gmail.com |
52b7a97a86e49146f7f3ef3c7d9bf3828da9a5cc | 5fba0a806d1ee5afabc592937838064c8c7a3e7f | /1_LogicaDeProgramacao/0_Python/Matemรกtica/Fatorial/Fat.py | 78d982f7877cd76aeb4b9d257d07e27788395301 | [] | no_license | 8v10/eprussas | f1c0cfafd675aeb1b12564bdf3f1d6e79ac84501 | 9cc78df795a4061ad7dd516c9c0b0722734be7af | refs/heads/main | 2023-08-22T23:23:15.436844 | 2021-09-28T20:03:53 | 2021-09-28T20:03:53 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 189 | py | def fat():
n = int(input("Digite o valor de n: "))
fat = 1
i = 2
while i <= n:
fat = fat*i
i = i + 1
print("O valor de %d! รฉ =" %n, fat)
fat()
| [
"hugonbr@gmail.com"
] | hugonbr@gmail.com |
19cae4cc0bc2cac8d8a8ec5b24d0a80e97a38297 | 9307ec94479aebbcf94de8dfc8333cf25abd4dac | /test_random_forest.py | 169d5706f9cb42a71c6cea4943750f2dd6c7cc79 | [] | no_license | benshushanster/ML | 0fd47921226c350620c062e0b93f5ab764373d4e | cf2b335c58c0054ec852e9742437976b3b5428dc | refs/heads/master | 2020-05-22T00:56:14.542798 | 2019-06-03T13:12:08 | 2019-06-03T13:12:08 | 186,182,669 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 695 | py | import pandas as pd
from sklearn.ensemble import RandomForestClassifier
from sklearn.model_selection import train_test_split
from random_forest import *
df = pd.read_csv('./wdbc.data', header=None)
XX = (df.iloc[:, 2:]).values
y = (df.iloc[:, 1] == 'M').values
X_train, X_test, y_train, y_test = train_test_split(XX, ... | [
"yosib@fmr.co.il"
] | yosib@fmr.co.il |
1073395e48642ac49f344b37831c00808ef8b048 | 93876b3d22afc0f3e4c494da70b733300adc8865 | /assignment2/flexible.py | 41c7ea7a0098b5e6b0c1f1dfa1ea69443ad39ec6 | [] | no_license | rosieyzh/comp321 | f0b5e97e09441a20d19c8e6203f7e7c556421bd6 | bf19ca368123ec795861f147fc5565490d22466b | refs/heads/master | 2020-07-27T02:59:32.252796 | 2019-10-29T05:27:49 | 2019-10-29T05:27:49 | 208,845,929 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 456 | py | width, numPartitions = map(int, input().split())
#include 0 and total width along with intermediate partitions
locations = [0] + list(map(int, input().split())) + [width]
#form set of possible lengths to return
possibleLengths = set()
#add all possible differences between any two elements in the list
for i in range(... | [
"rosieyzh@gmail.com"
] | rosieyzh@gmail.com |
788fc8140ac1bb0e68a4ec88394046db4c91ea19 | ffedc925a6d939c2139284c076d5af8c0406da35 | /first/first/settings.py | 8ff05084b5cc6c03c538e73e1086a0a18c4a9a9d | [] | no_license | tandable/pythonLearning | de4f37a97fa8d0752a50de63ae75c3abc13bffe5 | 59bbc7c8d3ff704c08da59481c95ef4c51fd7160 | refs/heads/master | 2021-01-12T05:22:56.939564 | 2017-01-10T01:04:45 | 2017-01-10T01:04:45 | 77,916,405 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,117 | py | # -*- coding: utf-8 -*-
# Scrapy settings for first project
#
# For simplicity, this file contains only settings considered important or
# commonly used. You can find more settings consulting the documentation:
#
# http://doc.scrapy.org/en/latest/topics/settings.html
# http://scrapy.readthedocs.org/en/latest/t... | [
"tzh1994924@126.com"
] | tzh1994924@126.com |
d3663359b7f5cf3985402d58cdc6e64eb3235b86 | 13f0f2a860fe225063fe3ca274694a842063510d | /models/oc_svm.py | e6cef198a0f621545d57626fcbec6fe00472bcdc | [] | no_license | raywu0123/2d-classifier | 106e5262548acbe2007c612008cb57f666c6db0a | 56434bd9d27d7c333363f74d1978632d945edb7f | refs/heads/master | 2020-04-25T20:39:15.079066 | 2019-03-06T06:43:59 | 2019-03-06T06:43:59 | 173,055,341 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,356 | py | from math import ceil
from sklearn.svm import OneClassSVM
from sklearn.model_selection import train_test_split
import numpy as np
import torch
import torch.nn.functional as F
from .base import ModelBase
from .fc import FC_NET
class OCSVM(ModelBase):
def __init__(self, **kwargs):
super().__init__(**kwarg... | [
"b05901189@ntu.edu.tw"
] | b05901189@ntu.edu.tw |
6970f2a38603de1f026c3984679a342a89f5bac5 | 02b6241c0348bd3d4cd265e824bd1adbe44d31b6 | /app/utils/populate_db.py | 3ff8f4bbe04be157ce319daa2813f9c5f22c15b3 | [
"MIT"
] | permissive | martamatos/kinetics_db | 75d9239e24493455906b928c9a6651799bcd0210 | 2fd152a46be0b28d56d504a528b8a8b4f543dedd | refs/heads/master | 2022-12-12T08:56:49.251729 | 2021-02-10T01:58:53 | 2021-02-16T08:50:18 | 158,419,505 | 0 | 0 | NOASSERTION | 2022-12-08T01:23:44 | 2018-11-20T16:28:21 | Python | UTF-8 | Python | false | false | 17,954 | py | from app import create_app, db
from app.models import Compartment, Enzyme, EvidenceLevel, Mechanism, Metabolite, Model, Organism, Reaction, Reference, \
ReferenceType, EnzymeReactionOrganism, EnzymeReactionActivation, EnzymeReactionEffector, EnzymeReactionMiscInfo, \
EnzymeReactionInhibition, ModelAssumptions
f... | [
"marta.ra.matos@gmail.com"
] | marta.ra.matos@gmail.com |
6995432f50944a3705349c7e837f2c729fa89dbd | b80a223000f54cd3bf8e380755fcf5194e21a857 | /Cython/setup.py | e7076d4e3caf1fb80f3b1ee8f8ad2af2056eb274 | [] | no_license | shrimo/image_tools_core | 4bffb6c843286c9e3c2c4ace0e512021b281b74a | e71c76f7a8a2e275a0bb802f854fbda71d44c11f | refs/heads/master | 2021-01-01T06:05:38.006599 | 2013-01-14T02:41:03 | 2013-01-14T02:41:03 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 224 | py | from distutils.core import setup
from distutils.extension import Extension
from Cython.Distutils import build_ext
setup(
cmdclass = {'build_ext': build_ext},
ext_modules = [Extension("image_th", ["image_th.py"])]
)
| [
"victor.lavrentev@gmail.com"
] | victor.lavrentev@gmail.com |
dcaa4adc565585dd5489399df03c0ae414d9f0f4 | 054226ae5f71d1a6532a8e78c2c1e388b0c36f39 | /bugSystem/migrations/0007_bugreport_project_name.py | 14b2737ee7041695862eda5c865da907523e474c | [] | no_license | dhruv-agr/BEProj | a038a2cac9635709b24d2375a94f4b3b7f92686a | ea91b738356c22ee2aa701848c09ae576a349748 | refs/heads/main | 2023-04-09T07:26:08.538216 | 2021-04-14T17:13:02 | 2021-04-14T17:13:02 | 357,951,245 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 459 | py | # Generated by Django 3.1.7 on 2021-03-20 16:55
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('bugSystem', '0006_auto_20210319_2101'),
]
operations = [
migrations.AddField(
model_name='bugreport',
name='project_... | [
"dhruvagr15@gmail.com"
] | dhruvagr15@gmail.com |
c7e659d9e9a8e7e8dfbc7d9441bc17061fcd0beb | afcb4616285e73001809af1d6fcddaf179047cfe | /plot_acc_loss.py | ee46d82c84535919fcb63b8649f17c2e198705e7 | [] | no_license | ishworbogati/All-CNN | ab382e96e01c64bf90781cb363bd9b610669d744 | bdbdb7c7b05d3e231504ce7d914bf5811083a28a | refs/heads/master | 2020-07-03T16:27:30.235469 | 2017-10-27T14:05:50 | 2017-10-27T14:05:50 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 12,395 | py | import matplotlib.pyplot as plt
import pylab as pl
import pickle
import csv
# id = "LSUV"
# accs_epoch_path = id + "/" + "all_cnn_accs_epoch_" + id + ".acc"
# losses_epoch_path = id + "/" + "all_cnn_losses_epoch_" + id + ".loss"
# val_accs_epoch_path = id + "/" + "all_cnn_val_accs_epoch_" + id + ".acc"
# val_losses_ep... | [
"pan.atopos@gmail.com"
] | pan.atopos@gmail.com |
e3a2b46b6ac445de0addc621131cee4d5a408186 | f2e71426bd5a5bcaaa3edd401df127f0583e8cd4 | /H_Model/ๅคๅ
็บฟๆงๅๅฝ/PyTorchๅฎ็ฐ/็ฎๆดๅฎ็ฐ.py | 1c3e6c735aa3b1e8ea0853754206d2831c27fec6 | [] | no_license | YSQC/PythonCode | bd4f43ae114bfecc3f990aeb72682fe6f0adc4bb | f6ec62af9edcd796eedac3f48c08cd1e40a5456d | refs/heads/master | 2022-11-13T20:30:39.140474 | 2020-07-10T21:51:09 | 2020-07-10T21:51:09 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,912 | py | import torch
from torch import nn
import torch.utils.data as Data
from torch.nn import init
import torch.optim as optim
torch.manual_seed(1) # ้ๆบๆฐ็งๅญ
num_inputs = 2
num_examples = 1000
true_w = [2, -3.4]
true_b = 4.2
features = torch.normal(0, 1, size=(num_examples, num_inputs))
labels = true_w[0] * features[:, 0] + t... | [
"duanmengmengchongya@gmail.com"
] | duanmengmengchongya@gmail.com |
cf3056a4a62836b32ad6a1eacc1486d144ed50cf | 2d4240a03bfa47386677a78250df220c55a7bf6c | /PythonMachineLearning/chapter2/TrainingThePerceptronModel.py | b181ddc2be1063879537de6653298a8abeab9fe2 | [] | no_license | Falonie/Notes | c7976e9e7514e5d7cddf918c3c54442a89532aab | 38e980cb5170a696626085b72795a096679e972b | refs/heads/master | 2022-02-13T11:20:39.613115 | 2019-09-02T01:07:27 | 2019-09-02T01:07:27 | 99,218,947 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 269 | py | import matplotlib.pyplot as plt
from perceptron import Perceptron
from ch02 import x,y
ppn=Perceptron(eta=.1,n_iter=10)
ppn.fit(x,y)
plt.plot(range(1,len(ppn.errors_)+1),ppn.errors_,marker='o')
plt.xlabel('Epochs')
plt.ylabel('Number of misclassifications')
plt.show() | [
"falonie"
] | falonie |
7a032c4ffb124e564cbc8a62442cbe2e8dc11859 | f9b3d808cd11b25c8998b40b79608edc104e89c7 | /stud_login.py | 5d3e1f08030b4aef79c2ec953ae62e9c37d47d91 | [] | no_license | creativeKDR/StudentMangementSystem_with_Login | b53ea3ca54f2040e23ca9688a3129b90f3007cac | 8fc9109f3c58fb89cae5a10bd066180672d83cc3 | refs/heads/main | 2023-02-07T13:25:34.324715 | 2021-01-03T09:38:52 | 2021-01-03T09:38:52 | 326,369,786 | 3 | 0 | null | null | null | null | UTF-8 | Python | false | false | 8,509 | py | import mysql.connector
from tkinter import *
from PIL import ImageTk
from tkinter import messagebox, ttk
class Login:
def __init__(self, root):
self.root = root
self.root.title("Login")
self.root.geometry("1199x600+100+50")
self.root.resizable(False, False)
se... | [
"noreply@github.com"
] | noreply@github.com |
3f0a3b27cc1ee9e8a2ddfae7039cafc76d780269 | c31c38b567b5a5053e71d0112c069b2728f83582 | /setup.py | 034492e1e4ba614cc4cf8489fd443a60fa06ace1 | [] | no_license | TyberiusPrime/Dicodon_optimization | e79d301d4039b3fa4c3f22d8b5490c717bba4c79 | badeb4daff0984fb6d1481b854afd80d29329fb3 | refs/heads/master | 2022-11-06T11:06:44.893498 | 2020-06-25T08:42:00 | 2020-06-25T08:42:00 | 274,868,388 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 577 | py | # -*- coding: utf-8 -*-
"""
Setup file for dicodon_usage.
Use setup.cfg to configure your project.
This file was generated with PyScaffold 3.2.3.
PyScaffold helps you to put up the scaffold of your new Python project.
Learn more under: https://pyscaffold.org/
"""
import sys
from pkg_resources impo... | [
"finkernagel@imt.uni-marburg.de"
] | finkernagel@imt.uni-marburg.de |
f34538bf224f7201312c4135bfcb9262fe912466 | 0b95668f00d5f05c69b820496d2677e419c02486 | /checkouts/migrations/0005_auto_20170219_1859.py | c0bc09a8027134ee68429b8d17e92f6e609285b2 | [] | no_license | tossyn/anastat1 | 81bb64a762817ba1caa756ed66cda5e833930af6 | 35fc471f8b05ec19c75235da1048670ce7efbcb1 | refs/heads/master | 2021-01-17T15:43:46.434574 | 2017-03-10T19:15:34 | 2017-03-10T19:15:34 | 84,111,072 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 878 | py | # -*- coding: utf-8 -*-
# Generated by Django 1.9.7 on 2017-02-19 17:59
from __future__ import unicode_literals
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
dependencies = [
('affiliates', '0001_initial'),
('checkouts', '0004_au... | [
"tossyn02@yahoo.com"
] | tossyn02@yahoo.com |
04206a43e473277ea0624309a580106ec00c007b | c0ce890fbeb4a7737fd87cd07047d3e57da2e204 | /environs/djangoenv/viewslogreg.py | 5a22e7784830412a157199779af3ecf78b5b8c76 | [] | no_license | Infiriae/pythonstack | f4181f0f7321009cd35b2daf5cfd0d7e8f999d63 | 45fec0072105d70b72affdb815b6a004b3509b08 | refs/heads/master | 2023-05-28T13:04:11.928893 | 2021-06-11T22:11:53 | 2021-06-11T22:11:53 | 353,179,350 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,927 | py | from django.shortcuts import render, redirect
from django.contrib import messages
from .modelsclass import *
from bcrypt import *
def index(request):
return render(request,"index.html")
def success(request):
if "user_id" not in request.session:
return redirect('/')
context = {
"facebook_... | [
"kirkduhon@gmail.com"
] | kirkduhon@gmail.com |
af310949c8bb25850d8c527f702567a9a007a153 | 640fa6508e32a232987d086cb3da0893c99c062b | /venv/bin/pip3.9 | f03e43b8ac964409f94b6a98009ffcb2fb70316f | [] | no_license | Mini2Van/btre_project | 8c12d214f065f0a00a2543ac69cb47b263d7c97d | 1af30b3dad68767a0a61dbcaacc850005910f477 | refs/heads/main | 2023-04-18T23:14:29.782259 | 2021-05-04T14:11:51 | 2021-05-04T14:11:51 | 364,277,805 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 252 | 9 | #!/home/stephan/dev/btre_project/venv/bin/python3
# -*- coding: utf-8 -*-
import re
import sys
from pip._internal.cli.main import main
if __name__ == '__main__':
sys.argv[0] = re.sub(r'(-script\.pyw|\.exe)?$', '', sys.argv[0])
sys.exit(main())
| [
"stephanvanderwalt3@gmail.com"
] | stephanvanderwalt3@gmail.com |
e1c66866af5fe6e3f5b4b1b418c824bb84c61dc7 | d03eb3ea7e739802324b92833f4005150d60a9c4 | /dist/scrape_all.app/Contents/Resources/lib/python2.7/numpy/distutils/__config__.py | e982403e7a57de829781f279e769af7ca30164bf | [] | no_license | mahermassoud/dsa-project-scraper | 4fef53c6d6a49292207487cbad203433b8c48fcc | 4aba39a1fd27fe09d53afc26d711a9a4fc1a9a1a | refs/heads/master | 2021-03-27T16:38:34.991304 | 2017-01-05T21:19:41 | 2017-01-05T21:20:22 | 77,961,132 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,397 | py | # This file is generated by /private/var/folders/9m/dy7kzyp50fldn0ydz_9wj8180000gn/T/pip-build-GebRWF/numpy/-c
# It contains system_info results at the time of building this package.
__all__ = ["get_info","show"]
atlas_3_10_blas_info={}
atlas_3_10_blas_threads_info={}
atlas_threads_info={}
blas_opt_info={'extra_link_a... | [
"mahermassoud@gmail.com"
] | mahermassoud@gmail.com |
b00ac9227e00b2ab0c698ee1cbd5631b1fc2f832 | bac0ec9adca2c17e02da65d76eb56e270b69dd3a | /multipage1/multipage.py | adc7419270aa03a4340444d0256dbff25ac0f90c | [] | no_license | miguelrochabh/st_rocha | a7e0c63d716f25dd954920ac1eacd5670b4997ff | da350526ce96a0b35400b23d253aaf89b6e3a6d5 | refs/heads/main | 2023-06-17T11:30:33.122440 | 2021-07-14T13:14:06 | 2021-07-14T13:14:06 | 335,060,111 | 0 | 0 | null | 2021-02-01T19:26:25 | 2021-02-01T19:26:24 | null | UTF-8 | Python | false | false | 1,199 | py | """
This file is the framework for generating multiple Streamlit applications
through an object oriented framework.
"""
# Import necessary libraries
import streamlit as st
# Define the multipage class to manage the multiple apps in our program
class MultiPage:
"""Framework for combining multiple streamlit ap... | [
"jose.rocha@fazenda.mg.gov.br"
] | jose.rocha@fazenda.mg.gov.br |
4d0575b00916108e551507643d17db31afd73b54 | 0b01cb61a4ae4ae236a354cbfa23064e9057e434 | /alipay/aop/api/request/AlipayEbppPdeductSignAddRequest.py | 86e8b05744659d68438f3023124b0cc1e40d40f5 | [
"Apache-2.0"
] | permissive | hipacloud/alipay-sdk-python-all | e4aec2869bf1ea6f7c6fb97ac7cc724be44ecd13 | bdbffbc6d5c7a0a3dd9db69c99443f98aecf907d | refs/heads/master | 2022-11-14T11:12:24.441822 | 2020-07-14T03:12:15 | 2020-07-14T03:12:15 | 277,970,730 | 0 | 0 | Apache-2.0 | 2020-07-08T02:33:15 | 2020-07-08T02:33:14 | null | UTF-8 | Python | false | false | 12,513 | py | #!/usr/bin/env python
# -*- coding: utf-8 -*-
import json
from alipay.aop.api.FileItem import FileItem
from alipay.aop.api.constant.ParamConstants import *
class AlipayEbppPdeductSignAddRequest(object):
def __init__(self, biz_model=None):
self._biz_model = biz_model
self._agent_channel = None
... | [
"liuqun.lq@alibaba-inc.com"
] | liuqun.lq@alibaba-inc.com |
5dabb5c2d2400386c20c190cc32c345c207ca06c | 448f92f43098f2bca8a15f75a91dff8edc667d30 | /results/fiat-binance/3/plot_one.py | 50f3c6fc6b0c0dbbc00e99c70ed4829c9825e9e7 | [] | no_license | Tradent/cryptopool-simulator | 21591f85e8e83d88fe98c0545f20fdd72ffb8cad | e17cf6fe8537068731e2bc37d4475bfff29c1cf8 | refs/heads/main | 2023-07-24T00:12:35.218258 | 2021-08-28T12:02:20 | 2021-08-28T12:02:20 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 435 | py | import json
import sys
import pylab
if len(sys.argv) > 1:
fname = sys.argv[1]
else:
fname = 'results.json'
with open(fname) as f:
results = json.load(f)
x = []
Z = []
for row in results['configuration']:
# APY
# liq_density
x.append(row['gamma'])
# Z.append(row['Result']['APY'])
Z.ap... | [
"michwill@gmail.com"
] | michwill@gmail.com |
1f39f79bbfe66cf0ce55b6405e0a1ca7999896c7 | f632a6707f07fcc7ae04f4010790d129a1bd7673 | /QAsite/QAsite/settings.py | 8d369903137b31a4a073b32adce345680f4c74a4 | [] | no_license | Santhu195/Q-A-Python-site | 9b22551017426ab341bad452b4bf7da58c4c75c6 | bb52787faf7991e9a319c8db08ac835389ab4723 | refs/heads/master | 2022-12-10T16:36:34.863397 | 2019-12-29T07:03:31 | 2019-12-29T07:03:31 | 230,704,111 | 0 | 0 | null | 2022-12-08T03:21:56 | 2019-12-29T04:49:31 | Python | UTF-8 | Python | false | false | 3,260 | py | """
Django settings for QAsite project.
Generated by 'django-admin startproject' using Django 3.0.
For more information on this file, see
https://docs.djangoproject.com/en/3.0/topics/settings/
For the full list of settings and their values, see
https://docs.djangoproject.com/en/3.0/ref/settings/
"""
import os
# Bu... | [
"noreply@github.com"
] | noreply@github.com |
54300f480d3a8ee655612441481d696d6532dcf4 | ac633ec8cf42a8d0dbfcc95b7df3dcc0701aacdd | /v15/src/eval_unet.py | a1770e1e383b09b5ae2b26ee754dd3e37c3df04c | [] | no_license | tky-wsd/CenterNet | eb37debcac72b1cbda07e2dfae75bbf6a6fb3a18 | 6bb4bd0b9faebc7ea4ea0fce29bbcfbe5e9c44f5 | refs/heads/master | 2020-11-27T08:14:51.169944 | 2020-01-15T15:10:29 | 2020-01-15T15:10:29 | 229,366,542 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,969 | py | #!/usr/bin/env python
# -*- coding: utf-8 -*-
import argparse
import numpy as np
import matplotlib.pyplot as plt
import torch
import torch.nn as nn
from dataset import TestDataset
from driver import Evaluater
from unet import StackedUNet
from head_net import HeatmapNet, ObjectSizeNet, DepthNet, YawNet, PitchNet, Roll... | [
"noreply@github.com"
] | noreply@github.com |
fe8a0324428e7e2b9d317debc40fbdb973f74fcd | 17502974f95465c4cce41343ac9a91511cd9fc22 | /aoc/day05.py | 91fb29a734e8dea41a53e992ae49a3a8bae4625d | [] | no_license | jangroth/adventofcode | ebe86b6b39e503e3dda9fa580458468bd4fd8486 | 872635ff9cedc4fecb39c1d2287caffec45c53eb | refs/heads/master | 2020-04-09T17:48:34.825839 | 2018-12-12T11:20:49 | 2018-12-12T11:20:49 | 160,491,936 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,507 | py | import sys
class AlchemicalReduction:
def __init__(self, path):
with open(path) as f:
content = f.readlines()
self.content = [x.strip() for x in content]
sys.setrecursionlimit(50000)
def _is_match(self, two_letters):
first = two_letters[0]
second = two_lett... | [
"jan.groth.de@gmail.com"
] | jan.groth.de@gmail.com |
4d86d567418021ca56c5beb0432c631977639bc9 | f9d5f6e8e0021b03a3429605a059375a8d9193d1 | /package_from_installed.py | 7ef04fd8d2a902ffa3083ab2919a1a238e378d9b | [] | no_license | ftahmed/msvc2013onwine | a1d195e2828cce4117a95c325bddeb2b45b27443 | 996659d63be12696e092b40d946882a403d123e7 | refs/heads/master | 2021-01-17T22:18:46.268568 | 2015-05-12T20:27:42 | 2015-05-12T20:27:42 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 9,278 | py | # Copyright 2014 The Chromium Authors. All rights reserved.
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
"""
From a system-installed copy of the toolchain, packages all the required bits
into a .zip file.
It assumes default install locations for tools, in parti... | [
"ehsan@mozilla.com"
] | ehsan@mozilla.com |
d1d9d993c26ae3c749bd4f9afb49800aefeedb7b | c34d3dfeb068b1a8d7b017d352c91ec9401f115b | /experiment/tak/text2command/tutorial/venv/bin/ftfy | 060b4650d6eed19d0baefae8dbede2227b788770 | [] | no_license | HiroIshikawa/speech2craft | ef6c54359f513f5aefe801ae43f2588c8981d891 | 7717aed4942999780164b8c9060e1dc7bd502c1d | refs/heads/master | 2021-01-19T21:59:30.406605 | 2017-06-27T14:59:12 | 2017-06-27T14:59:12 | 88,735,488 | 4 | 0 | null | null | null | null | UTF-8 | Python | false | false | 463 | #!/Users/hiro99ishikawa/Dropbox/school_projects/6spring2017/175/project/experiment/spacy_tutorial/venv/bin/python3
# EASY-INSTALL-ENTRY-SCRIPT: 'ftfy==4.4.2','console_scripts','ftfy'
__requires__ = 'ftfy==4.4.2'
import re
import sys
from pkg_resources import load_entry_point
if __name__ == '__main__':
sys.argv[0] ... | [
"hiro52ishikawa@gmail.com"
] | hiro52ishikawa@gmail.com | |
9d5cd4d39746e36575e2c46ba730425e62f9eb3e | 0f411d2942a669a87476b93c905451fcc54e98f4 | /selectionSort.py | f2bbdc2709b4729c028f7da5576976aba419cefc | [] | no_license | kartikarora1/python | 57f60b061d4a39362285b0574924e8c75edeabbc | 83575a7925b581af097e7ab282b321794839af7f | refs/heads/main | 2023-03-02T07:26:21.782765 | 2021-02-10T16:33:58 | 2021-02-10T16:33:58 | 323,261,599 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 299 | py | import sys
A = [64, 25, 12, 22, 11]
for i in range(len(A)):
min_idx = i
for j in range(i+1, len(A)):
if A[min_idx] > A[j]:
min_idx = j
A[i], A[min_idx] = A[min_idx], A[i]
print ("Sorted array")
for i in range(len(A)):
print("%d" %A[i]), | [
"noreply@github.com"
] | noreply@github.com |
488cc25f3e057e4d4e5c2f5515b8c69b37e885ad | 3851985ce5793de321c8a6d7eacf889a5c4d89e4 | /aries_cloudagent/core/tests/test_plugin_registry.py | 92ec76a398807d161e315d9e6b3ed2472e3f3324 | [
"LicenseRef-scancode-dco-1.1",
"Apache-2.0"
] | permissive | Nick-1979/aries-cloudagent-python | af812069c648f064e5fac05616b7b4910ab921ed | de322abbeaf16a7ca9769d31f9d030c0fb2846a5 | refs/heads/master | 2021-04-21T07:48:23.066245 | 2020-03-24T16:45:43 | 2020-03-24T16:45:43 | 249,762,233 | 1 | 0 | Apache-2.0 | 2020-03-24T16:40:53 | 2020-03-24T16:40:52 | null | UTF-8 | Python | false | false | 1,490 | py | from asynctest import TestCase as AsyncTestCase, mock as async_mock
from ...config.injection_context import InjectionContext
from ...utils.classloader import ClassLoader
from ..plugin_registry import PluginRegistry
class TestPluginRegistry(AsyncTestCase):
def setUp(self):
self.registry = PluginRegistry(... | [
"cywolf@gmail.com"
] | cywolf@gmail.com |
55f4773d5e3f52d85712d210c0de646b4bb8b70b | d9d6d137d847105507672c0b1626b2c4b64ef563 | /qt_vlc_player.py | 1f98a4f880c1ec591b3af6c1bde69453a54555e0 | [] | no_license | artcifra/qt_vlc_player | 3344b0e76f4c481e5cbd41383eb1b884b25d23d1 | 20ac6904596a57c8c08e35f633fc067e66089c79 | refs/heads/master | 2021-09-21T22:25:08.004660 | 2018-09-01T18:57:24 | 2018-09-01T18:57:24 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 7,381 | py | #! /usr/bin/python
#
# Qt example for VLC Python bindings
# Copyright (C) 2009-2010 the VideoLAN team
#
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation; either version 2 of the License, or
# (at... | [
"jar0m@yandex.com"
] | jar0m@yandex.com |
cb2a5412d51b17474528a4ba2f9d2d94ea92eebc | 0875d9c4ed9bec3794aee6435eb49243ab84ac05 | /Machine Learning/IntroduccionML/Algoritmos/IntroNaiBayes.py | 585620de183a3130d4a01fb50e23576251775e90 | [] | no_license | AngelSosaGonzalez/IntroduccionMachineLearning | b49ba29a717bd2c3bbd6c93615d3ef3bc5e1561d | d9e13efe5703e6a6375a971c87fd000ba98024c7 | refs/heads/main | 2023-03-05T14:08:23.066293 | 2021-02-20T04:31:34 | 2021-02-20T04:31:34 | 327,723,090 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,230 | py | """ Naive Bayes: En un sentido amplio, los modelos de Naive Bayes son una clase especial de algoritmos de clasificaciรณn de Aprendizaje
Automatico, o Machine Learning, tal y como nos referiremos de ahora en adelante. Se basan en una tรฉcnica de clasificaciรณn estadรญstica llamada
โteorema de Bayesโ. Ahora ahora antes de ... | [
"angelsosagonz@gmail.com"
] | angelsosagonz@gmail.com |
4000866a1dc84f0a2b314069621d805455d54b1a | a3a887ca8c5dfcf594f2bd002c2e50275ea8f918 | /missing_positive.py | 077cf11819125c0db5e290a414e6905f69c65258 | [] | no_license | vigneshvijay95/ssv | b5d8903d797f90d5fb1ca9600273ebdf5f89d3da | 0518627dca4a2286d0ade393c9b7ff2ad4710362 | refs/heads/master | 2023-04-14T10:23:37.164761 | 2021-04-12T04:43:31 | 2021-04-12T04:43:31 | 344,751,692 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 522 | py | class Solution(object):
def firstMissingPositive(self, nums):
i = 0
nums = [0] + nums
for i in range(len(nums)):
while nums[i]>=0 and nums[i]<len(nums) and nums[nums[i]]!=nums[i]:
nums[nums[i]],nums[i] = nums[i],nums[nums[i]]
num = 1
for i ... | [
"vignesh@5gindia.net"
] | vignesh@5gindia.net |
246bb7f168b5065356537b94195d5efaf12a94de | b63638f72c9ea5a00981f393d747102de532c38a | /3.py | aa63e9df3d1ba00fa570c69c4065bd5505286640 | [
"MIT"
] | permissive | Nika1411/Laba21 | b45893982d5c2dbb127034f3a13e83ecea20d492 | 2bbce3cc06b4348145aafe37b6dedc25ede56db7 | refs/heads/main | 2023-05-04T19:14:03.695755 | 2021-05-28T09:00:53 | 2021-05-28T09:00:53 | 362,077,108 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 651 | py | #!/usr/bin/env python3
# -*- config: utf-8 -*-
from tkinter import *
def rem():
global l1_flag
if l1_flag == 1:
l1.grid_remove()
l1_flag = 0
else:
l1.grid()
l1_flag = 1
def forg():
global l2_flag
if l2_flag == 1:
l2.grid_forget()
l2_flag = 0
e... | [
"niksel99.99@mail.ru"
] | niksel99.99@mail.ru |
5650104f810a270b0667179b4ddcce2860b9be30 | 72cc55e9599276203a99ba3e5dc211559b00ad76 | /book_liveblog/wsgi.py | 4c6fee4e22d83f50aa6c89a06c96105b42e32244 | [] | no_license | hanzhichao/django_liveblog | b551cfacc8e0991728aefddc10f54d5a20d0692c | 0a58ebcfb5fd102b7d83d025c6131aef81923a5c | refs/heads/master | 2021-09-05T22:52:03.262756 | 2018-01-31T13:49:57 | 2018-01-31T13:49:57 | 104,088,838 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 403 | py | """
WSGI config for book_liveblog 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.8/howto/deployment/wsgi/
"""
import os
from django.core.wsgi import get_wsgi_application
os.environ.setdefault("DJANGO... | [
"han_zhichao@sina.cn"
] | han_zhichao@sina.cn |
5a5b44d7f3f64701e827a9e1c2bc072ceeebff79 | d34d3157012d6c27b6bc4463e756005312b5f7b8 | /InterestCalculator.py | 2324cb16551a2d55062e276b224ecbfd93477574 | [] | no_license | Meormy/PIAIC_Assignments_1 | 5b62f9af12f8fee010adf3d55cac6da6cda982fb | d169ffbd85814817d64ae8972232a37d16bc19e0 | refs/heads/master | 2020-06-06T16:29:48.603614 | 2019-06-19T18:56:41 | 2019-06-19T18:56:41 | 192,792,534 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 436 | py | # A = Total Accrued Amount (principal + interest)
# P = Principal Amount
# I = Interest Amount
# r = Rate of Interest per year in decimal; r = R/100
# R = Rate of Interest per year as a percent; R = r * 100
# t = Time Period involved in months or years
# Equation:
# A = P(1 + rt)
P = int(input("Enter Amount : "))
R = ... | [
"prince24780@gmail.com"
] | prince24780@gmail.com |
761605fc02af5cce09f7a2158471a868f7208623 | da41c625cb9b6e2deae29b70ff730f4c1ad3c90f | /code-II/pval.py | a53fdecc77c90399c6e981abbdcd65a9b2eb32c1 | [] | no_license | thak123/ML2016 | bb07a52b16709bf7b82d760dc90af29f94162bfc | 88f1702890f92ba5542ee73f770e6eba74067319 | refs/heads/master | 2020-04-05T23:28:39.599560 | 2016-07-10T16:36:32 | 2016-07-10T16:36:32 | 63,007,568 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 627 | py | import pandas as pd
import matplotlib.pyplot as plt
import numpy as np
from sklearn import cross_validation
from sklearn.preprocessing import Imputer,StandardScaler
df= pd.read_csv('breast-cancer-wisconsin.data.txt',na_values=["?"])
imr = Imputer(missing_values='NaN', strategy='median', axis=0,copy=False)
... | [
"noreply@github.com"
] | noreply@github.com |
62e64dfe9d700d8ec7b1cead731218ebd10a44ea | bb970bbe151d7ac48d090d86fe1f02c6ed546f25 | /arouse/_dj/db/backends/oracle/compiler.py | a098adba42b387847e1a7ea80c74a94da3510a2b | [
"Python-2.0",
"BSD-3-Clause"
] | permissive | thektulu/arouse | 95016b4028c2b8e9b35c5062a175ad04286703b6 | 97cadf9d17c14adf919660ab19771a17adc6bcea | refs/heads/master | 2021-01-13T12:51:15.888494 | 2017-01-09T21:43:32 | 2017-01-09T21:43:32 | 78,466,406 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,048 | py | from arouse._dj.db.models.sql import compiler
class SQLCompiler(compiler.SQLCompiler):
def as_sql(self, with_limits=True, with_col_aliases=False, subquery=False):
"""
Creates the SQL for this query. Returns the SQL string and list
of parameters. This is overridden from the original Query ... | [
"michal.s.zukowski@gmail.com"
] | michal.s.zukowski@gmail.com |
a27d5d8af270a654ded5ce5a4130f7bad3dffe0a | 2e9dbde82d0f9a215d30ee4a807cc5afe4ad848e | /clock/profiles/middleware.py | 1ef4e6c8eed256e32552917668cf7d25d7261ccc | [
"MIT"
] | permissive | mimischi/django-clock | b053788249ec47b23fc2f741be30b896f54ab149 | 3914da6a48b89cb80ab5205c6ce1c279012472fe | refs/heads/develop | 2020-04-04T06:00:47.981324 | 2018-05-27T12:29:05 | 2018-05-27T12:29:05 | 43,012,938 | 6 | 4 | MIT | 2018-05-27T12:29:06 | 2015-09-23T16:25:29 | Python | UTF-8 | Python | false | false | 1,219 | py | from django.conf.urls.i18n import is_language_prefix_patterns_used
from django.middleware.locale import LocaleMiddleware
from django.utils import translation
from clock.profiles.models import UserProfile
class LocaleMiddlewareExtended(LocaleMiddleware):
"""This middleware extends Djangos normal LocaleMiddleware ... | [
"gecht.m@gmail.com"
] | gecht.m@gmail.com |
498e9af00a73cf1f71cbf81f6d19da86078aa56d | 8613ec7f381a6683ae24b54fb2fb2ac24556ad0b | /70~79/ABC071/bnot.py | 9ea6b41f33667b764a8a5f3a347a202be7a65d15 | [] | no_license | Forest-Y/AtCoder | 787aa3c7dc4d999a71661465349428ba60eb2f16 | f97209da3743026920fb4a89fc0e4d42b3d5e277 | refs/heads/master | 2023-08-25T13:31:46.062197 | 2021-10-29T12:54:24 | 2021-10-29T12:54:24 | 301,642,072 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 135 | py | s = input()
for i in range(26):
if s.count(chr(ord("a") + i)) == 0:
print(chr(ord("a") + i))
exit()
print("None") | [
"yuuya15009@gmail.com"
] | yuuya15009@gmail.com |
cc4a801b9cd994a38cdb96196ab9d09fa4b737bf | fd7f4f5c3ef8f8d68aee656d118e430a70997d2a | /p3/q7_convert_milliseconds.py | 0aaa2e042af22a63fad0c1606758f1aea2bc8c8f | [] | no_license | nika02/cp2019 | 247c69b7f5acac921680c4eb012345a50faf0adf | c6a9586c4c46277f7e67951978343fa11192396f | refs/heads/master | 2020-04-24T00:40:56.677753 | 2019-03-09T13:36:29 | 2019-03-09T13:36:29 | 171,573,528 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 318 | py | def convert_ms():
millis = input("Enter time in milliseconds: ")
millis = int(millis)
seconds = (millis/1000)%60
seconds = int(seconds)
minutes = (millis/(1000*60))%60
minutes = int(minutes)
hours = (millis/(1000*60*60))%24
print ("%d:%d:%d" % (hours, minutes, seconds))
convert_ms()
| [
"noreply@github.com"
] | noreply@github.com |
c1822abbd117f6d943c4dc65a8e8d5819bf13eab | b84dcd64646c9c7c1b64fda926e75be753ce78cf | /Pliki/gui_example.py | 68ee4ddf204d09f814e70437d6410a59a52c8b3e | [] | no_license | ArkadiuszRolnik/pythonalx | 698d83c0bd7e1cab4a95e83c27ea5aa2ece6d5ad | 364a9326e5dc27bfd9baebfc69674672ef2372e5 | refs/heads/master | 2020-08-23T12:07:55.579320 | 2020-02-05T11:40:38 | 2020-02-05T11:40:38 | 216,612,879 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 535 | py | import tkinter
import math
def pierwiastkuj():
liczba = int(pole.get())
pierwiastek = math.sqrt(liczba)
wynik.configure(text=pierwiastek)
root = tkinter.Tk()
label = tkinter.Label(master=root, text='Wpisz liczbฤ: ')
label.grid(row=1, column=1)
pole = tkinter.Entry(master=root)
pole.grid(row=1, column=2)
b... | [
"arkadiusz.rolnik@gmail.com"
] | arkadiusz.rolnik@gmail.com |
01685e34519add8afc1e36755d0898f33d70cf65 | 73080297f786cbe2fb619a83e1dccaaa4d6e20f8 | /Test_ScheduledFlight.py | 6835d4231c25b4438e549858719d2c65084c3dd1 | [] | no_license | shery322/FleetAssignment | 33a4979327636ed4033d35fb04e4c60a290838bb | 41b496efeebcab746fe6a9c85b64c024e16bceab | refs/heads/master | 2023-03-17T03:11:15.141630 | 2017-04-16T08:10:09 | 2017-04-16T08:10:09 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,182 | py | import csv
import string
import copy
flight = []
result = []
turnTime = 30 #depends on Aircraft Type -- A319 = 30 mins
AircraftType = []
Max_AirType = []
ErrorFlight = []
def readToArray(file):
lines = []
for line in file.xreadlines():
lines.append(string.split(line, ','))
return lines
def convertToMin(timeStri... | [
"noreply@github.com"
] | noreply@github.com |
4a161baab83c6d84c995e162f59e9f0e9bdc1354 | 1a4c6b3fc58976d4a7d144c88447f901f39a2d5e | /source/HelloSayerLibPythonTests.py | f017c36ba4666e7b62a9eb02f0e11c0b85666ca3 | [] | no_license | danzimmerman/pybind-boostdll-minimal | 147d7a10fb30fbe765ee368fce755ed9fa929c37 | 37522446d022e7a69b93e6b5151bd84841c4b10d | refs/heads/main | 2023-06-27T00:45:03.615032 | 2021-07-21T14:16:39 | 2021-07-21T14:16:39 | 287,328,709 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 602 | py |
import sys
import os
sys.path.append(os.environ['HELLOSAYER_PYTHON_PATH'])
def header(msg, width=100, char='-'):
print('\n'+f' {msg} '.center(width, char)+'\n')
wd = 100
header('HelloSayerLibPythonTests.py trying to load HelloSayerLib')
header('Using directory specified with system env var \'HELLOSAYER_PYTHON_P... | [
"dan@polarworks.no"
] | dan@polarworks.no |
97134dfc038cff5b6ec5d60bfc0a730ff06f9dc1 | 5028c243dd00cecc757c8a6df6d25eb4b2ee8cfa | /game.py | c7fb4a5a56f225fd7722500617ceff8dcc78f02c | [] | no_license | rotwem/ex9 | e50a6ef3c200ab0cff933149c53841ca729d178d | 66fd87bfed45af73a40e394b6b3f406a6b5b4e6b | refs/heads/main | 2023-01-31T21:17:15.571000 | 2020-12-19T17:49:03 | 2020-12-19T17:49:03 | 322,557,693 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,136 | py | import sys
import json
from helper import *
from board import Board
from car import Car
VALID_CAR_NAMES = ["Y", "B", "O", "W", "G", "R"]
VALID_CAR_LEN = [2, 3, 4]
VALID_CAR_ORIENTATION = [0, 1]
VALID_CAR_MOVEMENTS = ["u", "d", "r", "l"]
class Game:
"""
A class of objects of "rush hour" game.
each game ah... | [
"rotwem@gmail.com"
] | rotwem@gmail.com |
b2752676dc368bf1edfcca13a05dff4b1d09244d | 4ce2cff60ddbb9a3b6fc2850187c86f866091b13 | /tfrecords/src/wai/tfrecords/object_detection/core/batcher_test.py | 1e22a572cceb6031539e660c79130b2c7b99c527 | [
"Apache-2.0",
"MIT"
] | permissive | 8176135/tensorflow | 18cb8a0432ab2a0ea5bacd03309e647f39cb9dd0 | 2c3b4b1d66a80537f3e277d75ec1d4b43e894bf1 | refs/heads/master | 2020-11-26T05:00:56.213093 | 2019-12-19T08:13:44 | 2019-12-19T08:13:44 | 228,970,478 | 0 | 0 | null | 2019-12-19T03:51:38 | 2019-12-19T03:51:37 | null | UTF-8 | Python | false | false | 5,985 | 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 applica... | [
"coreytsterling@gmail.com"
] | coreytsterling@gmail.com |
63711209521fad7319f9b149368d98cd68af6e2d | 7eaeb103035ae5c64cdfa73447522a4727f76033 | /Data_Analysis/Full_Data_Set/TestCustomTree/TestEZ.py | b5c4ff9a6883607f6a057eee79fed0d52622e7d7 | [] | no_license | gablabc/BlazeML | 7ff8d103ec03358ba68a5d2d4ee9d4f568ea3e58 | 7e2f35c0af13059b3055ba45c0ccfcd1c8d259d2 | refs/heads/master | 2020-06-21T13:42:33.683074 | 2019-08-16T20:34:28 | 2019-08-16T20:34:28 | 197,469,579 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,807 | py | #!/usr/bin/env python3
# -*- coding: utf-8 -*-
"""
Created on Wed Jul 3 13:33:16 2019
@author: gabriel
"""
import CustomTree as ct
import numpy as np
from matplotlib import cm as cm
import matplotlib.pyplot as plt
from sklearn.tree import DecisionTreeClassifier
import blackBoxClasses as bb
## Latex Font ##
from ma... | [
"gabriel.laberge@polymtl.ca"
] | gabriel.laberge@polymtl.ca |
107df7a0e5ce28dc0a41353af47e8273ee9ee549 | ce76b3ef70b885d7c354b6ddb8447d111548e0f1 | /work_or_world/right_group/work_or_part/young_life/world/new_thing_or_small_woman.py | 21ff767cbbc1678056687a4bb608c2f90f9a18ff | [] | no_license | JingkaiTang/github-play | 9bdca4115eee94a7b5e4ae9d3d6052514729ff21 | 51b550425a91a97480714fe9bc63cb5112f6f729 | refs/heads/master | 2021-01-20T20:18:21.249162 | 2016-08-19T07:20:12 | 2016-08-19T07:20:12 | 60,834,519 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 190 | py |
#! /usr/bin/env python
def year_or_work(str_arg):
world(str_arg)
print('number')
def world(str_arg):
print(str_arg)
if __name__ == '__main__':
year_or_work('come_child')
| [
"jingkaitang@gmail.com"
] | jingkaitang@gmail.com |
d9acb6046dfbc3236d8937d16f0d309fed1f6164 | b06e21f2731fd1000fbe5694312aa9cebf543809 | /ElectronPhononCoupling/core/ddbfile.py | 935e1037cec2ce342aed7719a77cf2a39c0006d5 | [] | no_license | Maruf001/ElectronPhononCoupling | 932be124a58b1d49ebbdb5655ea7e30fcf9b6e20 | 434be79b20397bcc8ab4789f7fbde9de55deca77 | refs/heads/master | 2023-03-17T09:42:27.631568 | 2021-01-06T21:37:06 | 2021-01-06T21:37:06 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 18,980 | py |
from __future__ import print_function
__author__ = "Gabriel Antonius, Samuel Ponce"
import os
import warnings
import numpy as np
from numpy import zeros
import netCDF4 as nc
from .mpi import MPI, comm, size, rank, mpi_watch
from .constants import tol5, tol6, me_amu, kb_HaK
from .functions import get_bose
from . i... | [
"gabriel.antonius@gmail.com"
] | gabriel.antonius@gmail.com |
6952b1775abb6da3d5e8a2011184eec4be160387 | 4c7da646fbb93c88798487a3080436793d419493 | /tango_with_django_project/populate_rango.py | 8cab09755a17a37e6b2ab3e5b6d1d5b5b41c5eee | [] | no_license | GregoryWinchester/WebStackDjangoPythonGregW | 1bcf71fde1297aeccf22f4137e5218e7a4ec1f8b | c6512b63fadc17b8a6e7ff1ccef4454efb2b017c | refs/heads/master | 2021-01-11T01:15:06.719294 | 2016-10-21T22:22:35 | 2016-10-21T22:22:35 | 70,735,158 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,988 | py | import os
os.environ.setdefault('DJANGO_SETTINGS_MODULE',
'tango_with_django_project.settings')
import django
django.setup()
from rango.models import Category, Page
def populate():
# First, we will create lists of dictionaries containing the pages
# we want to add into each category.
... | [
"rollins49@yahoo.com"
] | rollins49@yahoo.com |
1b73078d1d7d2d126bc1056c0f228f9e34e0a606 | a97195134da12e1e68b862c59040428df04b9ea2 | /FakeNewsDetection.py | 151069408b03563802f3805a05a24df02936a766 | [] | no_license | PoonamPatwardhan/My-ML-Journey | 8361a8a2346a044cfdb38c1d8f436e0f63ddf384 | 9cca48e4193428d05176229159ff0d5be18fcbc0 | refs/heads/master | 2023-04-07T14:14:55.753256 | 2021-04-17T14:52:39 | 2021-04-17T14:52:39 | 192,114,413 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,124 | py | import nltk
import nltk.data
from nltk import word_tokenize, pos_tag, ne_chunk
import os
import os.path
import urllib2
from fuzzywuzzy import process
from fuzzywuzzy import fuzz
import re
headline=raw_input("Enter the news headline: ")
terms=['Avalanches','Landslides','Earthquakes','Sinkholes','Volcanic eruptions','Vo... | [
"noreply@github.com"
] | noreply@github.com |
feca762dc850af0ee94fb079e31fde7e04d3d5c5 | a42eef4b76cbbf72ed684bc6cc6bf7c1ff017323 | /letterRecog/Displaying_letters/preProcessing.py | a064d8a6ee9761c8baad70499ac2a4e5ccf5534d | [] | no_license | sakethgetla/neural_networks | 5b53fe9af076bb76679a687c23bd7acb46b1c4ec | 50f2501bdd8d15ecb81f000be0c323dc7b595fb0 | refs/heads/master | 2022-05-08T23:51:19.404601 | 2022-04-04T05:57:07 | 2022-04-04T05:57:07 | 145,842,605 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 694 | py |
import pickle
import gzip
import numpy
import matplotlib.pyplot as plt
#f = gzip.open('../train-images-idx3-ubyte.gz', 'rb')
f = gzip.open('../data/mnist.pkl.gz', 'rb')
u = pickle._Unpickler(f)
u.encoding = 'latin1'
training_data, validation_data, test_data = u.load()
#training_data= u.load()
#print(training_data)
pr... | [
"Saketh.getla@gmail.com"
] | Saketh.getla@gmail.com |
a9298b5a6ccd581226c2b508678daf7a0288d332 | d2c92cfe95a60a12660f1a10c0b952f0df3f0e8e | /zz91mobile/mobile/pingpp/certificate_blacklist.py | 420deff41b859b0b1c656b590b60a8b8b9d0878d | [] | no_license | snamper/zzpython | 71bf70ec3762289bda4bba80525c15a63156a3ae | 20415249fa930ccf66849abb5edca8ae41c81de6 | refs/heads/master | 2021-12-21T16:12:22.190085 | 2017-09-30T06:26:05 | 2017-09-30T06:26:05 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 968 | py | import hashlib
from pingpp.error import APIError
BLACKLISTED_DIGESTS = [
'05c0b3643694470a888c6e7feb5c9e24e823dc531',
'5b7dc7fbc98d78bf76d4d4fa6f597a0c901fad5c'
]
def verify(certificate):
"""Verifies a PEM encoded certificate against a blacklist of known revoked
fingerprints.
re... | [
"2496256902@qq.com"
] | 2496256902@qq.com |
2415e2c79f2b1251bd7bc2da3359d5b15c8bc723 | abf04257eee53cd309801812b5af18fb8193bd7d | /FisicaComputacional/TerceraPractica/4.py | 1aac8a205d9438e22331a86f9e6fa9f44c2d58d8 | [] | no_license | Antszz/TrabajosUniversidad | 8614024743232b6cd9bd2a54e2cb79f720d4f293 | 006978f852868eb54c322e5b4bb005ba97e3485d | refs/heads/master | 2023-08-31T08:54:53.336991 | 2021-09-15T17:18:32 | 2021-09-15T17:18:32 | 295,745,463 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 639 | py | import matplotlib.pyplot as plt
import numpy as np
from mpl_toolkits.mplot3d import Axes3D
h = 0.00001
r=8
m=5
pos = [[0],[-r],[0]]
velocidad = [[4],[0],[0]]
a = [0,2]
tiempo = 20
pt = np.arange(0, tiempo, h)
for i in pt:
x = pos[0][-1]
y = pos[1][-1]
pos[0].append(x + velocidad[0][-1]*h)
pos[1].appe... | [
"esanchezh@unsa.edu.pe"
] | esanchezh@unsa.edu.pe |
620f38fbf8ca9e388e3590edd4e7d86ff5bfc380 | 19f18ac3e8308b500e5120d64a7ea46fe01f2e1c | /board/app_employment/migrations/0002_auto_20211122_1809.py | 755b15a6c1ac3281b4a5d5f3ecefa3bf1a5d0294 | [] | no_license | TitanVA/Skillbox_Django_framework | d85cc0d56e61fe77a687ffcf1e6a0429e29d4684 | bdcbd7112a4ff170b958b9ff2eb35efc62789a59 | refs/heads/master | 2023-09-03T04:32:08.168686 | 2021-11-23T17:38:05 | 2021-11-23T17:38:05 | 430,752,052 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 471 | py | # Generated by Django 3.0.4 on 2021-11-22 15:09
from django.db import migrations
class Migration(migrations.Migration):
dependencies = [
('app_employment', '0001_initial'),
]
operations = [
migrations.AlterModelOptions(
name='vacancy',
options={'permissions': (('... | [
"32422942+TitanVA@users.noreply.github.com"
] | 32422942+TitanVA@users.noreply.github.com |
c6e6c24df26d2435fa5881288418404746eaa8e0 | 4bb74a2f4112d357ea40bd2cae3958f95d183ccd | /graphs_ble_vs_bluetooth.py | 3c7f0e0c7483ed9834ccbb8845668532ae72b91f | [] | no_license | Abel1027/Classic-Bluetooth-vs-BLE | 1068897f3640f7b9bf910bc5dbf9f217f60caf57 | 4192e9920cbba6fb7ef56c5a0d296245ef99a988 | refs/heads/main | 2023-03-02T14:17:41.280291 | 2021-02-15T20:42:25 | 2021-02-15T20:42:25 | 302,707,671 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 8,917 | py | import matplotlib.pyplot as plt
import os
if not os.path.isdir('graphs'): os.mkdir('graphs')
logs_dirs = os.listdir('logs')
x = []
time = []
inq_find_sc = []
collision = []
inq_energy = []
sc_energy = []
for index, log_dir in enumerate(logs_dirs):
file = open('logs/' + log_dir + '/bluetooth0.log')
lin... | [
"noreply@github.com"
] | noreply@github.com |
9ea296767e1557de0a4f4913f45b4b01c53f2940 | 665add8c434df0445294931aac7098e8a0fa605b | /ch5/designer/connect.py | 2cc9044ec0e4fa25e176af549690aa94c514b07e | [] | no_license | swkim01/RaspberryPiWithIOT | f43cef567ca48f2ce9deec0cba87fa801dcbcbe2 | d4b5c9aeb09490429a551f357d3c83ab04deed82 | refs/heads/master | 2023-04-14T20:04:33.924243 | 2023-04-12T05:15:32 | 2023-04-12T05:15:32 | 48,477,439 | 4 | 14 | null | null | null | null | UTF-8 | Python | false | false | 3,111 | py | # -*- coding: utf-8 -*-
# Form implementation generated from reading ui file 'connect.ui',
# licensing of 'connect.ui' applies.
#
# Created: Wed Aug 28 17:40:14 2019
# by: pyside2-uic running on PySide2 5.11.2
#
# WARNING! All changes made in this file will be lost!
from PySide2 import QtCore, QtGui, QtWidgets
... | [
"swkim01@gmail.com"
] | swkim01@gmail.com |
d0a0b77add9ce4350defd0465176aaddd1f9ef0f | 905fe19ade14b8d3c0865375ea397b4d77ee8fad | /resnet.py | e42607984b3394161fc980a863259db2c4f2194a | [] | no_license | imSeaton/ResPRE | 0f2f381a41890d8361700c3bad9013a4967ec5a0 | f917e55c7a5e121b36e533bcde0250133847a357 | refs/heads/master | 2023-03-18T07:32:12.802559 | 2019-05-20T04:31:48 | 2019-05-20T04:31:48 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,061 | py | # -*- coding: utf-8 -*-
"""
Created on Tue Dec 26 16:40:25 2017
@author: lee
"""
import torch.nn as nn
import torch.nn.functional as F
import math
import torch
def conv3x3(in_planes, out_planes):
"""3x3 convolution with padding"""
return nn.Conv2d(in_planes, out_planes, kernel_size=3,
padd... | [
"742978494@qq.com"
] | 742978494@qq.com |
7bf98c286a1ea5b67caef02f49147b68a2c65ed7 | 85b8a52f1be2c4838f885f0e5a4d6963f4109dfe | /codes_/0242_Valid_Anagram.py | 2e9af90a62a0b06ef6ba06c0cf8cb3861493ee08 | [
"MIT"
] | permissive | SaitoTsutomu/leetcode | 4cc5bac4f983b287ec1540d188589ce3dd6e409a | 4656d66ab721a5c7bc59890db9a2331c6823b2bf | refs/heads/master | 2023-03-12T11:37:29.051395 | 2021-02-27T06:11:34 | 2021-02-27T06:11:34 | 281,815,531 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 312 | py | # %% [242. *Valid Anagram](https://leetcode.com/problems/valid-anagram/)
# ๅ้ก๏ผ2ใคใฎๆๅญๅใใขใใฐใฉใ ใใฉใใใ่ฟใ
# ่งฃๆณ๏ผcollections.Counterใ็จใใ
class Solution:
def isAnagram(self, s: str, t: str) -> bool:
return collections.Counter(s) == collections.Counter(t)
| [
"tsutomu7@hotmail.co.jp"
] | tsutomu7@hotmail.co.jp |
c578616a06d886e8e81a97484ef6910c987b84e0 | 05b7a6e9281e5d9bbe2d53424b140a1c3a90d0bc | /Assignment 3 - Alex Hill - Programming for engineers.py | 9b8a9043f9d08395c552c8243e5743a19b1342df | [] | no_license | alex21347/Programming_for_Engineers_Course-2019 | 4233dcdb016c2df9bae741824290cba2abc409d3 | 913acac811adc8a44c2c57ef28a9cee4ea593739 | refs/heads/main | 2023-01-04T17:29:33.052568 | 2020-10-15T10:31:37 | 2020-10-15T10:31:37 | 304,130,589 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,673 | py | #!/usr/bin/env python
# coding: utf-8
# In[257]:
#get_ipython().run_line_magic('matplotlib', 'inline')
import numpy as np
from matplotlib import pyplot as plt
from scipy import stats
from scipy.optimize import curve_fit
# ### Review Exercise 1: Curve Fitting
# In[256]:
data= np.array(np.loadtxt("sample_data/sig... | [
"noreply@github.com"
] | noreply@github.com |
fcbe0b0483c7be4cf157ac4849209de4b43c7adb | db4ccd48e61d9896a28e432700192ba9fb64d2e7 | /uploads/courses/2017/08/config.py | 217d4045ab873aedb38176536b30bbe85ca97769 | [] | no_license | nicecodee/MxOnline | 4f9faf8349a7bbdb204a9481bfef4c6cf1034b4e | 0f608188ec0f5c23960118ed33fafcf53932bf14 | refs/heads/master | 2021-01-19T13:36:03.624533 | 2017-09-05T05:07:55 | 2017-09-05T05:07:55 | 100,842,944 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 711 | py | # encoding: utf-8
import os
import pymysql
DEBUG = True
SECRET_KEY = os.urandom(24)
#ๆฐๆฎๅบ้
็ฝฎ
HOSTNAME = '127.0.0.1'
PORT = '3306'
DATABASE = 'movie'
USERNAME = 'root'
PASSWORD = '123456'
DB_URI = 'mysql+pymysql://{}:{}@{}:{}/{}?charset=utf8'.format(USERNAME,
... | [
"freefor5@gmail.com"
] | freefor5@gmail.com |
6f8d7f79ae2f5d413b5c52f275ac6df44ed75515 | 2dde2794dc614832cdeb8e49cdadd179ee9e519d | /Day 012 Project: Number Guessing Game/number_guessing_artwork.py | 1d8195da69e1dd56d50183e49a9293473ef7a284 | [] | no_license | DanielPinha/Python_100_Challenge_Code | 4849cbb27ccf5d1200ec13d2723a447c2d2c0637 | 9a9f726f57d117d6ecc9820bc783374a7d31f9f7 | refs/heads/main | 2023-03-02T08:17:43.901824 | 2021-02-09T23:06:13 | 2021-02-09T23:06:13 | 315,781,357 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 720 | py | logo = '''
_____ _ _ _ _ _ _
/ ____| | | | | | \ | | | | | |
| | __ _ _ ___ ___ ___ | |_| |__ ___ | \| |_ _ _ __ ___ | |__ ___ _ __| |
| | |_ | | | |/ _ \/ __/ __| | __| '_ \ /... | [
"drjpinha@gmail.com"
] | drjpinha@gmail.com |
f39522c90ee5c90e568447d46a0ae4fb18ada2d1 | 0604b216f171189423d0d803adbbcb71f5e8f695 | /list comprehension1.py | 794f412f668d0a488c1b5c0440682d3da46cb99e | [] | no_license | rahulraju69/Python-IntershipFiles | e97d95a3f8cb871c1d818d539447df3632791a04 | 432dedf1470026165ea270aa56b123d8c0bd35a7 | refs/heads/master | 2023-03-08T07:48:23.424756 | 2021-01-31T09:53:59 | 2021-01-31T09:53:59 | 334,621,174 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 177 | py | #without list compr
print("without list compr")
ch=[]
for i in "welcome":
ch.append(i)
print(ch)
print("\n")
print("with list compr")
ch1=[i for i in "welcome"]
print(ch)
| [
"rahulraju9550@gmail.com"
] | rahulraju9550@gmail.com |
7b5fab80e1143105de1a68890b298324888571ba | bb6c6ffc9d6675559003362b79da75651476e53e | /gomeo2o_dev/src/gomeo2o_pro/venus_script/check_dubbo_version/main.py | e46d2bc923c16c9a4278e60cdf7b1528ba20de0c | [] | no_license | lyh20093867/venus-python | 88df395f81bc7fb85ee69f1f3206571968630823 | 120ba74c143a7908dcd770afaa69485d575ee92c | refs/heads/master | 2021-01-07T04:13:29.049840 | 2017-11-10T07:07:20 | 2017-11-10T07:07:20 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,127 | py | #!/usr/bin/python
# -*- coding: utf-8 -*-
import planlist
from client import ZkClient, RedisClient
from operation import ZkOperate, RedisOperate, FileOperate
import config
if __name__ == "__main__":
TMP = config.configs['tmp_dir']
zk = ZkClient().get_client()
redis = RedisClient().get_redisclient()
red... | [
"wangchangye@gomeplus.com"
] | wangchangye@gomeplus.com |
3101f4b4d66bc96addf9fdcaea38f55c99999bca | e4638ff152796e13f5d176c3aa303246bc57fced | /ontask/migrations/0033_auto_20180829_0940.py | 9cee4f91ea8ff26b9f7ad6702ef99420218c36f6 | [
"MIT",
"LGPL-2.0-or-later",
"Python-2.0",
"BSD-3-Clause",
"Apache-2.0"
] | permissive | LucasFranciscoCorreia/ontask_b | 8989ec86905d308e929b6149b52b942321be2311 | 5473e9faa24c71a2a1102d47ebc2cbf27608e42a | refs/heads/master | 2020-07-25T16:52:00.173780 | 2019-09-13T23:31:28 | 2019-09-13T23:31:28 | 208,359,655 | 0 | 0 | MIT | 2019-09-13T23:00:53 | 2019-09-13T23:00:52 | null | UTF-8 | Python | false | false | 414 | py | # -*- coding: utf-8 -*-
# Generated by Django 1.11.14 on 2018-08-29 00:10
from __future__ import unicode_literals
from django.db import migrations
class Migration(migrations.Migration):
dependencies = [
('ontask', '0032_auto_20180829_0939'),
]
operations = [
migrations.AlterUniqueTogeth... | [
"abelardo.pardo@gmail.com"
] | abelardo.pardo@gmail.com |
65d83d7fb37d7ab7e181deebe5c031e3ca1caa30 | 41360d2a3bb5b494ee51dcfa037e5ed0cd8bfcdb | /pypunisher/example_data/__init__.py | 91cb1b7e5cae0ee8230a659199e82d70bdd2f319 | [
"BSD-3-Clause"
] | permissive | UBC-MDS/PyPunisher | e080bb0ef68ddc80647aceb7e26b0e6ca2626654 | e286d3a7992389c3d704a3c85ac0a4daec6b0100 | refs/heads/master | 2021-05-02T07:23:21.861009 | 2018-08-08T16:54:04 | 2018-08-08T18:10:06 | 120,826,733 | 22 | 7 | BSD-3-Clause | 2018-03-17T21:17:20 | 2018-02-08T22:39:01 | Python | UTF-8 | Python | false | false | 101 | py | from pypunisher.example_data._example_data import X_train, X_val, y_train, y_val, true_best_features
| [
"cates.jill@gmail.com"
] | cates.jill@gmail.com |
bb73a74e478645d27cb42c92fc496f1ae9244225 | 2cb38da99470a5d3063f1961b71882e9a61bda7d | /main/migrations/0003_auto_20200228_1611.py | 2099d0389121f5936f494aadcfda033e63a2619e | [] | no_license | Augustab/ProgramvareUtvkling-TDT4140 | e33167f03d278a0f5d1084e9e3980e6554b2ee31 | e2d4a932000e799bcc58da2f0432ca9eb14c8c05 | refs/heads/master | 2022-12-09T10:08:11.601007 | 2020-08-27T17:14:09 | 2020-08-27T17:14:09 | 290,803,233 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 587 | py | # Generated by Django 3.0.3 on 2020-02-28 15:11
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('main', '0002_auto_20200228_1558'),
]
operations = [
migrations.RemoveField(
model_name='booking',
name='room',
... | [
"augbir@gmail.com"
] | augbir@gmail.com |
ed90d91c0a690435f4bbf9117408444ce8a9d497 | 1eb650af4c90e91fe222a6e1251517ce5114924a | /Rabin-Karp.py | be545f0888a4c6506580d57898a127ab7017ab03 | [] | no_license | rahulotwani/AlgoLab | 6fb740d3c4935320bf49ed06b42bab602b129434 | 57f8f702e2285e6465a48b8345606980b21a0a86 | refs/heads/master | 2020-09-02T23:35:44.811304 | 2019-11-10T22:48:22 | 2019-11-10T22:48:22 | 219,332,133 | 1 | 1 | null | 2019-11-10T22:47:32 | 2019-11-03T16:40:09 | Python | UTF-8 | Python | false | false | 740 | py | d=256
def search(pat,txt,q):
m=len(pat)
n=len(txt)
i=0
j=0
p=0
t=0
h=1
for i in range(m-1):
h=(h*d)%q
for i in range(m):
p = (d * p + ord(pat[i]))% q
t = (d * t + ord(txt[i]))% q
for i in range(n-m+1):
if p==t:
... | [
"rahul@RAHUL.localdomain"
] | rahul@RAHUL.localdomain |
7e25a96700cf91cac44a590dab054dbb0d049013 | 9743d5fd24822f79c156ad112229e25adb9ed6f6 | /xai/brain/wordbase/verbs/_twinned.py | d2947990b7968c1468d068757b1b53885272e675 | [
"MIT"
] | permissive | cash2one/xai | de7adad1758f50dd6786bf0111e71a903f039b64 | e76f12c9f4dcf3ac1c7c08b0cc8844c0b0a104b6 | refs/heads/master | 2021-01-19T12:33:54.964379 | 2017-01-28T02:00:50 | 2017-01-28T02:00:50 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 228 | py |
from xai.brain.wordbase.verbs._twin import _TWIN
#calss header
class _TWINNED(_TWIN, ):
def __init__(self,):
_TWIN.__init__(self)
self.name = "TWINNED"
self.specie = 'verbs'
self.basic = "twin"
self.jsondata = {}
| [
"xingwang1991@gmail.com"
] | xingwang1991@gmail.com |
fe3662dcd8f362491af0c4761067ffe9eed642c7 | 9f0f5816b9d810c9ce01c56588024e1c804809fe | /study/day3/day3_3.py | 9fc5cd1c0a6e16afeeab8578680ad7c92ea6c11c | [] | no_license | parkwisdom/Python-Study-step1 | bf8cc8c5f89bfb9ccbb395a3827e23d4f0d6ae9a | bae2f5653c5a0d1eac1d4b89476ece7e0802d33b | refs/heads/master | 2020-04-03T13:49:58.990930 | 2018-10-30T00:37:29 | 2018-10-30T00:37:29 | 155,300,210 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,885 | py | import re
# re.compile('\\white')#\white
pat = re.compile('Java|Python')
res=pat.match('Python')
print(res)
res=pat.match('Java')
print(res)
res=pat.match('PythonJava')
print(res)
res=pat.match('PythonRuby')
print(res)
res=pat.match('RubyPython')
print(res)
print(re.search('How','How are you'))
print(re.search('are','... | [
"43980901+parkwisdom@users.noreply.github.com"
] | 43980901+parkwisdom@users.noreply.github.com |
b41393c778a7e708a4314aeb3546527b2a56570c | 2fb0939c6dcbe96c6e1d06240947f8cdd678558f | /merge_images.py | 20e5f315c28b8c820ddeb559c7debc4bb9ddc569 | [
"MIT"
] | permissive | codehack9991/VOCOWA | e942307237407f6f29e81dd10529f90128680608 | 96fb44ae2bd936f3d3f052c2c5e733582cd9117e | refs/heads/master | 2020-03-29T03:59:56.348517 | 2018-09-22T09:56:58 | 2018-09-22T09:56:58 | 149,510,576 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,513 | py | from operator import add
from numpy import subtract
from PIL import Image, ImageMath
def merge(name_img1, name_img2, position_wrt_img1=(0, 0)):
"""
Merges two images. Currently, works for -ve position too
:param name_img1: Image 1
:param name_img2: Image 2
:param position_wrt_img1: Merging w.r.t.... | [
"noreply@github.com"
] | noreply@github.com |
561c59cb6921571ab17b2ee2a118855b2be3a846 | 0c5686bb1fb56825c04e005bfbaced00c0234711 | /dice_game.py | 907100f6b24b8c3c69e577e80195230371e5ac1e | [] | no_license | givan991/hello-world | c81f5b15a8dd6ae41534d64f78f78eee2014befc | ad5c0a6f59de7c728b5a8624923002a0a6e33cd5 | refs/heads/main | 2023-08-24T15:14:53.363105 | 2021-10-19T17:08:45 | 2021-10-19T17:08:45 | 413,185,853 | 0 | 0 | null | 2021-10-03T20:26:25 | 2021-10-03T20:10:20 | null | UTF-8 | Python | false | false | 426 | py | import random
def roll_dice():
dice_total = random.randint(1,6) + random.randint(1,6)
return dice_total
player1 = input("Enter player 1's name: ")
player2 = input("Enter player 2's name: ")
roll1 = roll_dice()
roll2 = roll_dice()
print(player1, 'rolled', roll1)
print(player2, 'rolled', roll2)
if roll1 == r... | [
"ivan.gnjidic@gmail.com"
] | ivan.gnjidic@gmail.com |
47c2c3d706674d36d2e15fa9fd99cbd6aa7e8634 | 0179aa7d1a6ea99f6191e596e23a4ac900de979f | /gcp/evaluation/dtw_utils.py | b9ef712e91a591cb92dc3c1385638cac8c4430ed | [] | no_license | Douxation/video-gcp | 562aa10caf68fe6fe0bd53a5989e95746de3c93c | 4608a543fe60c550363de864be7a38c4f663836a | refs/heads/master | 2022-12-04T15:44:23.105262 | 2020-07-10T19:48:20 | 2020-07-10T19:48:20 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 9,889 | py | import numpy as np
import torch
from scipy.spatial.distance import cdist
from math import isinf
try:
import gcp.evaluation.cutils as cutils
except:
pass
def dtw_dist(x, y, dist=None, warp=1, w=np.inf, s=1.0):
"""
Computes Dynamic Time Warping (DTW) of two sequences.
:param array x: N1*M array
... | [
"oleh.rybkin@gmail.com"
] | oleh.rybkin@gmail.com |
52204b935fd6b9b184312ae4316b28dff3026ecb | 427f51f49a40b0088f484ee4f401e8bc60ab5464 | /Data_Scientist_Course/finding_donors/ENV/bin/f2py | 7923c20f9b626e6491d0cf3a946dd6638fcb6a57 | [] | no_license | benzispawn/Python_Programs | e28a3972ccf79f0f55072df1e5e1100a15bcf8de | c6e790620d09776cdf2eabfc0fba16ea7487561c | refs/heads/master | 2021-09-22T01:29:18.569485 | 2018-09-04T15:44:36 | 2018-09-04T15:44:36 | 115,713,914 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 834 | #!/home/raphael/Documents/Python_Programs/Data_Scientist_Course/finding_donors/ENV/bin/python2
# See http://cens.ioc.ee/projects/f2py2e/
from __future__ import division, print_function
import os
import sys
for mode in ["g3-numpy", "2e-numeric", "2e-numarray", "2e-numpy"]:
try:
i = sys.argv.index("--" + mod... | [
"spawnbenzi@gmail.com"
] | spawnbenzi@gmail.com | |
cfef12e59b6332652df2064a0e8075d5a1e76e96 | fa4f5430afa78966c7cbf9911f2b1bbce5b99a36 | /examples/developer/fuel_tank/continuous_switched_test.py | cb20484e8ff1edb49c63070e64b8a480aacbe88c | [
"LicenseRef-scancode-warranty-disclaimer",
"BSD-3-Clause",
"BSD-2-Clause"
] | permissive | necozay/tulip-control | 2afa43388ad7b4ddad11cdf53309e976fbd583a7 | 33a24c3398856c44515d27048ea047e99bc84f05 | refs/heads/master | 2021-01-21T08:55:08.845850 | 2016-06-03T15:35:49 | 2016-06-03T15:35:49 | 14,001,612 | 1 | 0 | null | 2016-07-01T14:22:09 | 2013-10-30T22:30:41 | Python | UTF-8 | Python | false | false | 2,638 | py | """test hybrid construction"""
import logging
logging.basicConfig(level=logging.INFO)
import time
import numpy as np
import matplotlib as mpl
mpl.use('Agg')
from tulip import abstract, hybrid
from polytope import box2poly
input_bound = 0.4
uncertainty = 0.05
cont_state_space = box2poly([[0., 3.], [0., 2.]])
cont_... | [
"jfilippidis@gmail.com"
] | jfilippidis@gmail.com |
d5a2e05d62c198765b91307a863274b9f23873a4 | ac4643d7d289fed9e10476878f695cc424357a39 | /shortist/admin.py | 2c17aa83dfcfc4d4353f2b1a4c9d06530ddf5d79 | [] | no_license | timlst/url-shortener | 817c9fa7a872c8a7ee2868ac706f68a7379b5a3a | cf4db3a6a421f2ed7a45bfea56c07e60596d359e | refs/heads/master | 2023-07-17T03:30:37.816694 | 2021-09-03T19:36:07 | 2021-09-03T19:36:07 | 402,202,007 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 859 | py | from flask import (
Blueprint, flash, g, redirect, render_template, request, url_for
)
from shortist.auth import login_required
from shortist.db import get_db
"""
The admin panel that allows viewing all registered links.
"""
bp = Blueprint('admin', __name__, url_prefix='/admin')
@bp.route('/')
@login_required
d... | [
"tim.storm@gmx.net"
] | tim.storm@gmx.net |
be6d2a6215a689e7eebd4c265744d108678c5d5b | a2a4c206fecfdb73ce395981fffab2c1f8477e82 | /app/Sidama/manage.py | 2269ae99658835efd0e4cb2b705de39597778db1 | [] | no_license | SeanPlacchetti/sidama | 35da6a3a9c30287dfe90833cbbf7bf6b6c554ed2 | 35d0a6635f71c89ca06910a8305553c3d0c8faf3 | refs/heads/master | 2021-01-24T17:14:17.025584 | 2019-07-07T18:52:04 | 2019-07-07T18:52:04 | 32,695,459 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 249 | py | #!/usr/bin/env python
import os
import sys
if __name__ == "__main__":
os.environ.setdefault("DJANGO_SETTINGS_MODULE", "Sidama.settings")
from django.core.management import execute_from_command_line
execute_from_command_line(sys.argv)
| [
"Sean.P.Placchetti@gmail.com"
] | Sean.P.Placchetti@gmail.com |
a1871e79a671a23650678ab544d3670d32970a65 | 448bef42a21077dfee8f251f97f230933b8f3d1c | /settings/MainImports.py | 5454af50477d6c7aead6cd5df0441279d420db89 | [] | no_license | AraignPirate/Password_Assistent | b6fd5ff8272837fb1072e1ed3768aa701e101512 | a65ca25d6376727f10cbe57ec43e5aa46dc73d28 | refs/heads/main | 2023-07-02T02:10:30.503797 | 2021-08-04T16:10:51 | 2021-08-04T16:10:51 | 382,283,201 | 3 | 0 | null | null | null | null | UTF-8 | Python | false | false | 858 | py | #Gui Imports
from Modules.AppLogging import Logging
Logging("MAINIMPORTS").info("Loading Dependencies")
from kivy.core.clipboard import Clipboard
from kivymd.toast import toast
from kivymd.app import MDApp
from kivy.metrics import dp
from kivy.lang import Builder
from kivy.clock import Clock
from kivy.animation import ... | [
"araignpirate@gmail.com"
] | araignpirate@gmail.com |
9e3e51956d0ed12c978798dd9f47b92aa4150d8d | 92238d56bf3d148a4e6906acf0151f3388214177 | /restapi/urls.py | deaf42a7e26e437d4857fbf175901d6e55351347 | [] | no_license | fbriones92/practica18 | de91670f12eff9f8f4f2bd96291e49fc850ad893 | bf568d3ceb32e6a5efefa280f061fe6b1e6a9013 | refs/heads/master | 2021-08-22T03:38:22.112901 | 2017-11-29T11:03:56 | 2017-11-29T11:03:56 | 112,429,206 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 260 | py | '''
Created on 17 may. 2017
@author: Frank
'''
from django.conf.urls import url
from restapi.views import EmpleadoViewSet
urlpatterns = [
url(r'^empleado/(?P<pk>\d+)/', EmpleadoViewSet.as_view()),
url(r'^empleado/', EmpleadoViewSet.as_view()),
] | [
"primer1grupo@gmail.com"
] | primer1grupo@gmail.com |
6b87f507408b3fc904e01f2243e6137866d10c72 | f7258525ad6c311a138a82fc59c4d84e318cc30f | /book1/aa.py | ea38e13a6b2d90fbb8e0d06ce860a7287256fa16 | [] | no_license | lianzhang132/book | e358ae555de96e36dbf9ac6c1f7f887444d91e81 | 71ed81a6464997c77dd75b4849ef6eecf7a2e075 | refs/heads/master | 2020-07-11T03:18:07.352745 | 2019-08-26T08:45:16 | 2019-08-26T08:45:16 | 204,434,003 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,174 | py | class Auther(models.Model):
nid = models.AutoField(primary_key=True)
name= models.CharField(max_length=32)
age=models.IntegerField()
authorinfo=models.OneToOneField(to="Auther_info",on_delete=models.CASCADE)
def __str__(self):
return (self.name)
class Auther_info(models.Model):
nid = m... | [
"2327431669@qq.com"
] | 2327431669@qq.com |
9d624822f191f69d3ae6ab1626aeb7249f4fd576 | 58674e0ea4f0faa70892db30627fda006c3dc478 | /Beginner/1142_pum.py | bd7377ef1b0d54912d25817579562ecf7b743a10 | [] | no_license | ShekhRaselMasrurAhmmadNissan/URI-Online-Judge | fe0f176987f63dc342d741de34c52b10edb3f6f6 | 1554d12a0338850ba1f07f401633390815e505b2 | refs/heads/main | 2023-02-23T10:36:42.935212 | 2021-01-25T14:21:26 | 2021-01-25T14:21:26 | 325,745,290 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 349 | py | count = int(input())
start_point = 1
joined_number = []
joined_string = ''
for i in range(count):
for number in range(start_point, start_point + 3):
joined_number.append(number)
joined_number.append('PUM')
joined_string = ' '.join(map(str, joined_number))
print(joined_string)
joined_number.... | [
"shekhraselmasrurahmmadnissan@gmail.com"
] | shekhraselmasrurahmmadnissan@gmail.com |
5622157af69ab2a58ffd5fe42a97224c1602cac5 | efb027157157197994271b7a31708cc7fb126afc | /hello.py | 4987714c7f50ac8893f21fb99e3834f0ecc851fb | [] | no_license | tonytaylor/udacity-devops-flask-continuous-delivery | 5237bebafa3e06263dc8b3c20ec5d0cef08f780a | c687297759d6d3ed9ada4d7cdde82d7ea6a846da | refs/heads/main | 2023-02-24T06:14:46.678296 | 2021-01-31T17:55:14 | 2021-01-31T17:55:14 | 332,598,863 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 105 | py |
def toyou(x):
return "hi %s" % x
def add(x):
return x + 1
def subtract(x):
return x - 1
| [
"tony@tonetaylor.com"
] | tony@tonetaylor.com |
c21bd8969f19661596417384368b73af89834334 | 69d357e1dfcb9be0e90880d9af00586d303e23aa | /main/migrations/0004_auto_20210411_1953.py | 547ac2ff0c91be1707e66c65fdd34e5e47b7eb9a | [] | no_license | dariya908/Online_cinema | c3dae890ef8f1d1776bbc57ea3d575666fe93b1a | 6f9700bac25c71551914c1f64fe5bfe2736a71d7 | refs/heads/master | 2023-04-09T09:30:46.464199 | 2021-04-21T13:26:08 | 2021-04-21T13:26:08 | 358,621,120 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,265 | py | # Generated by Django 3.2 on 2021-04-11 13:53
from django.conf import settings
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
dependencies = [
migrations.swappable_dependency(settings.AUTH_USER_MODEL),
('main', '0003_auto_20210411... | [
"kerimalievadariya@gmail.com"
] | kerimalievadariya@gmail.com |
c53e5df67df7bec4f8985d7c6f95ad4dd447589f | 3371260b4209ad6528cd434ea6b3adfdfe972653 | /train_model.py | 7514044d0c7435e06eb1ce54c4b932bef9e63fab | [] | no_license | brienna/arxiv | 81943e447be685fa75308f7d2ca8373476b2c0c0 | 57fb76eefe59b2144fead14a376d0290bc322b59 | refs/heads/master | 2022-01-14T15:40:32.701432 | 2019-07-12T21:47:09 | 2019-07-12T21:47:09 | 123,757,159 | 8 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,211 | py | import gensim, os, numpy, mpld3, pandas as pd, matplotlib.pyplot as plt
from sklearn.manifold import TSNE
def main():
with open('corpus.txt', 'r') as f:
# do some pre-processing and return list of words for each title
for i, line in enumerate(f):
yield gensim.utils.simple_preprocess(lin... | [
"brienna.herold@gmail.com"
] | brienna.herold@gmail.com |
ee54017965f0fb2efb9cc3413e5324e14f4fad02 | a5488d6ed467493e3d4104e728f1fc74fdf37718 | /enviarnotificacion/urls.py | 0a16e13f95172b04661ed75cc775ac24d13eb747 | [] | no_license | Astivik-IT/ECPPF | 53565c4030c489145e6718448b0ee7dff143cc9c | 5106f64f04e8a045fb1a8ae24d6d1eb326d3119a | refs/heads/master | 2021-06-19T14:38:52.507826 | 2019-05-24T21:11:52 | 2019-05-24T21:11:52 | 188,479,373 | 0 | 0 | null | 2021-06-10T21:28:55 | 2019-05-24T19:49:51 | CSS | UTF-8 | Python | false | false | 116 | py | from django.urls import path
from . import views
urlpatterns = [
path('', views.upload_file, name='index'),
]
| [
"51002658+Astivik-IT@users.noreply.github.com"
] | 51002658+Astivik-IT@users.noreply.github.com |
7b64769558d2289317314543419e07fade2628ca | 155ab3ed394669fa552e6bcb47ad9ae62519c028 | /Arcade/Python/34 - multiplicationTable.py | efe69edc398e1e10b349046b3ff45dd73382cdb0 | [] | no_license | rbiegelmeyer/CodeFights-Python | e3336b9249c55b0bd44ca81917ee38557ab06adc | e0e63f14677db9741a0531fdc8aa6e44d2155f33 | refs/heads/master | 2021-09-28T22:05:07.442470 | 2018-11-20T21:10:45 | 2018-11-20T21:10:45 | 108,603,059 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 91 | py | def multiplicationTable(n):
return [[(x+1)*(y+1) for x in range(n)] for y in range(n)]
| [
"robertobiegel@gmail.com"
] | robertobiegel@gmail.com |
07927933d87cca2c0edfb097fd90c96a8cd255df | cb4bcda7f2487a393d348c2373b75d44b634a45e | /warmup-1/sleep_in/sleep_in_test.py | a6166beb0af8d8ba73ca0862b739bcd1cd6be2ff | [] | no_license | navarrjl/coding_bat | 6180c48fb0a60dc8a6e9313fd206845b820e11e4 | 9cee0cdad679dbaad0aa29e0f4b8da276d5158f6 | refs/heads/main | 2023-04-28T19:12:02.206383 | 2021-05-06T15:15:41 | 2021-05-06T15:15:41 | 341,987,331 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 905 | py | # import the code to be tested
from sleep_in import sleep_in
def describe_the_sleep_in_function():
def it_lets_us_know_if_we_can_sleep_in_or_not():
# should return True because we are on vacation
is_weekday = True
is_on_vacation = True
assert sleep_in(is_weekday, is_on_vacation... | [
"77976844+navarrjl@users.noreply.github.com"
] | 77976844+navarrjl@users.noreply.github.com |
410bb29639ebcc51003884b5c567fb3451c74f12 | 3dcc44bf8acd3c6484b57578d8c5595d8119648d | /MOVED_TO_ROSETTA_TOOLS/pdb_util/read_pdb.py | acd9665f3b78b4dcff882cfab945127df48531b7 | [] | no_license | rhiju/rhiju_python | f0cab4dfd4dd75b72570db057a48e3d65e1d92c6 | eeab0750fb50a3078a698d190615ad6684dc2411 | refs/heads/master | 2022-10-29T01:59:51.848906 | 2022-10-04T21:28:41 | 2022-10-04T21:28:41 | 8,864,938 | 0 | 3 | null | null | null | null | UTF-8 | Python | false | false | 948 | py | #!/usr/bin/python
# quick and dirty PDB reader
def read_pdb( filename ):
coords = {}
pdb_lines = {}
sequence = {}
for line in open( filename ):
if (len(line)>54 and (line[0:4] == 'ATOM' or line[0:4] == 'HETA' ) ):
resnum = int( line[22:26] )
chain = line[21]
... | [
"rhiju@stanford.edu"
] | rhiju@stanford.edu |
17d6a1d1e5388c6b85ab8a475b79ab605c31a328 | 8997a0bf1e3b6efe5dd9d5f307e1459f15501f5a | /html_parsing/get_population_from_wikidata.py | b298fdfe997103ec021047c1272812e4fb2d6d89 | [
"CC-BY-4.0"
] | permissive | stepik/SimplePyScripts | 01092eb1b2c1c33756427abb2debbd0c0abf533f | 3259d88cb58b650549080d6f63b15910ae7e4779 | refs/heads/master | 2023-05-15T17:35:55.743164 | 2021-06-11T22:59:07 | 2021-06-11T22:59:07 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,613 | py | #!/usr/bin/env python3
# -*- coding: utf-8 -*-
__author__ = 'ipetrash'
import requests
from bs4 import BeautifulSoup
def get_populations(url: str) -> dict:
rs = requests.get(url)
root = BeautifulSoup(rs.content, 'html.parser')
# P1082 -- ะธะดะตะฝัะธัะธะบะฐัะพั ะดะปั population
population_node = root.select_o... | [
"ilya.petrash@inbox.ru"
] | ilya.petrash@inbox.ru |
f69b74479a6aff6426d488a76667efb750b45a8c | c6447a111f830b2f871eb27badeb935961902926 | /DFS/path.py | c1f4b9aff9e9cdb08c5658809f84b6e16516ac7c | [] | no_license | Vamsi995/Algorithms | 7353518c5a322fcff1139563a7f45b1fdd66ca80 | 9a9402c1e21c465c7b94ea4866436373b16f4183 | refs/heads/master | 2022-12-21T07:52:48.557517 | 2020-10-03T18:22:01 | 2020-10-03T18:22:01 | 272,423,360 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 627 | py | from Graphs import graph
time = 0
def main():
G = initialize()
vertexSet = G.getVertices()
def initialize():
G = graph.Graph()
with open('input.txt', 'r') as file:
for line in file:
edge = line.strip().split(",")
G.addEdge(edge[0], edge[1])
return G
def dfs(G... | [
"saivamsi.ds123@gmail.com"
] | saivamsi.ds123@gmail.com |
fa41b0f899f5d464f07517b024131ebb30a842c1 | 197a547222f96396cfdae1e3cc3f0a24e221df0b | /report_all.py | 9aff7287e1f53837e7fdd2a7aae7009ec9760ad4 | [] | no_license | smallmeet/pentestEr_Fully-automatic-scanner | f29026b0b5109cfc9265240d1ae44bf40acff9ea | 276cdfa0e929871b0abe2cdeb63a708dd0e7db03 | refs/heads/master | 2021-01-12T07:10:39.282075 | 2016-11-14T15:13:28 | 2016-11-14T15:13:28 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 593 | py | # -*- encoding: utf-8 -*-
TEMPLATE_html = """
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
"http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<title>ๅ่ฝๅ่กจ</title>
</head>
<body>
<p><a href="${domain_result}" target="ma... | [
"exp_data@126.com"
] | exp_data@126.com |
c565ec43d09ff8f46b60ef4c43cf2f2aab5929a4 | 600df3590cce1fe49b9a96e9ca5b5242884a2a70 | /third_party/chromite/cbuildbot/builders/generic_builders.py | 1f47b675cd72b18f023d22c575debb47b20797c0 | [
"BSD-3-Clause",
"LicenseRef-scancode-unknown-license-reference",
"LGPL-2.0-or-later",
"GPL-1.0-or-later",
"MIT",
"Apache-2.0"
] | permissive | metux/chromium-suckless | efd087ba4f4070a6caac5bfbfb0f7a4e2f3c438a | 72a05af97787001756bae2511b7985e61498c965 | refs/heads/orig | 2022-12-04T23:53:58.681218 | 2017-04-30T10:59:06 | 2017-04-30T23:35:58 | 89,884,931 | 5 | 3 | BSD-3-Clause | 2022-11-23T20:52:53 | 2017-05-01T00:09:08 | null | UTF-8 | Python | false | false | 12,874 | py | # Copyright 2015 The Chromium OS Authors. All rights reserved.
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
"""Module containing the generic builders."""
from __future__ import print_function
import multiprocessing
import os
import sys
import tempfile
import t... | [
"enrico.weigelt@gr13.net"
] | enrico.weigelt@gr13.net |
497b3855c39ce52ff5ceb7a9fd7b420c675218fd | 46802029137213d94b5e4e8aeab5ded022ab99a7 | /app/bot.py | d5d61b20774f5493c149f51115273f31ededf4c3 | [] | no_license | juchilian/docker-selenium-test | 8c9f1a0ff9150af99c098de57c126471a12bada6 | 3803140ad5e3d7dacb8da2cded30c3c4b3c71a9e | refs/heads/main | 2023-07-11T22:55:46.553514 | 2021-08-14T00:04:25 | 2021-08-14T00:04:25 | 395,832,725 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 433 | py | from time import sleep
from selenium.webdriver.common import desired_capabilities
from selenium.webdriver.common.desired_capabilities import DesiredCapabilities
from selenium import webdriver
sleep(5)
driver = webdriver.Remote('http://selenium:4444/wd/hub',
desired_capabilities=DesiredCapabi... | [
"juchilian1227@gmail.com"
] | juchilian1227@gmail.com |
f5b55ddc9d6cd20af0cc3c4493363bc39b2fca12 | 5f4a554625a73794b440106b7f1da0f6a0b019d0 | /face_recognition.py | 8634c1f8f4f2a1c79f40a53d8602a9af8bf579fa | [
"Apache-2.0"
] | permissive | Rishita11/face_recognition_and_face_detection | e0dd7dda2f37d38efad1f834afd499b0137e408b | 589a03f85a9d3219e8a5f2bf551bf78ce5e8564f | refs/heads/main | 2023-03-14T23:51:25.115629 | 2021-03-12T17:24:12 | 2021-03-12T17:24:12 | 347,138,967 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,566 | py | import cv2
import os
def assure_path_exists(path):
dir = os.path.dirname(path)
if not os.path.exists(dir):
os.makedirs(dir)
# Start capturing video
vid_cam = cv2.VideoCapture(0)
# Detect object in video stream using Haarcascade Frontal Face
face_detector = cv2.CascadeClassifier('haarcascade_frontalfa... | [
"noreply@github.com"
] | noreply@github.com |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.