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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
b445646c7e1f29286068c2429fbfaa45543701b8 | 7e480f50756cfc9b9f68ce6ad49176734405b4df | /function_to_ask.py | 7fbc4545a2abf2ac150ecea0238d9f640172d357 | [] | no_license | dotrung1998/Basic_Python_Dunglai | df98cbbb629830aafb00031125557f06ecf7795a | 53feb27d9e301674d2d7ff7f0c76fdc55a49ed78 | refs/heads/master | 2023-04-13T05:26:35.634889 | 2021-04-26T21:14:55 | 2021-04-26T21:14:55 | 361,883,868 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,023 | py | import datetime
'''
1: Use "main"
2: "While" loop using function
3: change type direct in "input"
4: Muss have "return" to take back the value
5: Just need to have "height_meter" because feet has already calculated with "METER_TO_FEET"
6: Muss: certain order
7: Defind also in "main"
8: Python is atomatically know the... | [
"dotrung1998@gmail.com"
] | dotrung1998@gmail.com |
9ebcd2e77d1f286145916c7713b83a5fe4f9d261 | 5ee2c0e9b457be178e9c197d0d92037d356de53c | /model.py | 5347a8d28729b4807e6b38e293ae85b38c911a01 | [
"MIT"
] | permissive | klitile/oaps | b067a835b1850d9981b3c626899999681834ab3f | 9cf423bf884151402e7fd861b32e3abe2518eefe | refs/heads/master | 2020-09-12T10:57:00.158074 | 2019-12-08T07:21:30 | 2019-12-08T07:21:30 | 222,401,560 | 0 | 0 | MIT | 2019-11-18T08:41:48 | 2019-11-18T08:41:47 | null | UTF-8 | Python | false | false | 2,753 | py | from app import db
class Article(db.Model):
__tablename__ = 'article'
id = db.Column(db.Integer,primary_key=True)
title = db.Column(db.Text)
user_id = db.Column(db.Text,db.ForeignKey('user.id'))
subject_id = db.Column(db.Integer,db.ForeignKey('subject.id'))
abstract = db.Column(db.Text)
hi... | [
"2912607882@qq.com"
] | 2912607882@qq.com |
18aa237008c1e5f001473ff301022c74ef848946 | a944870030badd3dc63545966026cbecb9e3c1dc | /booking/serializers.py | 9ec10d884d0a330146254176b9f4f9e8b559ce9b | [] | no_license | Kwojtanek/django-SPA-booking | 7c444a12df575d0b4b2300093abd727c756b4eac | 8e95c2667e1e4bf26cbb6c527ab20d34bd1c4faa | refs/heads/master | 2020-06-26T21:00:42.111161 | 2017-04-25T19:17:57 | 2017-04-25T19:17:57 | 66,871,860 | 2 | 1 | null | null | null | null | UTF-8 | Python | false | false | 1,842 | py | from django.contrib.auth import get_user_model
from rest_framework import serializers
from .models import Booking, BookingRoom, BookingPerson, RoomPhoto, BookingHouse, BookingRoomAdditional, Employee
class RoomPhotoSerializer(serializers.ModelSerializer):
class Meta:
fields = '__all__'
model = Roo... | [
"kwojtanek@gmail.cmo"
] | kwojtanek@gmail.cmo |
9f27b8d82f33985ee0d62c3f0ac924016808512a | a2f462f31aa0e23aa2f9e61c266b83a04de1b6ee | /Normal.py | 82408f222cf336621bcd7a5ee7872162cdc2e906 | [] | no_license | agneet42/Word-Spotting | 099b75f1ce7997854698128ca573a67a2842f27d | 48e3e9164eb76c2d895ab739ec155c7105c0b083 | refs/heads/master | 2021-01-19T12:37:13.168082 | 2017-05-16T17:42:18 | 2017-05-16T17:42:18 | 82,327,162 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 186 | py | import cv2 as cv
img = cv.imread('path')
img = cv.resize(img, (800,800))
cv.normalize(img, img, 0, 255, cv.NORM_MINMAX)
cv.imwrite("filename",img)
cv.waitKey(0)
cv.destroyAllWindows()
| [
"noreply@github.com"
] | agneet42.noreply@github.com |
f431aa9fb04a4e8ef737094d288b77167678c161 | 46019bbd09c3d705889106d15f0467244e19576d | /gendiff/arg_parse.py | 67a0d2148353eb4a32bd58bede541c182f72a8b4 | [] | no_license | mjh-sakh/python-project-lvl2 | 60299a9e6d48f912f7464012f99592a4c0c5a3da | 71ffc9f5573d26096b23b25067a27c46d8c4e783 | refs/heads/main | 2023-04-20T10:53:29.999740 | 2021-06-02T09:25:40 | 2021-06-02T09:25:40 | 359,762,288 | 0 | 0 | null | 2021-05-10T06:38:04 | 2021-04-20T09:43:05 | Python | UTF-8 | Python | false | false | 856 | py | import argparse
DESCRIPTION = r"""
files:
file_one: {"key1": 1, "key2" : 2}
file_two: {"key1": 10, "key3" : 3}
run command:
gendiff file_one file_two
result:
{
- key1: 1,
+ key1: 10,
key2: 2,
+ key3: 3
}
""" # noqa: W291, W293
def get_parser():
parser = arg... | [
"48555070+mjh-sakh@users.noreply.github.com"
] | 48555070+mjh-sakh@users.noreply.github.com |
1d4fbdd1accac08faf4e709ae7bd693cb92cf97b | 6d6fad815dda6bc622559e0f39590b342008939f | /rnn-tensor.py | 88b6407948fe4833348ce268a6db7a4f096e6a62 | [] | no_license | pushpankar/ML-projects | 93368bfc137a1b5096ddfa2d4f9beaf0a0f8561e | 87b619479a5cb7d9647f96da930541e5d0817677 | refs/heads/master | 2021-01-11T15:42:55.986664 | 2017-03-22T09:33:32 | 2017-03-22T09:33:32 | 79,908,980 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,018 | py | from __future__ import print_function, division
import numpy as np
import tensorflow as tf
import matplotlib.pyplot as plt
num_epoch = 100
total_series_length = 50000
truncated_backprop_length = 15
state_size = 4
num_classes = 2
echo_step = 3
batch_size = 5
num_batches = total_series_length//batch_size//truncated_back... | [
"pushpankark@gmail.com"
] | pushpankark@gmail.com |
2d2b2d1d569d131db631eabcdb4ec83cb90fe22f | 30909ac5beddf4e4d5109ee8b2cd3ea9cc711411 | /Sample_Run/path_attn/Config.py | 6c1259def900a578d5e6894509e94a6bceb4d785 | [
"MIT"
] | permissive | yashchandak/GNN | c3f0b8f8a894e0aa1920501ca80100e0b51c2912 | 818d1aa25bd50a65bff3577758306d2e6c591100 | refs/heads/master | 2021-01-11T17:04:52.096030 | 2017-05-12T09:53:30 | 2017-05-12T09:53:30 | 79,713,901 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,900 | py | import tensorflow as tf
import sys, os, shutil
class Config(object):
def __init__(self, args):
self.codebase_root_path = args.path
sys.path.insert(0, self.codebase_root_path)
#### Directory paths ####
# Folder name and project name is the same
self.project_name = args.pro... | [
"yashchandak@yahoo.in"
] | yashchandak@yahoo.in |
de64568098f0ef926aea923729b2c449aa7f9a78 | 157ccf908516e0707d88a30aa7048cdb68180154 | /Experiment/FeatureExtraction.py | b4196b490e969fc0c3928f0181a282241b33e762 | [] | no_license | BhuiyanMH/Python3 | bed45ba55a7d0b71eec9b59da24e1ad01410e4ac | ef1615fd46e8b9793467a427c61eea9d161b75e3 | refs/heads/master | 2021-08-24T10:31:04.166448 | 2017-12-09T06:54:46 | 2017-12-09T06:54:46 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,665 | py | from sklearn.feature_extraction.text import CountVectorizer
vectorizer = CountVectorizer(min_df=1)
#print(vectorizer)
corpus = ['This is the first document.', 'This is the second second document.',
'And the third one.', 'Is this the first document?',]
X = vectorizer.fit_transform(corpus)
#print(X)
print(vect... | [
"rony.cse.cu.13@gmaail.com"
] | rony.cse.cu.13@gmaail.com |
2ef5963b4a240d3b93eaa7afcb829146d287c03e | 513e69e120a844b8b6afee9979a6365ffb6e77e6 | /scc_data_prep_alt.py | e5413126d98b164e3435903defd52a40488bf151 | [
"Apache-2.0"
] | permissive | burcgokden/CoulGAT-Graph-Attention-Interpretability | 94c9912b439390d2c1a7e1d2d98821a778aba691 | f0fb5dcf83bc94b00e5addc6636c0f4be3bf3b84 | refs/heads/master | 2020-11-24T17:12:53.921753 | 2019-12-23T00:13:52 | 2019-12-23T00:13:52 | 228,267,023 | 5 | 2 | Apache-2.0 | 2020-11-13T17:41:12 | 2019-12-15T23:20:55 | Python | UTF-8 | Python | false | false | 28,264 | py | '''
CHAMPS Dataset preprocessing Class Alternative Implementation.
(atom_index_1, type) tuple version.
'''
import numpy as np
import pandas as pd
import os
import random
import common as cm
class CHAMPSData:
def __init__(self, dataset_folder, trainfn, structuresfn, testfn=None, set_features=False, N=None, p=N... | [
"burc@fromtheskyresearchlabs.com"
] | burc@fromtheskyresearchlabs.com |
0d407c74a0804f33092ae5081966b235afb792ae | a76401f82ed1c9ac47ddaff27681b90f37627426 | /.history/student_olx/main/views_20210917182108.py | d005f72ddffca35d5f73dcabbfaf88c494a9bda0 | [] | no_license | RiteshK555/itw-project | e90e1dd13517ee8b07d72cc3bd5a42af367ab587 | a2e4c8682c2030ff77da9ade5ae4677bd475f87a | refs/heads/master | 2023-08-30T03:48:58.904979 | 2021-11-10T09:50:59 | 2021-11-10T09:50:59 | 410,032,076 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,335 | py | from django.http.response import HttpResponseRedirect
from django.shortcuts import render,redirect
from .models import ToDoList,Item
from django.contrib.auth import login,authenticate
from django.contrib.auth.forms import UserCreationForm
# Create your views here.
from django.http import HttpResponse
from .forms import... | [
""
] | |
ee0538a702b3f1d5225111d1b0386cf826b19e09 | 6e1887eaa730ff764e6cff692a07e85cc2713e83 | /aster_gui_tests.py | 3b0d6f5f3161b09ddbd1db26bac7f2be424bb9e2 | [] | no_license | zhanxiangqian/salome | 145759ec75698d49ab686ed196f78b815f42414d | 62592c0f17be823caad8ea71cd52841acbab6185 | refs/heads/master | 2021-01-23T07:44:50.832028 | 2017-04-14T09:29:47 | 2017-04-14T09:29:47 | 86,442,922 | 1 | 1 | null | null | null | null | UTF-8 | Python | false | false | 16,903 | py | # -*- coding: utf-8 -*-
"""Tools for easing Salomé tests on the GUI side
"""
import os
import os.path as osp
import subprocess as SP
import unittest as UT
from cStringIO import StringIO
from tempfile import mkstemp
from time import sleep
from PyQt4 import QtGui as qt
from PyQt4 import QtCore as qtc
connect = qtc.QObje... | [
"1074919969@qq.com"
] | 1074919969@qq.com |
9ef9dbfe322cea184ea1b923582145a95b484653 | 1033655e5f67446fd6447beb0d26988841780f22 | /src/dataset_characterization.py | 721c530b72a15ce0dc1e81e795e9fc0e13902ca2 | [] | no_license | marta-seq/enzymeClassification | b4f3fe875d790aae65cc9466edba676f13cc0021 | 43beafabd87dae9c4e4d815cd0622e52dd92b8fa | refs/heads/master | 2023-05-06T04:55:39.821269 | 2021-05-24T16:40:23 | 2021-05-24T16:40:23 | 370,350,413 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 5,981 | py | import pandas as pd
from collections import Counter
import matplotlib.pyplot as plt
import seaborn as sns
from get_ec import get_ec_1_level
def get_counts(column):
counts = Counter(x for xs in column for x in set(xs))
counts.most_common()
# df = pd.DataFrame.from_dict(counts, orient='index').reset_index()... | [
"anamartasequeira94@gmail.com"
] | anamartasequeira94@gmail.com |
7edf2c6e44d0fda5bd7ac4076553502cd8b88700 | 77be34cca78bf5418036f2f483aef8ac005fe1d7 | /segnet.py | bf98efc701a100274ac178818a3a3e5e6dfb5eac | [] | no_license | sunbrown/thyroid_nodule | b1642f0750f24d4cc942eaf50426cb4b7094791e | 836b79519ad212813dc85a9ce9847e732dd823bc | refs/heads/master | 2020-07-06T00:09:52.420750 | 2019-08-17T02:41:23 | 2019-08-17T02:41:23 | 202,826,024 | 3 | 1 | null | null | null | null | UTF-8 | Python | false | false | 3,801 | py | import os
from utils import Trainer, StepLR
import numpy as np
import torch
import torchvision
import torch.nn as nn
import torchvision.models as models
from torch import nn
import torch.nn.functional as F
import torch.optim as optim
from torch.utils.data import Dataset, DataLoader
from torchvision import transforms
im... | [
"sunbrown007@gmail.com"
] | sunbrown007@gmail.com |
4fb8d15b366ab3a2ac674ac5243cd2d47dcddc12 | 2624ff0625bd8ff2460a6c2a24f9ef7b74eba790 | /GUI/dev/drawing_mockup.py | e8de9bc5f38b363756f6892186113b105638d706 | [] | no_license | Harnesser/wxDebuggy | 0e17a58fe14d1f7a23a829128079de912a0104af | 09f1997e87883975c7b14f4c0422d0cd74ce915e | refs/heads/master | 2021-01-23T09:51:23.869515 | 2012-10-11T04:48:48 | 2012-10-11T04:48:48 | 1,133,532 | 2 | 1 | null | null | null | null | UTF-8 | Python | false | false | 35,935 | py | # A Drawing Mockup for vv.Debuggy.
#
# * Reads in verilog files and displays schematics and hierarchy -DONE
# * A splitter window, left = hier tree, right = autogen schematics -DONE
# * Status bar shows current hierarchy path -DONE
# * Window title shows name of module on view -DONE
# * Schematic to be displayed i... | [
"harnesser+marty@gmail.com"
] | harnesser+marty@gmail.com |
60f3d4c8128a3b02d149f833739567729c2cae61 | 25190804d9fa6fd54823f599420b383c80188dec | /fase3/gamma/management/migrations/0001_initial.py | ba9421f8bea36b3db0beaf37a904950c71b7c7c6 | [] | no_license | MAC0350/Projeto | 2ca8989746a560832ca34331df2d9a953801876d | 83360badd1a5753fccd89ef8595caedd1565954e | refs/heads/master | 2021-05-15T11:25:38.541495 | 2017-12-05T00:07:44 | 2017-12-05T00:16:45 | 108,330,541 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 7,942 | py | # -*- coding: utf-8 -*-
# Generated by Django 1.11.7 on 2017-12-01 18:16
from __future__ import unicode_literals
from django.db import migrations, models
class Migration(migrations.Migration):
initial = True
dependencies = [
]
operations = [
migrations.CreateModel(
name='Admini... | [
"leonardo.macedo@usp.br"
] | leonardo.macedo@usp.br |
9da34f0b3fd562aed0b2ac5c47e6855098406832 | c05b35398f89a98792bb1033e2bed76b86a9f769 | /parkingmotel.ie/parkingmotel/parkingmotel/wsgi.py | 3affb505ce079bc12e35006341ca6ffc3dc28b01 | [
"MIT"
] | permissive | ProfessionalIT/customers | c4510960c4b0816f68d2e2a73269adb4fd205c3a | 3dbc1989bb3494fb6de7edad67dc59b7b0385ac3 | refs/heads/master | 2021-01-10T19:40:29.547508 | 2016-02-18T00:57:51 | 2016-02-18T00:57:51 | 27,883,854 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 401 | py | """
WSGI config for parkingmotel 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_... | [
"leandro@professionalit.com.br"
] | leandro@professionalit.com.br |
8cb8c49456273a357e9400352e3b69659ff7f887 | 45601f95bf680c9fb92a05bd3b3b718923994da2 | /tests/json.py | 326468b43b671a322e5a16e03927909665d01244 | [
"MIT"
] | permissive | orktes/influunt | 011a50ea5f3eb27f2f80ac7192f1db4fd5ece175 | f4b9961a4dc464e891650fea8ea6d9ea1b7cad0b | refs/heads/master | 2020-03-23T06:59:34.118666 | 2018-08-12T11:59:35 | 2018-08-12T11:59:35 | 141,242,305 | 7 | 0 | null | null | null | null | UTF-8 | Python | false | false | 307 | py | import influunt
with influunt.Graph() as graph:
m = influunt.parse_json('{"foo": {"bar": "biz"}, "biz": ["foo", "bar"]}')
biz = m.foo.bar
fooboo = m[biz].map(lambda item, i : item + biz)
r = graph.executor().run({}, [biz, fooboo])
print(r)
assert r == ("biz", ['foobiz', 'barbiz']) | [
"jaakko@unity3d.com"
] | jaakko@unity3d.com |
5247ef6a0c34c03411ec0682c751eb89215bfc10 | 9d73473ab0b7778e8d81523608356fa5cb629229 | /run.py | f223ed91d833ed961f6f64036ecb9f3f4456504c | [] | no_license | edgarcuevas/TESTGUIASR | 6469713f48eb869af231f638609412d05790127d | 24f40a8cdb98645ccbfa867aa5b3737e23a8b86c | refs/heads/master | 2020-04-07T22:19:00.867758 | 2018-11-23T01:16:15 | 2018-11-23T01:16:15 | 158,764,645 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 136 | py | from flaskblog import app
#runs the application in debug mode for developer updates
if __name__ == '__main__':
app.run(debug=True)
| [
"31939249+shifterchi@users.noreply.github.com"
] | 31939249+shifterchi@users.noreply.github.com |
6841d2869574d75ea8820174825240cdb69b4887 | 0eec2b1f9b17859261dccc983eeb0b13479062d5 | /scripts/python/write_pvs | ec0bda78f5770f1332e4c5b145d3c2e1d8a97523 | [] | no_license | lnls-dig/bpm-app | 07cd0c633de38e38697555124ffe0c927182583a | e4c72d6075078fca6e79b2dc9125390ca67384e0 | refs/heads/master | 2023-08-30T21:11:56.823405 | 2023-08-14T20:10:47 | 2023-08-24T19:04:37 | 39,036,119 | 2 | 0 | null | 2023-09-12T15:32:51 | 2015-07-13T20:40:42 | Python | UTF-8 | Python | false | false | 583 | #!/usr/bin/env python3
'''Read a file whose lines are formatted as "PV: value" and write those values
into those PVs. Run as:
./write_pvs input
Author: Érico Nogueira
'''
import sys
from bpm_app.pvs import create_pv, wait_for_pv_connection, put_pv, wait_pv
file_name = sys.argv[1]
pv_and_value = []
with open(... | [
"34201958+ericonr@users.noreply.github.com"
] | 34201958+ericonr@users.noreply.github.com | |
d17a1fa7b5c455140cc82071b73faff6e2b9c72a | 666efc879c309d2571bf758a170f08d45b4b08e9 | /paddle.py | a70d942437b9d98ee6a4d208111092f5e3c537d9 | [] | no_license | TadeeshaNithesh/A-Pong-game | 7c50b46add9a5db375d3cc944f42348f7e24f665 | 7904bb23cd013e4d5c936d65bcdf9ca8ddd94e29 | refs/heads/master | 2023-08-13T17:50:53.419618 | 2021-09-18T07:11:38 | 2021-09-18T07:11:38 | 404,953,937 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 622 | py | import pygame
Blue = (15,31,52)
class Paddle(pygame.sprite.Sprite):
def __init__(self, color, width, height):
super().__init__()
self.image = pygame.Surface([width, height])
self.image.fill(Blue)
self.image.set_colorkey(Blue)
pygame.draw.rect(self.image, color, [0,0, width... | [
"tadeeshabinuditha@gmail.com"
] | tadeeshabinuditha@gmail.com |
321601e669030d76e6ffabe9f40d6d1a6f4b960c | 60af36cff75b1efc607c87a426af7980e8263693 | /werewolf_project/werewolf_project/wsgi.py | e21be592b30f204b5456994da8c9d6b9d22b9571 | [] | no_license | orbtl/werewolf | e6cec720d2017bede2e1a67020096cf85409c02f | 76fbbb6fe09ac92c83807b822710c05059ac3711 | refs/heads/master | 2020-10-01T06:32:15.790202 | 2020-02-09T00:19:37 | 2020-02-09T00:19:37 | 227,478,504 | 3 | 1 | null | null | null | null | UTF-8 | Python | false | false | 409 | py | """
WSGI config for werewolf_project project.
It exposes the WSGI callable as a module-level variable named ``application``.
For more information on this file, see
https://docs.djangoproject.com/en/2.2/howto/deployment/wsgi/
"""
import os
from django.core.wsgi import get_wsgi_application
os.environ.setdefault('DJA... | [
"twinsendude@gmail.com"
] | twinsendude@gmail.com |
328bf46fdbf281e741bc30e4e8b85e2ce9b45279 | fcd3f4c2da5e75943d0fb45d5ffb95b2891e2f15 | /drf_spectacular/__init__.py | 97f30d1228e9cefa5f899e2bac40ad016f4a2909 | [
"BSD-3-Clause"
] | permissive | MissiaL/drf-spectacular | c7706db4e48917835f22837e3bfb42b62b98873c | 0852defc36eb012cc670c4598881466759c50252 | refs/heads/master | 2021-03-07T11:28:31.704660 | 2020-07-19T10:35:33 | 2020-07-19T12:10:35 | 246,262,368 | 1 | 0 | BSD-3-Clause | 2020-03-10T09:45:44 | 2020-03-10T09:45:44 | null | UTF-8 | Python | false | false | 23 | py | __version__ = '0.9.11'
| [
"13507857+tfranzel@users.noreply.github.com"
] | 13507857+tfranzel@users.noreply.github.com |
aa8d5d425f8c8c07e9aa8bd8b01d8c38944a0232 | 295ecf4f254c42e9201657ef0a13ec2c68c40c9b | /buy/forms.py | c80566d1a697136ed495d48bc28f1acb92a3c021 | [] | no_license | zwolf21/StockAdmin-pre2 | 0236061284a6fe8801591608591d21129d4ea7c0 | b21d069ff215c17ce3bca040ecf9b8f48b452ed4 | refs/heads/master | 2021-05-01T09:28:59.818469 | 2016-11-30T17:33:30 | 2016-11-30T17:33:30 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 623 | py | from django import forms
from .models import BuyItem, Buy
from datetime import date
class CreateBuyForm(forms.ModelForm):
date = forms.DateField(initial=date.today(), widget=forms.TextInput(attrs={'tabindex':'-1','readonly':'readonly'}))
class Meta:
model = Buy
fields = ['date']
class BuyItemAddForm(forms.Mod... | [
"pbr112@naver.com"
] | pbr112@naver.com |
80059e7d76a2a2b10b10b3d32aa842d9836055fc | 141a13299fe2f1872af9f81d55334b2a5af2beb1 | /Kinect/main.py | f26bbe0e1bdff08a1a39c2feaea5e174cc19ea3e | [] | no_license | kivicode/Sketchbook | f4a19f9d95462e8f6e2775043580b9669678a714 | 55de7c588f8b948fd2f98a40428827aea2c35b1d | refs/heads/master | 2020-03-22T22:53:13.432710 | 2018-07-24T12:15:55 | 2018-07-24T12:15:55 | 140,776,447 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,942 | py | commands = []
from Detection.DepthDetection import *
from Detection.MarkerDetection import *
from Detection.QRCodeDetection import *
from Detection.BarcodeDetection import *
from Detection.ColorDetection import *
from Detection.ObjectDetection import *
from Detection.ContourDetection import *
from Detection.EllipseDet... | [
"31818467+kivicode@users.noreply.github.com"
] | 31818467+kivicode@users.noreply.github.com |
c6ab3e4068fda9c8202f9017c37654175a68e019 | 393a387cdb286cde75b4b7d760625d5851b6b080 | /Sorting items from user in alphabetical and reverse.py | 90a60ccf36cb5d37082e64d25c13965862512f11 | [] | no_license | nami-h/Python | b57f12ae48d5bc17a3de72ec7c5abb5622ba0cd2 | 7b067950da29df705237405742564d2f127f1446 | refs/heads/master | 2021-06-27T16:00:10.113762 | 2020-09-22T19:59:05 | 2020-09-22T19:59:05 | 136,550,054 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 310 | py | lis=[]
num=int(input("How many animals do you want to enter? "))
for add in range(num):
add=input("Enter animal: ")
lis.append(add)
animals=['horse','cat','mouse']
s=lis+animals
print("Our list consists of: ", s)
s.sort()
print("Alphabetically ordered: ", s)
s.reverse()
print("Reverse ordered: ",s)
| [
"noreply@github.com"
] | nami-h.noreply@github.com |
75abc5b6b01a6dcbb9c8d615f21e672899c50936 | f9e3a0fb511470561d3d94bc984dafaee06000cb | /PP4E-Examples-1.4/Examples/PP4E/Preview/person_start.py | c1ba77cd5ea9c9f2d7400fccde6645dfcf752e38 | [] | no_license | Sorath93/Programming-Python-book | 359b6fff4e17b44b9842662f484bbafb490cfd3d | ebe4c93e265edd4ae135491bd2f96904d08a911c | refs/heads/master | 2022-12-03T01:49:07.815439 | 2020-08-16T22:19:38 | 2020-08-16T22:19:38 | 287,775,012 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 415 | py | class Person:
def __init__(self, name, age, pay=0, job=None):
self.name = name
self.age = age
self.pay = pay
self.job = job
if __name__ == '__main__':
bob = Person('Bob Smith', 42, 30000, 'software')
sue = Person('Sue Jones', 45, 40000, 'hardware')
print(bob... | [
"Sorath.Soomro@isode.com"
] | Sorath.Soomro@isode.com |
9ff5823ad1d9e10406521fe2bad6433c1b387432 | 5c37f21a5ec6ec668a502ffbcd3d601f50416ee8 | /main.py | 7e898c33ea4615c38239e0c5b2cf626ec56479e1 | [] | no_license | wazeerzulfikar/progressivegan3d | 29e4539d219e16b38371b600defaa13a031c62e8 | 2ab686122557243e26988a1f74216c5a56df875e | refs/heads/master | 2022-06-07T16:20:13.663670 | 2020-05-02T15:52:53 | 2020-05-02T15:52:53 | 264,702,812 | 0 | 1 | null | 2020-05-17T15:51:20 | 2020-05-17T15:51:20 | null | UTF-8 | Python | false | false | 690 | py | import os
import tensorflow as tf
from opts import Opts
from trainer import PGGAN
import dataset
import tests
def main(config):
if config.task == 'prepare':
dataset.prepare_tf_record_dataset(
dataset_dir=config.dataset_dir,
tf_record_save_dir=config.tf_record_save_dir,
... | [
"wazeer.zulfikar@gmail.com"
] | wazeer.zulfikar@gmail.com |
bf6093ab5b6c8a259cdefdd3eac9c627d2a82514 | 1c3ed902cd9ffc863ca1e9014824dfc80ca05212 | /criptolibertad/urls.py | b32474c9635cee58272d9ba20870a5086921f74a | [] | no_license | Alejoss/CrHisoka | d8b727d420f43640c6762c809e2b028c2746b7e0 | 97a3ba2e25ac719c20bcbd9a50dfddddef7a6802 | refs/heads/master | 2020-12-24T07:43:24.103551 | 2016-08-03T22:31:42 | 2016-08-03T22:31:42 | 48,620,813 | 0 | 1 | null | 2020-11-17T20:52:07 | 2015-12-26T19:05:18 | HTML | UTF-8 | Python | false | false | 2,787 | py | from django.conf.urls import include, url
from django.contrib import admin
from django.conf import settings
from django.conf.urls.static import static
from django.contrib.auth import views as auth_views
from django.core.urlresolvers import reverse_lazy
from inicio import views
# from hisoka import urls as hisoka_urls
... | [
"alejoveintimilla@gmail.com"
] | alejoveintimilla@gmail.com |
5e46bc761055167ebad6fd4ddfafcf2a93b274cb | a7a3863acaf31d0fb679a482000c6ff89636a55c | /python/main_test_lfads_old.py | 64bb6d1eb50d2a138072ffea80eb887c69bcd805 | [] | no_license | gviejo/SWR_factors | 313280926b3e1f895578ca453c474900e1a3f320 | 87c74106c26b7c7ec03a197858b8013f10f74780 | refs/heads/master | 2021-11-10T02:57:39.280051 | 2021-11-05T01:37:58 | 2021-11-05T01:37:58 | 176,997,481 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 21,639 | py | # Copyright 2017 Google Inc. 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 applicable law or a... | [
"guillaume.viejo@gmail.com"
] | guillaume.viejo@gmail.com |
54a8129722c6a8f8bb293fff27a8b679f1855bfd | 477c9b671be83cf11e1a68b7d7414c39d3df5377 | /Example code/01 - print.py | af8dfc5463222ea875988723c0453b37728a8d34 | [] | no_license | Christopher-Cannon/python-docs | 27f6b3c855953ca23b6dd5b8efc09e930df9a2be | eca3f4e59e31f51b498c05a9edd5216096f05bcb | refs/heads/master | 2021-01-23T16:21:38.395916 | 2017-09-21T17:29:55 | 2017-09-21T17:29:55 | 93,295,422 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 35 | py | print("This is my first program!")
| [
"Christopher-Cannon@users.noreply.github.com"
] | Christopher-Cannon@users.noreply.github.com |
105664a23d3e6f51bf753428f2bf0073baa60746 | 674aec007a0e7f600300a88c5032a805284cd35a | /part2/tacocat/urls.py | 6675afe8748b3f22d40f266cf90fac519480c86e | [
"MIT"
] | permissive | ChmlGr/python-exercise | 7af5a02345fb1af8a60d70407e018c9cf0ff867d | f232a18597e467a713a9b618d3cce83725ce6449 | refs/heads/master | 2020-07-29T17:14:23.861767 | 2019-09-24T11:27:07 | 2019-09-24T11:27:07 | 209,896,664 | 0 | 0 | MIT | 2019-09-20T23:26:19 | 2019-09-20T23:26:19 | null | UTF-8 | Python | false | false | 801 | py | """tacocat URL Configuration
The `urlpatterns` list routes URLs to views. For more information please see:
https://docs.djangoproject.com/en/2.2/topics/http/urls/
Examples:
Function views
1. Add an import: from my_app import views
2. Add a URL to urlpatterns: path('', views.home, name='home')
Class-based... | [
"xgarcia32@gmail.com"
] | xgarcia32@gmail.com |
27939d25dbaea3bb3ed348d8dc434c5c1942490d | c3b022a4633586cce66835a9d2b0ab2c12edcabc | /backend/core/mechanics/crypto/bitcoin.py | 17e447bdbe17984c57b511ecf22fab357d0ad157 | [] | no_license | amosov00/simba | 9898899b1ed1efc86ca605e9c2774e743c29132a | d07682c2a3071dcf5045d3781876f8d81cb24775 | refs/heads/master | 2023-08-09T19:28:37.656338 | 2021-03-25T19:07:52 | 2021-03-25T19:07:52 | 395,107,748 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,600 | py | from http import HTTPStatus
from typing import Optional, List, Tuple
from fastapi import HTTPException
from pycoin.coins.tx_utils import create_signed_tx
from sentry_sdk import capture_message
from config import BTC_FEE, settings
from core.integrations.bitcoin import BitcoinPriceWrapper
from core.integrations.blockcy... | [
"nikita@elastoo.com"
] | nikita@elastoo.com |
83c7d94c9223617493fa9162a58e518ded6fbd10 | 551b75f52d28c0b5c8944d808a361470e2602654 | /huaweicloud-sdk-cloudide/huaweicloudsdkcloudide/v2/model/show_price_response.py | 437f28d12f863bbca7d3ec3c11acd04386c74027 | [
"Apache-2.0"
] | permissive | wuchen-huawei/huaweicloud-sdk-python-v3 | 9d6597ce8ab666a9a297b3d936aeb85c55cf5877 | 3683d703f4320edb2b8516f36f16d485cff08fc2 | refs/heads/master | 2023-05-08T21:32:31.920300 | 2021-05-26T08:54:18 | 2021-05-26T08:54:18 | 370,898,764 | 0 | 0 | NOASSERTION | 2021-05-26T03:50:07 | 2021-05-26T03:50:07 | null | UTF-8 | Python | false | false | 3,513 | py | # coding: utf-8
import pprint
import re
import six
from huaweicloudsdkcore.sdk_response import SdkResponse
class ShowPriceResponse(SdkResponse):
"""
Attributes:
openapi_types (dict): The key is attribute name
and the value is attribute type.
attribute_map (dict): ... | [
"hwcloudsdk@huawei.com"
] | hwcloudsdk@huawei.com |
6442d5d114a05f5f281018923c2b59cda5dcfc57 | 85c4eaf3d57ebaf9d58f83d5a1cbcc45e2c1dc8f | /A4-1.py | d232591b4f6890f2b928569e8f3b9bbd6a7e4cae | [] | no_license | maheravi/Assignment-4 | e5c1162666a4c3ac1f78706022cd75f061abcd08 | 510da590986334bd99af3b55ef5dabe59f16931d | refs/heads/main | 2023-03-27T17:39:56.125236 | 2021-04-01T13:55:01 | 2021-04-01T13:55:01 | 353,456,262 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,950 | py | import random
import time
import termcolor
import colorama
colorama.init()
Run_Time = time.time()
def show():
for i in range(3):
for j in range(3):
if game[i][j] == 'X':
print(termcolor.colored('X', color='blue'), end=" ")
elif game[i][j] == 'O':
... | [
"noreply@github.com"
] | maheravi.noreply@github.com |
d6e02e0227d363fddf1d9c6d50a450aeb2888976 | 475cb17451b414aa0a01efd422f63c2180f94a29 | /ISR/general_class.py | b027c710746ec56c1adb617cb70425035c2401e1 | [] | no_license | bioliyezhang/ISR | 6f4bb450c314213eec1bc5899544f47f4524b72a | bbc84f5a19bcc3ad70bd0768fab5a494effea6f3 | refs/heads/master | 2021-01-13T04:48:02.090985 | 2017-02-25T21:56:44 | 2017-02-25T21:56:44 | 78,700,885 | 2 | 1 | null | null | null | null | UTF-8 | Python | false | false | 37,098 | py | #!/usr/bin/env python
'''
V2015-05-03
'''
import os
import csv
from itertools import ifilter
import sys
"""
COMMON FUNCTIONS
"""
def output_header_file_old(infile,skip,output_handle,sup_list=[],eliminate=0):
##Version1.0
##write header into files
reader=csv.reader(open(infile,"rU"),delimite... | [
"bioliyezhang@gmail.com"
] | bioliyezhang@gmail.com |
a52bc78e9d3b3e11b7cddbd0d97869f5a2a6bec2 | 62e58c051128baef9452e7e0eb0b5a83367add26 | /x12/5040/828005040.py | 4a6d507aea18f617baa5083c1e25b5d6ed822f7a | [] | no_license | dougvanhorn/bots-grammars | 2eb6c0a6b5231c14a6faf194b932aa614809076c | 09db18d9d9bd9d92cefbf00f1c0de1c590fe3d0d | refs/heads/master | 2021-05-16T12:55:58.022904 | 2019-05-17T15:22:23 | 2019-05-17T15:22:23 | 105,274,633 | 0 | 0 | null | 2017-09-29T13:21:21 | 2017-09-29T13:21:21 | null | UTF-8 | Python | false | false | 823 | py | from bots.botsconfig import *
from records005040 import recorddefs
syntax = {
'version': '00504',
'functionalgroup': 'DA',
}
structure = [
{ID: 'ST', MIN: 1, MAX: 1, LEVEL: [
{ID: 'BAU', MIN: 1, MAX: 1},
{ID: 'N1', MIN: 0, MAX: 1},
{ID: 'N2', MIN: 0, MAX: 99999},
{ID: 'N3', MIN: 0, MAX: 99... | [
"doug.vanhorn@tagglogistics.com"
] | doug.vanhorn@tagglogistics.com |
4e09e79e650236e8bd4928cddefe2f4f9fa43986 | 82af5f9755cdc691c30eac5379ca8725979a5dfe | /utils.py | 9dd1d7e947cd03628f791a920d8459f14920c545 | [] | no_license | smdp2000/STATENet_Time_Aware_Suicide_Assessment | f7cf02c995af43d28583ca10c4ba452188ac45ba | 4438e132e359ec05c20708c6b74cc45792bbfd26 | refs/heads/master | 2023-01-11T23:33:54.163700 | 2020-11-16T20:14:53 | 2020-11-16T20:14:53 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,469 | py | import datetime
import numpy as np
import torch
import torch.nn as nn
import transformers
#from sentence_transformers import SentenceTransformer
from tqdm import tqdm
def argmax(vec):
# return the argmax as a python int
_, idx = torch.max(vec, 1)
return idx.item()
def pad_collate(batch):
target = [i... | [
"ramitsawhney27@gmail.com"
] | ramitsawhney27@gmail.com |
2940503764898b98082340170692f4e10443826b | 8e59a43de9d427865c5d67fef39e9a50e44f07ce | /ppocr/modeling/heads/rec_multi_head.py | 0b4fa939eecad15c79f5e37384944720b1879205 | [
"Apache-2.0"
] | permissive | PaddlePaddle/PaddleOCR | af87db8a804b9a4f4eac8a0b2faf80d1dd71633a | 15963b0d242867a4cc4d76445626dc8965509b2f | refs/heads/release/2.7 | 2023-09-01T04:53:37.561932 | 2023-08-30T02:22:15 | 2023-08-30T02:22:15 | 262,296,122 | 34,195 | 7,338 | Apache-2.0 | 2023-09-14T06:08:11 | 2020-05-08T10:38:16 | Python | UTF-8 | Python | false | false | 4,301 | py | # copyright (c) 2022 PaddlePaddle Authors. All Rights Reserve.
#
# 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... | [
"noreply@github.com"
] | PaddlePaddle.noreply@github.com |
590cfcaabe088e2752d7ab4d2c2d7de8327142e1 | 8bbe33929727a250b4d826bd96411a8a212ace01 | /OCR.py | 98d01ae3441410dc03450b1c1a3662ea09a79c5a | [] | no_license | cuongnguyentan2501/translateMaachine | 6a939d464ef6ea488df8877aed9830fd1fee3f04 | 98581a2bdd26ddffd7c31ba0391cab6e66deb243 | refs/heads/master | 2022-11-10T18:15:08.709702 | 2020-07-07T10:01:29 | 2020-07-07T10:01:29 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,038 | py | import pytesseract
from pytesseract import Output
import cv2
import random
import string
def randomString(stringLength=8):
letters = string.ascii_lowercase
return ''.join(random.choice(letters) for i in range(stringLength))
def ocrTextDetect(img):
img = cv2.imread(img, 0)
custom_config = r'--oem 3 --ps... | [
"1610373@hcmut.edu.vn"
] | 1610373@hcmut.edu.vn |
47c310bae1e4abdaa6b75569a117b14e0647509e | a53998e56ee06a96d59d97b2601fd6ec1e4124d7 | /基础课/jichu/day16/seek.py | 9bc56e0f93452a501443ed06d36a8a5bd659e588 | [] | no_license | zh-en520/aid1901 | f0ec0ec54e3fd616a2a85883da16670f34d4f873 | a56f82d0ea60b2395deacc57c4bdf3b6bc73bd2e | refs/heads/master | 2020-06-28T21:16:22.259665 | 2019-08-03T07:09:29 | 2019-08-03T07:09:29 | 200,344,127 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 259 | py | fr = open('20bytes.txt','rb')
print('当前读写位置是:',fr.tell())#0
b = fr.reed(2)
print(b)#b'AB'
print('当前读写位置是:',fe.tell())#2
#读写abcde这五个字节
fr.seek(5,0)#
# fr.seek(3,1)
# fr.seek(-15,2)
b = fr.read(5)#b'abcde'
print(b) | [
"zh_en520@163.com"
] | zh_en520@163.com |
d97a40c0c7db08ddaca4e67dad4ce3a176caeafd | a2d38a706798cdc7b34a34536ab788cc2eb73dea | /code/02-OOP/03-milk-impact.py | 657092966a44fa95feb334036659813a26142112 | [] | no_license | ehsanyousefzadehasl/APP | d63e47ca6e43bfc2f862a3c8e8e7eeb3029d61d9 | a49354db51d62cc401f6dc8617adc97db8bc067a | refs/heads/main | 2023-06-13T22:36:01.254464 | 2021-07-24T05:50:32 | 2021-07-24T05:50:32 | 334,229,229 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,297 | py | class s_class:
def __init__(self, number, ages, heights, weights):
self.number = number
self.ages = ages
self.heights = heights
self.weights = weights
def get_average_age(self):
return sum(self.ages)/ len(self.ages)
def get_average_height(self):
return sum(s... | [
"ehsanyusefzadehasl@gmail.com"
] | ehsanyusefzadehasl@gmail.com |
2d58887a5bc0c0cb774fd7263b4e0970d297b347 | 85ec16d071a972ca14331d99d1f0f468002a35cc | /friendster/settings.py | cf97a2930b194b84e63b00aec1f8ea256519a6e8 | [
"MIT"
] | permissive | sai29/friendster | 3567f580adbbdca59265de5ee7dc188c1d74c2fe | f89bb0c27a29b7fc35c3c3746ccb2a51fabe2286 | refs/heads/master | 2021-01-22T10:40:39.705775 | 2017-05-28T09:40:13 | 2017-05-28T09:40:13 | 92,651,718 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,465 | py | """
Django settings for friendster project.
Generated by 'django-admin startproject' using Django 1.11.1.
For more information on this file, see
https://docs.djangoproject.com/en/1.11/topics/settings/
For the full list of settings and their values, see
https://docs.djangoproject.com/en/1.11/ref/settings/
"""
import... | [
"saiprashanth93@gmail.com"
] | saiprashanth93@gmail.com |
99d0ac28141598ba1ef6bfbd8c5c3b1865a6e825 | 7dd41c115996e4c565eed06d9604adb1279b2488 | /blog/urls.py | 374424895d4b51893a615af79c291072d0a79b4a | [] | no_license | aneeshpanoli/pyzyme-do-backup | 34a5646652e81fcfd426f708f2919b6406b275a7 | bfd1ae9391992ac4c84125e09605f73bc83ad7d3 | refs/heads/master | 2023-01-06T05:14:42.239715 | 2020-11-01T00:59:13 | 2020-11-01T00:59:13 | 284,555,095 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 266 | py | from django.conf.urls import include, url
from . import views
urlpatterns = [
url(r'^blog/$', views.blogView, name='blogView'),
url(r'^blog/1$', views.blog1View, name='a_bright_future'),
url(r'^blog/2$', views.blog2View, name='gene_drive'),
]
| [
"pypanoli@pyzyme.com"
] | pypanoli@pyzyme.com |
57355db77692aaf72dbe260226fada4ad49c149c | f31f1a1ce17a9ae50a107d1b5d2797efd6850618 | /neighborhood/tribeca/isolate_intersection.py | d4d611b00b1ac7483cd7dc2d9491ec52a05a2f17 | [] | no_license | mikebmc/fare_backend | cc18b2a20dc883a44ddc444c758b6cc31e8932f5 | 84534674bcffb944d1685d91595812fb55b7ad09 | refs/heads/master | 2020-03-08T06:46:24.964977 | 2018-05-22T18:27:12 | 2018-05-22T18:27:12 | 127,979,308 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 936 | py | import pandas as pd
import numpy as np
from pathlib import Path
import os
read_file = 'tribeca_data_2016-06.csv'
write_file = Path('busy_intersection.csv')
if write_file.is_file():
os.remove(write_file)
intersection = np.array([40.720768, -74.010015])
half_block_from_int = np.array([40.720410, -74.010097])
radi... | [
"crawboy@me.com"
] | crawboy@me.com |
0ef930f62f7f5e56569b51c0b009e523809c0b89 | da17922416741a79f1d82addce2c1537e85323fd | /my_pytest.py | e3b022fe88182d954a68456bd3150814a5729b08 | [] | no_license | prydzkow/DevNet_1 | 477b05ce7563df10fdf2c748aa89a3b26eb600ed | a1a2321dc5b9f2c2a019ee9c25852093ae532b19 | refs/heads/master | 2023-02-10T21:30:58.881768 | 2021-01-08T17:50:50 | 2021-01-08T17:50:50 | 271,976,717 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,110 | py | #!/usr/bin/env python
"""
Author: Pawel Rydzkowski
Purpose: A test case file for the get_greetings.py.
Used to illustrate Test Driven Development (TDD) and DevOps CI/CD.
"""
import pytest
import get_greetings
#from get_greetings import get_hello
#from get_greetings import get_good_morning
#from get_greetings import g... | [
"pawel.rydzkowski@gmail.com"
] | pawel.rydzkowski@gmail.com |
d2bce02e783af0af714c95b82a85e5f81f24efc6 | d2a0d976e05a769d3c16d133b4baa1104fffb77a | /2019/eirik/day2.py | 8c070f9b3975ef28b70e8626bccaf0c53ced4625 | [] | no_license | Tarjeison/KebabOfCode | 9853f2f25004e2230a8c862eff12cea253e6269d | 46da626b78d1bd17a210dbed9b0c81c0f178b089 | refs/heads/master | 2022-12-06T17:34:54.957341 | 2022-12-04T13:00:06 | 2022-12-04T13:00:06 | 226,492,904 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 900 | py |
def is_valid_password_old(password, char, min_count, max_count):
return min_count <= password.count(char) <= max_count
def is_valid_password_new(password, char, pos_1, pos_2):
return (password[pos_1-1] == char) ^ (password[pos_2-1] == char)
with open('day2.txt', 'r') as file:
number_of_valid_passwords_ol... | [
"eirik.lid@statnett.no"
] | eirik.lid@statnett.no |
ab0fb788f0a4d856750383d838a4a13af01ae9d4 | aec775b7ca9f2587840ce8bd88d5dcf5fbd0dfb8 | /analyze_r1_skill_vs_luck.py | 5b84d8dc23825f707a09715f73b6b1a65cbc237e | [] | no_license | uvafan/tfm-analysis | 721dbfd2fe4233cb56909a554a2faecf147350c0 | 81f4c34b67632c979eddea79271546d67055561e | refs/heads/main | 2023-06-17T12:09:15.085391 | 2021-07-17T18:26:12 | 2021-07-17T18:26:12 | 385,825,916 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,615 | py | import pandas as pd
import pydantic
import random
import statistics
import numpy as np
class Player(pydantic.BaseModel):
elo: int
points: int = 0
games_played: int = 0
def make_player_pool(skill_dist: str="all_luck", skill_dist_params: dict = None, num_players: int=63) -> list[Player]:
if skill_dist ... | [
"eli.d.lifland@gmail.com"
] | eli.d.lifland@gmail.com |
16e941bc3173af4fa930218df8f03509d0805796 | 4dfa2afa16cf0019bd2f85a2272ea86efc8a820e | /algoritmo_1/tools/__init__.py | f1f3a46c1d2e4793fd37fef36f8f2f83dcfebe1f | [
"MIT"
] | permissive | cinai/identification-algorithms | aa6062f214dd7b4a4fa90475cefb5061f4aa0366 | e7e540ee06746bb3d556736043989a773757ee36 | refs/heads/master | 2020-04-06T07:18:48.644206 | 2016-11-22T18:19:09 | 2016-11-22T18:19:09 | 55,170,942 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 53 | py | __all__ =['tpm_identification','auxiliar_functions']
| [
"catta.ugs@gmail.com"
] | catta.ugs@gmail.com |
5bb59878227653ce8f756294ee28a329772a73fe | 93f149e9e990c5d169c1ddfe6a853f7ad703e96f | /Examples/calculate_pi.py | 64177798799bb447d321904e5587f33a9da7981c | [
"LicenseRef-scancode-public-domain",
"BSD-2-Clause",
"BSD-3-Clause"
] | permissive | peter1000/PySpeedIT | 170939f2040d048736800547b95409a39e33f2e1 | 8dcd79745c0895a4e4c5b4eee2bdf25f1e1bdac6 | refs/heads/master | 2021-01-02T04:53:26.127883 | 2014-10-04T13:39:52 | 2014-10-04T13:39:52 | 23,665,846 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 311 | py | """ Example: calculate_pi.py
"""
def recip_square(i_):
return 1.0 / (i_ ** 2)
# need to supply a n_ in the `speed_it modules__func_tuples`
# noinspection PyUnusedLocal
def approx_pi(n_=100000):
val = 0.
for k_ in range(1, n_ + 1):
val += recip_square(k_)
to_be_returned = (6 * val) ** 0.5
| [
"peter.margo@gmx.de"
] | peter.margo@gmx.de |
4a538cff9ad6cd0890340bd264318ca2cc7dc8c3 | cc9a0d5608b2209b02591ceace0a7416823a9de5 | /config/settings/local.py | cc31fc60988cb0f8692e336882a572a81a46a794 | [
"MIT"
] | permissive | morwen1/hack_your_body | 240838e75dd4447c944d47d37635d2064d4210fd | d4156d4fbe2dd4123d5b5bceef451803a50a39f8 | refs/heads/master | 2020-11-24T01:55:46.323849 | 2019-12-15T18:15:51 | 2019-12-15T18:15:51 | 226,505,010 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,759 | py | from .base import * # noqa
from .base import env
# GENERAL
# ------------------------------------------------------------------------------
# https://docs.djangoproject.com/en/dev/ref/settings/#debug
DEBUG = True
# https://docs.djangoproject.com/en/dev/ref/settings/#secret-key
SECRET_KEY = env(
"DJANGO_SECRET_KEY... | [
"morwen901@gmail.com"
] | morwen901@gmail.com |
5f2aa004a6d8843642b6c52ff11087cc3af08884 | c05f3bb5705ca6f2fee012e24de7ee75ec31d8a9 | /html_downloader.py | 6ce174e19bf26fcde8095e8e51ee42a1262b77f5 | [] | no_license | dzye/baike_spider | 5e63e7ed9ce7d15b490dbda41156005a8bd47f27 | 86a8fb9a83b069e05eff9916f4eb0cc333700616 | refs/heads/master | 2020-04-06T04:14:03.884722 | 2018-03-07T03:46:42 | 2018-03-07T03:46:42 | 83,025,602 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 383 | py |
#encoding:utf-8
#---------------------
import urllib2
class HtmlDownloader(object):
def download(self, url):
if url is None:
return None
try:
response = urllib2.urlopen(url ,timeout=10)
if response.getcode() != 200:
return None
... | [
"756611752@qq.com"
] | 756611752@qq.com |
5878f6566ea7b0af452814e2b863efb3b5e0a316 | 18de9374db9f8efcb65a0287d0079c0c33fc278f | /HoG-based Face Classification Project/get_data_matrix.py | c92ace9cb3e1ee4ac7e54d9f0fe6efbd6db28b14 | [] | no_license | nus-group1-4w/AI_Project | 06211a3dce7296e44d6d7ca3b6c9ae0a4288bd01 | 227a7b133bc42353b8d741df677597ac7dbab20e | refs/heads/master | 2020-06-19T19:27:09.742022 | 2019-07-20T10:21:36 | 2019-07-20T10:21:36 | 196,842,278 | 0 | 0 | null | 2019-07-20T07:05:58 | 2019-07-14T13:51:32 | null | UTF-8 | Python | false | false | 1,280 | py | import os
import cv2
import numpy as np
import preprocess
from settings import *
from hog import *
"""
HoG para: cell_size = 8, bin_size = 8, block_size = 16, img_size = (112,112)
---> hog_vector_size: (img_width/cell_size-1)*(img_height/cell_size-1)*((block_size/cell_size)**2)*bin_size
... | [
"1374414628@qq.com"
] | 1374414628@qq.com |
c67c6aa5d5f63958801f1bc6b365fa8cf502cda7 | bd933b02a85343e5c7b2bf4018c7d9e11d39b222 | /MODEL1303260003/model.py | e613b83d4e71b70742457b7c2808d360bbdebe8c | [
"LicenseRef-scancode-public-domain",
"CC0-1.0"
] | permissive | biomodels/MODEL1303260003 | 8533d064f8a9a65e84258cc98d91386adb69eb1e | a2695ffb9d247f28b8c397bc516c8750ea6ab559 | refs/heads/master | 2016-09-05T13:57:50.132052 | 2014-10-16T05:49:12 | 2014-10-16T05:49:12 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 427 | py | import os
path = os.path.dirname(os.path.realpath(__file__))
sbmlFilePath = os.path.join(path, 'MODEL1303260003.xml')
with open(sbmlFilePath,'r') as f:
sbmlString = f.read()
def module_exists(module_name):
try:
__import__(module_name)
except ImportError:
return False
else:
ret... | [
"stanleygu@gmail.com"
] | stanleygu@gmail.com |
3f9206db2472c2e54c8290aec6cf69a5b416a994 | 777bb211f34ee8b4b81ddb90d738afd4c2d59f3f | /src/moderate/stack-implementation/solutions/python/solution.py | e3d14018b21fc2a6ba62a4a14b40c00fe77cc5a7 | [
"MIT"
] | permissive | rdtsc/codeeval-solutions | ef158af9fcf1a3548663386884e04d3a7aee05fe | d5c06baf89125e9e9f4b163ee57e5a8f7e73e717 | refs/heads/master | 2021-07-19T05:31:49.871413 | 2021-07-12T14:03:16 | 2021-07-12T14:03:16 | 245,548,933 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 526 | py | #!/usr/bin/env python3
import sys
class Stack:
values = []
def __init__(self):
self.values = []
def push(self, value):
self.values.append(value)
def pop(self):
return self.values.pop() if not self.empty() else None
def empty(self):
return not self.values
for line in (line.rstrip() for l... | [
"rdtsc@users.noreply.github.com"
] | rdtsc@users.noreply.github.com |
7bcb47585ad29b47525dc0ee55c22c5c6cf1d163 | 42758502488aea5f4272d475d3ff1318f752e014 | /UPB/cond_combinado.py | ebab5cc81f323da55450eee9ff756c4ab7d7d30a | [] | no_license | alopezja/Phyton | f080d1e3a979fb3481b6b00cffc1a0ec65403cf7 | ea52fa46158f67b53d6515b5405d85285473b408 | refs/heads/master | 2023-06-05T21:11:01.914192 | 2021-07-05T02:34:26 | 2021-07-05T02:34:26 | 342,975,349 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 809 | py | """
edad = int(input ("Digite su edad: "))
if edad >0:
print("Edad correcta")
if 0<edad<100: #if edad >=18 and edad<100:
print("Usted es mayor de edad")
else:
print ("Usted es menor de edad")
else:
print ("La edad es incorrecta")
"""
######################
"""
x = -2
if x>0:
print ("... | [
"alopezja@gmail.com"
] | alopezja@gmail.com |
92f67bc660a2b6734ef9a99081d25fe5f59e8868 | 0020d9b77f4b396f25d4c6460195abab2079104e | /tests/algo/test_caesar.py | 36039bb49f4cd40f2259c31ef8dd7f72fdca91bd | [
"MIT"
] | permissive | dkushche/Crypto | 516424a6c9a56db9a74947cf7ddb6e17b45655ba | cd66d951330b408f091609bde3deb001d1320523 | refs/heads/master | 2023-02-22T18:58:03.722068 | 2022-08-21T15:51:46 | 2022-08-21T16:18:25 | 239,361,173 | 4 | 0 | MIT | 2023-02-08T02:48:34 | 2020-02-09T19:27:12 | Python | UTF-8 | Python | false | false | 191 | py | """
Caesar algorithm tests
"""
import pytest
from algo import caesar
@pytest.mark.standard_set
def test_caesar_success():
assert caesar.processor("ЛОЛ", "russian", 1) == "МПМ"
| [
"d.kushchevskyi@sirinsoftware.com"
] | d.kushchevskyi@sirinsoftware.com |
5ae32f6183d8eb5c72e5e64fbe91ce386938a045 | 58edcb7b986781e2ae19358c1a10fa32c0f23b81 | /app/serializers.py | e63154836513251a6c1b972ca21c8808a2be81fc | [] | no_license | 0EVIL0/Sistema-Riego | a66167a39501ccd55fba9a19eb589e16c6208ef5 | fb904b60582a2ed5c05529e8fc438726f2d9a9fa | refs/heads/master | 2023-08-02T02:48:59.172798 | 2021-09-30T20:45:24 | 2021-09-30T20:45:24 | 407,360,611 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 650 | py | from rest_framework import serializers
from .models import *
class rolSerealizer(serializers.ModelSerializer):
class Meta:
model=rol
fields="__all__"
class UsuariosSerealizer(serializers.ModelSerializer):
class Meta:
model=Usuario
fields="__all__"
class AuditoriaSerealizer(ser... | [
"yesidsvc@gmail.com"
] | yesidsvc@gmail.com |
a99fd894801fd5f1ff5d3dc8f7a2caa8b9f4238f | 5565300448ade33f440e05f4d48e1846809411e7 | /embedding_model/train_helper.py | 77fde3d571522363a897fa15922bf957d3ca821a | [] | no_license | sanlunainiu/Author-Disambiguation | ca1ec17bf756565212574c2da7d81d765ebf9816 | 06528b2883cf8f2d1369fa179812687c5bec0240 | refs/heads/master | 2023-06-11T21:34:06.749933 | 2019-01-14T13:12:54 | 2019-01-14T13:12:54 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 8,877 | py | #!/usr/bin/env python
# -*- coding: utf-8 -*-
# @Time : 17-12-11 下午7:09
# @Author : xujun
# @Email : xujunrt@163.com
# @Version : 1.0
from utility import save_embedding
class TrainHelper():
@staticmethod
def helper(num_epoch, dataset, bpr_optimizer,
# pp_sampler,
# pd_sampl... | [
"xujunrt@163.com"
] | xujunrt@163.com |
b9ef4892c9e656c106a6cb96f60766254cb6e8d3 | be2f6e45e33fba47d0d3f66ec430610271b07347 | /loginwindow.py | 3b4bb5a890e684fa577803bfbc5068961ed53262 | [] | no_license | artemisfowl1996/python-UI-generation | d4bd725f82accca95b4cbf3af417029a4a775ed8 | 19ed86cea434db0ea4fa06215595d2230e226fbc | refs/heads/master | 2021-01-20T17:26:23.757580 | 2017-05-10T14:32:51 | 2017-05-10T14:32:51 | 90,873,498 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 367 | py | from tkinter import *
root=Tk()
label1=Label(root,text="Name")
label2=Label(root,text="Password")
entry1=Entry(root)
entry2=Entry(root)
label1.grid(row=0,sticky=E)
label2.grid(row=1,sticky=E)
entry1.grid(row=0,column=1,ipadx=10)
entry2.grid(row=1,column=1,ipadx=10)
c=Checkbutton(root,text="keep me logge... | [
"noreply@github.com"
] | artemisfowl1996.noreply@github.com |
d7ffd4355594ae45e3c3f483fbc7f58c3ee5b1a2 | 2e623207c0c758a9bda765a503b064074b0d4629 | /InterleavingString.py | 4ec3791aaeae19d936a5bfd30a60d5e8fe604514 | [] | no_license | WeeJang/basic_algorithm | f2bdafa67f84b64307efd643c4ab2ffa4d9f576f | b18dff62bcd023708fbc37d35859b08560412569 | refs/heads/master | 2021-01-22T07:57:41.737221 | 2018-01-13T03:22:34 | 2018-01-13T03:22:34 | 92,589,124 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 545 | py | #!/usr/bin/env python2
#-*- coding:utf-8 -*-
def solution(s1,s2,s3):
""" (s1,s2) -> s3 """
def helper(s1,s2,s3):
if all((len(s1) == 0,len(s2) == 0,len(s3) == 0)):
return True
s1_test,s2_test = False,False
if len(s1) * len(s3) != 0:
s1_test = (s1[0] == s3[0] and helper(s1[1:],s2,s3[1:]))
if len(s... | [
"jiangwei@dingfudata.com"
] | jiangwei@dingfudata.com |
888d19439a4db1f52c52055430b3d64caf0aa050 | 09c3d65f7b19c105eeb3db17334f362feef78c05 | /tests/unit/core/test_connection_interface.py | 7fb7d084e115e9d4316efac8745390f65d20e02c | [
"Apache-2.0"
] | permissive | dme722/ayx-blackbird | 07e9f14aeba36be97e32cc5780694e90f0ded2ba | 16533e22e3cbe36621328d94500a6e58ec0c73ea | refs/heads/master | 2021-08-07T11:42:30.366083 | 2020-02-28T15:36:56 | 2020-02-28T15:36:56 | 220,735,871 | 14 | 2 | Apache-2.0 | 2020-09-21T15:23:24 | 2019-11-10T03:24:59 | Python | UTF-8 | Python | false | false | 3,951 | py | from AlteryxPythonSDK import AlteryxEngine, FieldType, RecordInfo, RecordRef
from ayx_blackbird.anchors import InputAnchor
from ayx_blackbird.core import ConnectionEvents, ConnectionInterface, PluginEvents
from ayx_blackbird.mixins import ObservableMixin
from ayx_blackbird.utilities.constants import ConnectionStatus
... | [
"dellison@alteryx.com"
] | dellison@alteryx.com |
1851de3fc5529f44c231e4d68c5db6c402f96996 | 197d1605a5dde500ddda1c9080eb2cb207d97d41 | /emojifi_site/emojifi/urls.py | ad9b09bcd25b9810facc564aa0236be82faad422 | [
"MIT"
] | permissive | bretttjohnson1/EmojiFi | 0d178fa23b1a0d76c1c3d69c5509ff81cb98f43d | 41e8bc03de83e5895a4872f5791af81072368854 | refs/heads/master | 2020-04-23T05:36:55.528445 | 2019-04-09T20:54:16 | 2019-04-09T20:54:16 | 170,945,270 | 1 | 1 | MIT | 2019-03-03T03:59:30 | 2019-02-16T00:19:55 | HTML | UTF-8 | Python | false | false | 232 | py | from django.urls import path
from . import views
urlpatterns = [
path('', views.index, name='index'),
path('emojifi', views.emojifi, name='emojifi'),
path('emojifi_types', views.emojifi_types, name='emojifi_types'),
]
| [
"btj12@case.edu"
] | btj12@case.edu |
8240be47b794da01c97cac3281ad8bfe1800094c | 43acc603d65ad5fb00958c0c87323bcf69af31d8 | /wiki/general/classes.py | f2aca81f85d176d5d4da645211cce242c11c5146 | [
"Apache-2.0"
] | permissive | aikido-sensei/pyWiki | 733a2e63812586742993c51556e869c37ec1ae70 | 694306f9cb3e1413f7f5a84d7e18576e0f956acb | refs/heads/main | 2023-08-28T22:43:41.812866 | 2021-09-14T15:14:04 | 2021-09-22T00:21:44 | 401,870,756 | 0 | 0 | null | 2021-09-22T00:21:44 | 2021-08-31T23:33:21 | Python | UTF-8 | Python | false | false | 4,052 | py | import time
class Car(object):
"""
Abstracts a car. It is meant to have all the functionalities of an actual car.
"""
def __init__(self) -> None:
self.__engine_on: bool = False
self.__speed_in_kmph: float = 0
self.max_speed_in_kmph = 0
@staticmethod
def get_type() ->... | [
"ranjanmj@gmail.com"
] | ranjanmj@gmail.com |
735f35af6fd52d34c983954a7a8397422e1f8c08 | 8ddac45d118559b1322cb967b3a59b6d8e22e58b | /MM-803 Humansegmentation Code/YOLO-BG-Sub/mask.py | 99e0001d9f59b1f2c8dda7b3fb94bf248f4d2378 | [] | no_license | vaibhavrakheja11/Human_Segmentation__In_Realtime_Using_Static_Camera | 803860ceb076d9f529d95d83d7713ca40b10a29b | 3b76f990717877e9ccacc0b9d2cb4070ead4eaa2 | refs/heads/master | 2020-12-09T12:43:02.353091 | 2020-01-23T18:27:03 | 2020-01-23T18:27:03 | 233,306,836 | 4 | 1 | null | null | null | null | UTF-8 | Python | false | false | 3,141 | py | import cv2
import numpy as np
def draw_mask(img, image_bg, bbox, labels):
global mask
global masked_img
alpha = 0.95
mask=[]
masked_img_final=[]
#print('bboxt: ' + str(type(bbox)) + '\n')
bbox=np.array(bbox)
#img = np.array(img)
print('bbox: ' + str(bbox)... | [
"vaibhav@Vaibhavs-MacBook-Pro.local"
] | vaibhav@Vaibhavs-MacBook-Pro.local |
79e07c6d4eb631d0458dd3a369941042ebf329ff | 3a9f2b3d79cf214704829427ee280f4b49dca70a | /saigon/rat/RuckusAutoTest/scripts/zd/ats_ZD_Combo_CLI_Config_SNMP_Trap.py | 1cd2cc625e0a8cef8938c78b6c4bf089240f43cd | [] | no_license | jichunwei/MyGitHub-1 | ae0c1461fe0a337ef459da7c0d24d4cf8d4a4791 | f826fc89a030c6c4e08052d2d43af0b1b4b410e3 | refs/heads/master | 2021-01-21T10:19:22.900905 | 2016-08-20T03:34:52 | 2016-08-20T03:34:52 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 9,956 | py | '''
Config SNMP Trap via ZD CLI
Config snmp trap via ZD CLI successfully
1. The trap information from CLI and GUI are same.
2. Enable trap v2, the information are same between get and set, CLI get and GUI get.
3. Enable trap v3, the information are same between get and set, CLI get and GUI get.
2. ... | [
"tan@xx.com"
] | tan@xx.com |
f3550fa2ee7d1195a2dbb3fcd6fd02ce18ead0eb | a88957a9d78cb0b1d91fcd6ffe2c1c44a5c99ea0 | /run_app.py | a134e077fe3db4e614dce805c53013f1086dd407 | [
"MIT"
] | permissive | acc-cosc-1336/cosc-1336-spring-2018-artgonzalezacc | b355fe334a4939ea036b343d8ed97382537ce217 | c5dcc0ad7c47345c274d61c7e94f6c3b0ed42245 | refs/heads/master | 2021-09-13T07:52:37.708947 | 2018-04-26T20:18:43 | 2018-04-26T20:18:43 | 118,079,665 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 42 | py | import src.assignments.main_assignment5
| [
"arturo.gonzalez@austincc.edu"
] | arturo.gonzalez@austincc.edu |
2f1b43a07423d7c8a56a4baef0817b8eecd9c617 | c98e747f7a91b262baa76d13956423be60073279 | /tabulate.py | ffec80950c025dcb9462e694c7a9653e712575de | [
"MIT"
] | permissive | brianhuang822/ppanalyzer | 5b5834c0066b686be5c8a1f127e31b884dcefbba | 0cf71daf9f711a5783c2168f20da462c67f91054 | refs/heads/main | 2023-03-05T05:54:33.890249 | 2021-02-21T00:12:20 | 2021-02-21T00:12:20 | 340,258,030 | 0 | 0 | MIT | 2021-02-19T05:43:54 | 2021-02-19T04:28:53 | JavaScript | UTF-8 | Python | false | false | 715 | py | import pickle
from os import path
import math
import json
players = []
for i in range(0, 30000):
cur_path = f"pickles/{str(i)}.p"
if path.exists(cur_path):
players.append(pickle.load(open(cur_path, 'rb')))
interval = 100
ranks = {}
for x in range(0, 30000, interval):
counts_logged = {}
for son... | [
"brianhuang822@hotmail.com"
] | brianhuang822@hotmail.com |
21c8b6dd3fc6469d9bce3a5864b716a375351a0c | 89c729b08ff6774bfbea125088da896e819882dc | /portfolio/migrations/0001_initial.py | c29b4994a1fe85550b9dd8127a645b620dae82b6 | [] | no_license | Alyssabo/HiTrust-website | 222dba7897030109e4c996c39e1ef72b039c6385 | 34231f5311a6576c745bfd6393919aa15f8c7bcf | refs/heads/master | 2023-02-27T18:04:02.346508 | 2021-02-11T03:05:47 | 2021-02-11T03:05:47 | 337,915,818 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 686 | py | # Generated by Django 3.1.5 on 2021-01-31 02:58
from django.db import migrations, models
class Migration(migrations.Migration):
initial = True
dependencies = [
]
operations = [
migrations.CreateModel(
name='Project',
fields=[
('id', models.AutoField(... | [
"alyssazhang888@yahoo.com"
] | alyssazhang888@yahoo.com |
6805eafac10c8f3c2cc5a43dd787c61969eec0fe | a406c87c8b293a430f2c1332b4b93203d2f9a067 | /code/pykalman/pykalman/variant.py | da1ff0efa91f97a4efd65313ee958b07069b65f7 | [
"BSD-3-Clause"
] | permissive | moulines/GLSS | 57064cedfb33ed2641275fc2066f5a67eba96c69 | 7523ff1c08519a4c251e1c9c3aa6b2b78e86dc6d | refs/heads/master | 2021-01-10T06:08:13.704610 | 2015-12-14T15:30:07 | 2015-12-14T15:30:07 | 45,346,823 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 65,027 | py | """
=====================================
Inference for Linear-Gaussian Systems
=====================================
This module implements the Kalman Filter, Kalman Smoother, and
EM Algorithm for Linear-Gaussian state space models
"""
import warnings
import numpy as np
from scipy import linalg
from .utils import a... | [
"dexiongc@gmail.com"
] | dexiongc@gmail.com |
19e742e1b15911636951f130f8bc202f9f66142e | c8e7237fb5b137cd1192721dc8549789bcf71b2a | /guru_api/apps/messaging/serializers/__init__.py | c4ddfe3ff3544da422bcbf9206ee60e52a88c035 | [] | no_license | mroyce/guru_api | ee929c8272cb0e40ecb45df91fd139acaffad279 | f97c07bf62776ba965affe832caa099f423328fd | refs/heads/master | 2021-01-19T05:29:07.634312 | 2016-07-15T07:03:16 | 2016-07-15T07:03:16 | 63,398,223 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 130 | py | from .inbox import InboxSerializer
from .message import MessageSerializer
__all__ = ['InboxSerializer', 'MessageSerializer']
| [
"maurice.royce@gmail.com"
] | maurice.royce@gmail.com |
acad3c9f38d59d60361e23eb56c9d6a31c46a541 | 7a1fbed42a195782e35112a98a43b2ca155e8156 | /itesco programas/ex_2_3.py | 08ad81984412d580cebd11f1e2570efd113f7ad2 | [] | no_license | Jose-manuelR-I/R.P.1._Jose_Manuel_Ramirez | 4a411f7dab143f1e56e12fdd146effc225b8933a | 27179471249cf0a912c51e36ae3471175e7230d7 | refs/heads/main | 2023-03-28T07:21:05.963600 | 2021-03-26T17:21:29 | 2021-03-26T17:21:29 | 351,858,875 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 294 | py | #Puntos Bidimencionales
ax , cy= int (input('Ingrese el valor de ax:\n'))
ay = int (input('Ingrese el valor de ay:\n'))
bx = int (input('Ingrese el valor de bx:\n'))
by = int (input('Ingrese el valor de by:\n'))
#Formula
m = (ax + bx)/2, (ay + by)/2
print('Los puntos medios son:\n',m)
| [
"noreply@github.com"
] | Jose-manuelR-I.noreply@github.com |
a00da9b3a8568ca40cac0d1ea67083ce9ef97c43 | 9af35b0e0c0ed4b102c61c563d7c7647a758bb72 | /braindecode/datautil/signal_target.py | ebb6280370c5f4026abc132b5482426657926cdc | [
"BSD-3-Clause",
"BSD-2-Clause"
] | permissive | TonioBall/braindecode | 7c0a5217c944e8718d74fd9763b3c609252c9feb | d5b8d87d959c96ea8422e21099e1ef4b71b9d05a | refs/heads/master | 2020-12-13T08:56:34.939109 | 2020-01-17T13:27:30 | 2020-01-17T13:27:30 | 234,367,901 | 0 | 0 | BSD-3-Clause | 2020-01-16T16:56:45 | 2020-01-16T16:56:44 | null | UTF-8 | Python | false | false | 911 | py | class SignalAndTarget(object):
"""
Simple data container class.
Parameters
----------
X: 3darray or list of 2darrays
The input signal per trial.
y: 1darray or list
Labels for each trial.
"""
def __init__(self, X, y):
assert len(X) == len(y)
self.X = X
... | [
"robintibor@gmail.com"
] | robintibor@gmail.com |
93af4a4381ec646629373220cfca44dd3497d828 | 94b652382f0e77266d0c04bf0895a21e572fc1df | /8 Year 3 University Python Head Pose Estimation Project/ImageSegmentation.py | 6ab069df4fcaf4b7f1e08ac1a28fa8a4c687d9a7 | [] | no_license | tigerblue67/Academic-Projects | d9309754d8a3a174597c02b6d43fdef26f6bb679 | e7b4398cc76fc7a078f4b2b094843173dcfcb9b4 | refs/heads/master | 2021-06-22T18:37:18.768237 | 2021-01-10T16:11:51 | 2021-01-10T16:11:51 | 167,067,635 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 832 | py | import numpy as np
#takes in 2d image array and list of the number of height blocks and number of width blocks ie 3,3 for a 3x3 block image
def imageblocking(imageIn, blockNums):
imSize = imageIn.shape
blockHeight = int(imSize[0]/blockNums[0])
blockWidth = int(imSize[1]/blockNums[1])
currentImage = np... | [
"jacheah02@qub.ac.uk"
] | jacheah02@qub.ac.uk |
dfdb6a32b9161958f467afaa2fec421398942248 | ca0159d53e0fec8b7ce0d04246de7dbb17ded587 | /venv/bin/f2py | 30d0ad292631b03977e6e52604a799a3c1f12dca | [] | no_license | annapynda/task2_wep_map | fd1ac250fa3f25d4741f5fb70ed990fd4cf3cdcb | bdfeef83a0c15bdec183b796b51419588c4c9b5a | refs/heads/master | 2020-04-21T22:36:58.330921 | 2019-02-09T16:19:59 | 2019-02-09T16:19:59 | 169,918,021 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 258 | #!/Users/anna/PycharmProjects/lab2_task2/venv/bin/python
# -*- coding: utf-8 -*-
import re
import sys
from numpy.f2py.f2py2e import main
if __name__ == '__main__':
sys.argv[0] = re.sub(r'(-script\.pyw?|\.exe)?$', '', sys.argv[0])
sys.exit(main())
| [
"a.pyndap@gmail.com"
] | a.pyndap@gmail.com | |
b7a1b07961384cf2b46e7d81ca90c2626d9a807b | 5c8b4d19a9f7ddbd41565f82982bef487022694a | /token.py | 3da43ce459b22857397522b315b01926e6a8838c | [] | no_license | tcr/rdioplaybacktoken | 6b35419a03bdcb0ee8345ff3301b3e6dcdc7c9ba | 00f634da291eddd1bc2c2c10ed43e40b3a9f7fa8 | refs/heads/master | 2021-01-18T14:09:48.804574 | 2013-04-30T20:19:15 | 2013-04-30T20:19:15 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 283 | py | """
RdioUtil.py
"""
CONSUMER_KEY = '...'
CONSUMER_SECRET = '...'
domain = "example.com"
# https://github.com/rdio/rdio-python
from rdio import Rdio
from pprint import pprint
state = {}
rdio = Rdio(CONSUMER_KEY, CONSUMER_SECRET, state)
pprint(rdio.getPlaybackToken(domain=domain)) | [
"id@timryan.org"
] | id@timryan.org |
7c00ca52e63b240ae4de1214608463016402e3a7 | a3e06a6e546f55525006a2230bb4e165fc7a2e89 | /train_main.py | 4d3978130af78e96bd23a25deca1c1fefaf3ddda | [] | no_license | Mircea-Marian/attract_grid_data_flow_optimization | 0c489ad6d935b1c97f41c2463da5661a383e116d | 796566a4829debd9c581771a0365d41ec92466d4 | refs/heads/master | 2023-05-14T00:51:27.965716 | 2021-02-15T00:34:04 | 2021-02-15T00:34:04 | 227,128,273 | 0 | 2 | null | null | null | null | UTF-8 | Python | false | false | 17,467 | py | import numpy as np
import pickle
from keras.models import Sequential, Model
import keras.layers
import keras.metrics
import keras.optimizers
import matplotlib.pyplot as plt
import keras.backend as K
from keras.callbacks import TensorBoard, ModelCheckpoint, CSVLogger
import random
from csv import reader
from os import l... | [
"noreply@github.com"
] | Mircea-Marian.noreply@github.com |
9f7cd33b09083b7ca32ab65d512beb3d76667dc4 | 525bdfe2c7d33c901598a501c145df94a3e162b0 | /subject6_graphs/text.py | e255a01bf2155d3b55fd0ba8180d1b331aa5b94d | [] | no_license | davendiy/ads_course2 | f0a52108f1cab8619b2e6e2c6c4383a1a4615c15 | e44bf2b535b34bc31fb323c20901a77b0b3072f2 | refs/heads/master | 2020-04-06T09:37:12.983564 | 2019-05-09T10:28:22 | 2019-05-09T10:28:22 | 157,349,669 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,980 | py | #!/usr/bin/env python3
# -*-encoding: utf-8-*-
# created: 05.12.18
# by David Zashkolny
# 2 course, comp math
# Taras Shevchenko National University of Kyiv
# email: davendiy@gmail.com
tasks = int(input())
for mini_task in range(tasks):
s = input().split()
n, m = int(s[0]), int(s[1])
l = []
x, y = -1, ... | [
"davendiy@gmail.com"
] | davendiy@gmail.com |
8f974be7d4b370d499fd1b626154accaa1302cff | 45a5d2d9b5c07866f0a4dcd7e83cfd432299f206 | /single_xor_cipher.py | 2dd23c2a198113491767a658eff5fb4ba1cf9279 | [] | no_license | alexandr-gnrk/ciphers_crack | 7684e6a85cf422bbb59d068ccb6a88a08cb6eb6a | e82ce8eb8afd6dca3afe92f86089cec3b291edfb | refs/heads/main | 2023-01-28T13:07:40.353685 | 2020-12-19T08:19:04 | 2020-12-19T08:19:04 | 316,728,515 | 1 | 0 | null | 2020-11-28T12:36:41 | 2020-11-28T12:25:46 | null | UTF-8 | Python | false | false | 733 | py | import itertools
import cipher_common as cc
def single_xor_cipher_decode(bytes_):
res = bytes()
min_chi2 = float('inf')
key = None
# for byte in bytes(string.printable, encoding='ascii'):
for byte in range(256):
# xor the string
str_xor = cc.bytes_xor(bytes_, [byte])
# c... | [
"alexandr.gnrk@gmail.com"
] | alexandr.gnrk@gmail.com |
e6b3f8cfaf3860b32026984f951c83e6776d8014 | 7bfe7013dd643ea844433a08788f287d34332e05 | /carRentals/Accueil/models.py | 054c39b5cf5961e11b0147934815aa60991d2ce1 | [] | no_license | afefhnid/Django- | 877f9e7f6f06022bacb7178431ea1e372739f0c4 | abb9888415ff7813130db56724a09ddbd29d9191 | refs/heads/master | 2022-10-07T08:38:44.014824 | 2020-06-10T21:35:46 | 2020-06-10T21:35:46 | 268,357,125 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,399 | py | from django.db import models
import datetime
from django.db import models
from django.urls import reverse
from django.utils import timezone
from django import forms
class Snippet(models.Model):
lieu = models.CharField(max_length=100)
dateRetour = forms.DateTimeField(
input_formats=['%d/%m/%Y %H:%M'],... | [
"afefhnid@gmail.com"
] | afefhnid@gmail.com |
2ca6cf53d3b33ddd6d22705d0f028a4dc8a6f51a | 9e5919c56eb6d94b83b255ac91b0ef9123ac7bef | /projects/tracing/hsv/old_scripts/thalamus_midbrain/thal_all_nuclei.py | 58b447dfe5e7e39f76662c4fad22953afd7e6d71 | [] | no_license | marcelomata/lightsheet_helper_scripts | 2a4adf5bbb9ded436f7400482b4b227cb54248d0 | ca0242c7e950773c56e1e7d239369ee91a3a499f | refs/heads/master | 2022-12-02T09:34:28.565036 | 2020-08-21T21:06:29 | 2020-08-21T21:06:29 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 23,996 | py | #!/usr/bin/env python3
# -*- coding: utf-8 -*-
"""
Created on Thu May 23 13:38:57 2019
@author: wanglab
"""
from tools.analysis.network_analysis import make_structure_objects
import statsmodels.api as sm
import matplotlib as mpl
import matplotlib.pyplot as plt
import numpy as np, os, pickle as pckl, pandas as pd
from... | [
"zahramansoor@github.com"
] | zahramansoor@github.com |
9f59fafe88bb9f7a31f97e401f0006ec8d2b7db0 | e3901dea38e8712654d5d56a77eba17201c2282e | /shift_crack.py | ea27b72e2353e933bfc55015827db0fad3fffec0 | [] | no_license | ceuerle/CMSC396H2 | d01201288b24d9d8769d844e556304b588ce7858 | 485ea931c15674d2e21f050a83933ca63d20b6ea | refs/heads/master | 2016-09-06T21:34:58.055499 | 2014-12-03T14:45:00 | 2014-12-03T14:45:00 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 337 | py | def dot_product(list1, list2):
sum = 0
for i in range(len(list1)):
sum = sum + list1[i] * list2[i]
return sum
string = input("Enter the string to decode")
counts = {}
alphabet = "ABCDEFGHIJKLMNOPQRSTUVWXYZ"
for i in range(len(alphabet)):
counts[alphabet[i]] = 0
for c in string:
counts[c... | [
"ceuerle@gmail.com"
] | ceuerle@gmail.com |
3dcff99559d2d1556f67ba262ff9fb3338adab21 | d34087fa552d7492406def9871f756f101d3b6a6 | /source/packages/mailman_2.1.20-1_brcm63xx-tch/usr/local/mailman/Mailman/Gui/ContentFilter.py | 9043fe89179fa2d4b5f438060f3a35b49968b0ed | [] | no_license | fexofenadine/brcm63xx-tch | b0a582518418c43078bf6799e59f72e31c5c9e4f | b50c32f7bab074c7017d7b15d76da06430036a76 | refs/heads/master | 2023-07-22T10:22:20.838756 | 2023-07-08T02:57:10 | 2023-07-08T02:57:10 | 132,597,313 | 7 | 8 | null | 2022-10-19T00:54:37 | 2018-05-08T11:10:50 | Vim script | UTF-8 | Python | false | false | 9,149 | py | # Copyright (C) 2002-2005 by the Free Software Foundation, Inc.
#
# 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 your option) any later version.
#
# Th... | [
"pwandz@gmail.com"
] | pwandz@gmail.com |
cd8b61b73263b520681ebc7481f4e66158ad7563 | a784ff468f9d06625c6e8991a615049bdd2284c1 | /vida/__init__.py | 401f995d7ef4faaaa55a1cf9f953b482e822bc82 | [
"MIT"
] | permissive | vtadrones/vida | 41e30768a029bba5b71abef7b5d171088e742d9c | 2b2592a6998b9bfc63e948beb2342862b657a4fb | refs/heads/master | 2021-01-11T21:54:20.937017 | 2016-05-16T17:21:13 | 2016-05-16T17:21:13 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 162 | py | from brpy import init_brpy
br = init_brpy()
br.br_initialize_default()
br.br_set_property('algorithm', 'FaceRecognition')
br.br_set_property('enrollAll', 'true')
| [
"mwerling@gmail.com"
] | mwerling@gmail.com |
d2a4b13380fb8279c49360b31e6544ae7ae7ab6a | 589e5d16bf11cc1cc64c5cf9e750bde122b9e0b5 | /tests/mock/dao/ItemTypeDAO.py | bfcdd9abdb10278e4ef0c3f74fe1ff969ad587dd | [
"Apache-2.0"
] | permissive | argux/server | 38a2efc26782aaa9a2920d0230029acec46d47ab | e469521c037ecadc21a0527bce6a0cdba5cffcf2 | refs/heads/master | 2020-04-05T23:47:49.921547 | 2016-11-26T12:50:30 | 2016-11-26T12:50:30 | 44,723,415 | 0 | 1 | null | 2016-05-29T21:22:35 | 2015-10-22T05:10:18 | Python | UTF-8 | Python | false | false | 41 | py |
def getItemTypeByName(name):
return
| [
"stephan@xfce.org"
] | stephan@xfce.org |
e8d0585f36fdea83ba8c8a8e31f5d125684e1e9f | 2303f9e76ab994a0ff76ae875ba5b5ab127b6172 | /Python/LayerEditorPlus/LayerEditorPlusUI.py | 03837c4be66b9d01abac539ab3c34697a923726a | [] | no_license | Cronza/GTATools | f44848e585310dce59c9b4c9a79501afd0234173 | 791e31ca8934425af15957b3525d0c6289fe1306 | refs/heads/master | 2020-04-24T18:03:13.593052 | 2020-02-04T08:01:30 | 2020-02-04T08:01:30 | 172,168,041 | 0 | 0 | null | 2020-02-04T08:01:31 | 2019-02-23T03:47:29 | Python | UTF-8 | Python | false | false | 3,183 | py | import maya.cmds as mc
import LayerEditorPlusFunctions
from PySide2 import QtCore, QtWidgets, QtGui
class LayerEditorPlusUI():
def __init__(self):
self.funcs = LayerEditorPlusFunctions
#Core Window Setup
self.mainWindow = QtWidgets.QWidget()
self.mainWindow.setWindowTitle('Layer Editor +')
sel... | [
"garrett.t.fredley@hotmail.com"
] | garrett.t.fredley@hotmail.com |
5ddabf6e02af3e36bc3db5ddd80e9f94dc7127aa | 937034a7d85e2fc3918949d73ca51183296d6f09 | /file_csdn3_main.py | 67263e45223ac14e801242a21fa41dc87a66dacc | [] | no_license | ijt0walle/DemoTianYanCha | ca5ce2bd54175aeb65730f9d55d263b266878736 | d0db93e5b12ceb09e96c4d9289f667c97c3a5dcb | refs/heads/master | 2021-01-25T13:11:16.475185 | 2018-03-02T02:59:16 | 2018-03-02T02:59:16 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 845 | py | # -*- coding: utf-8 -*-
"""
主函数进行表格的输入输出的
"""
import file_csdn3_text_parse
import file_csdn3_xslx_parse
import file_csdn3_request
import time
import xlsxwriter
# 创建新表格
global worksheet
workbook = xlsxwriter.Workbook("result.xls")
worksheet = workbook.add_worksheet()
#获取公司名称
company_dict = file_csdn3_xslx_parse.read... | [
"xiaopeng.guo@chinacache.com"
] | xiaopeng.guo@chinacache.com |
f39b4262fb154edd32b8b8c4c483881d01c834aa | db12d54d7186ed50836bc2632b4750d4d5468568 | /mailing.py | a57b36448cf6da7e0ded90fcb97d3d2ee749d5ee | [] | no_license | KiranPesarlanka9/Logistics | c2fedf2dc442b4202e103735f299b7869fa29aae | 5d42eef4e48c65b5dcf980090773c60e6d6e1be9 | refs/heads/master | 2021-07-13T13:58:31.639412 | 2020-03-09T15:56:51 | 2020-03-09T15:56:51 | 241,545,144 | 0 | 1 | null | 2021-03-20T02:57:36 | 2020-02-19T06:00:50 | CSS | UTF-8 | Python | false | false | 615 | py | # using SendGrid's Python Library
# https://github.com/sendgrid/sendgrid-python
import os
from sendgrid import SendGridAPIClient
from sendgrid.helpers.mail import Mail
SENDGRID_API_KEY = ""
def send_mail(content, subject, to):
message = Mail(
from_email='dont-reply@mailing.com',
to_emails=to,
... | [
"kiran@deepcompute.com"
] | kiran@deepcompute.com |
1c483c8dd8e46fa7eda6f1203e740bc5470850aa | 74e01610f4f69f2d68f3ff644eba05900bbea9f8 | /config_module.py | 0e92f95fdd2b1d3e6b32bdc98d67fe245a37f8b4 | [] | no_license | bousmahafaycal/FReveil_synthese_date | f7a9298c193603e2d790a8de6d6677406eb6397b | 4a36949ace10a5a22d2e49681346bcad2805a375 | refs/heads/master | 2021-01-23T03:27:39.607341 | 2017-03-24T15:44:55 | 2017-03-24T15:44:55 | 86,080,811 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,597 | py | from outils import *
class ConfigModule:
def __init__(self,endroit):
self.endroit = endroit + "configModule.f"
self.openConfig()
def initialisation(self):
# Initialise les variables
self.nom = ""
self.arduino = False
self.ressourceAudio = False
self.versionFRMC = ""
def setNom(self,nom):
# Fonctio... | [
"faycal.bousmaha.fac@gmail.com"
] | faycal.bousmaha.fac@gmail.com |
a22eb00e2d5bd0a9882872c73548d7450fc78ee2 | 9978403efeefa081ced0f1695f93bfe6feffb5a7 | /profiles_api/urls.py | 1bc543a56b56134f055b6790935472366b24e2a1 | [
"MIT"
] | permissive | slemouton/profiles-rest-api-cours | 6676c6b3aa702d591aa5a7ccd61bfe431c3941d6 | ebbf37ce407e719a28deadd55919f5a6392252b9 | refs/heads/master | 2023-03-09T07:46:32.913202 | 2021-02-27T11:23:21 | 2021-02-27T11:23:21 | 338,908,366 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 480 | py | from django.urls import path, include
from profiles_api import views
from rest_framework.routers import DefaultRouter
router = DefaultRouter()
router.register('hello-viewset',views.HelloViewSet,base_name='hello-viewset')
router.register('profile',views.UserProfileViewSet)
router.register('feed',views.UserProfileFeedVi... | [
"lemouton@ircam.Fr"
] | lemouton@ircam.Fr |
3a3d74df3a228ab17a1b34ef7d4beb1d74263f30 | 27227f07ffb9f1abf02b62675046fc0a805444fb | /impyute/imputation/ts/__init__.py | b91066b160c013e0dce3be02fb8cd08862928d6f | [
"MIT"
] | permissive | mathematixy/impyute | 2e603c0751c3f42ec3cb01684e1ac9e6efdea61e | f95576bb1d878d6c7be407979b55b0f0f2a096b6 | refs/heads/master | 2020-04-02T06:06:52.479413 | 2018-10-21T23:14:22 | 2018-10-21T23:14:22 | 154,129,697 | 1 | 0 | MIT | 2018-10-22T11:09:25 | 2018-10-22T11:09:17 | null | UTF-8 | Python | false | false | 157 | py | """
Imputations for time-series data.
"""
from .locf import locf
from .moving_window import moving_window
__all__ = ["locf", "moving_window"] # , "dsae"]
| [
"eltonlaw296@gmail.com"
] | eltonlaw296@gmail.com |
e5d499d518d066a313d6782a07fa722337337743 | 4e33bf01ccc0b9cd422e8bd211238aab2d0a16bb | /social_network/accounts/urls.py | 74fda8acb1dbea2a04d4137532df0043cb4cd8cf | [] | no_license | MuhammedMegz/societa-social | 512ca3201c1ca63ba37eff7c0caa1fc8b96f17fb | d4a83cb8cbb1553bdfc3787f841dff3d2fc5289f | refs/heads/master | 2020-03-16T23:40:13.427578 | 2018-05-11T21:58:35 | 2018-05-11T21:58:35 | 133,086,480 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 411 | py | from django.contrib import auth
from django.contrib.auth import views as auth_views
from django.conf.urls import url
from . import views
app_name = 'accounts'
urlpatterns = [
url(r"login/$", auth_views.LoginView.as_view(template_name="accounts/login.html"),name='login'),
url(r"logout/$", auth_views.LogoutView... | [
"engmuhammedmag@gmail.com"
] | engmuhammedmag@gmail.com |
b3defa8cb47e60a76331d426740f6a4fafb7d0ec | 9b0a9cf3e55ee51ce9d42dbd947f04b505320c09 | /ahmad/apps.py | 586d9c2bf67f04954ef8aa8012dc87b9dcb730a7 | [] | no_license | ahmadlabeb/Token-Facebook | f4ccf16fa13a7fa103e1607128e4d7fc5e25c095 | a9e10a3294b3682a11037d493601648b927087e7 | refs/heads/master | 2021-01-12T04:44:25.541487 | 2017-03-02T21:22:25 | 2017-03-02T21:22:25 | 77,779,176 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 85 | py | from django.apps import AppConfig
class AhmadConfig(AppConfig):
name = 'ahmad'
| [
"ahmadlabeb1992@gmail.com"
] | ahmadlabeb1992@gmail.com |
b093275d94113a03d3dc99426d6e03999ef3e8e3 | 850500f7b47f742dca7235de01808487d08e7876 | /LinkedList/pair_twin_sum.py | 8d4fd1bdedf79893ed591cd91766941205df2e04 | [] | no_license | rodriguez-jan/leetcode | febd44432d1ae1493e3a2f32d3a383e96fd5df29 | 88369f6486fb4290b010968b247d809935bd0194 | refs/heads/master | 2022-08-21T23:15:18.781545 | 2022-08-03T23:23:23 | 2022-08-03T23:23:23 | 204,528,708 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,289 | py | # Definition for singly-linked list.
# class ListNode:
# def __init__(self, val=0, next=None):
# self.val = val
# self.next = next
class Solution:
def pairSum(self, head: Optional[ListNode]) -> int:
#find_middle
def find_middle(head):
slow_ptr = head
fast_... | [
"rodriguez.janrichard@gmail.com"
] | rodriguez.janrichard@gmail.com |
4d097fbf07c7acb8c61b01f51fcf3662cec4e8a7 | cf6d47e9a135f67929663137073f8e916ea3801b | /bin/saved_model_cli | 1f6b07551651126b8e896da9b909340a303fef99 | [] | no_license | danielgallegoso/MusicGeneration | 56d41eed21052034d3e3e68154a9914b626259dd | dc4cc12a9a72b975c873e0a36a47bfe980075e1a | refs/heads/master | 2022-12-29T22:28:38.429628 | 2020-10-15T06:29:20 | 2020-10-15T06:29:20 | 304,223,297 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 312 | #!/Users/danielgallegos/Documents/Stanford/cotermWinter/cs230/MusicGeneration/bin/python
# -*- coding: utf-8 -*-
import re
import sys
from tensorflow.python.tools.saved_model_cli import main
if __name__ == '__main__':
sys.argv[0] = re.sub(r'(-script\.pyw?|\.exe)?$', '', sys.argv[0])
sys.exit(main())
| [
"72905829+danielgallegoso@users.noreply.github.com"
] | 72905829+danielgallegoso@users.noreply.github.com | |
d2ae4a959e3335f2a14863c8ee189300ed63a5a0 | e290f2e1ff9036f6f663d967a3a168363da4493f | /20200222/main.py | 32d345abaa2fda64c4101b3dc3c2f546380a970c | [] | no_license | Kevin3182/Road-to-python-programmer | 3346847bc6d698dc5c1734b9601d7244d82b4598 | 48a7b6ca3b6c97a2e5723ea6417c668f2cc9fcc0 | refs/heads/master | 2020-12-28T05:18:18.923891 | 2020-02-22T05:33:52 | 2020-02-22T05:33:52 | 238,193,950 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,225 | py | import pygame
import sys
import random
from time import sleep
Width = 480
Height = 640
rockImage = ['./src/rock01.png','./src/rock02.png','./src/rock03.png',\
'./src/rock04.png','./src/rock05.png','./src/rock06.png',\
'./src/rock07.png','./src/rock08.png','./src/rock09.png',\
'./... | [
"kimgm2022@tciscommunity.com"
] | kimgm2022@tciscommunity.com |
2189d43d2a4c83015687657016f39c1584700a0e | 104bebf5acef7e8baed27283ee78fcfc6c1c71a4 | /elkm1_lib/__version__.py | 7e9102d26f5d4f6ec6ae02e201c41da343e9b114 | [
"MIT"
] | permissive | stevemcquaid/elkm1 | dd8ebb6d2d5254c8c92fcfa3c1e8b0f70f384eb3 | 843092329208a3a2bafdedc0a8984a6f20626480 | refs/heads/master | 2020-03-28T00:29:19.545824 | 2018-09-04T20:53:49 | 2018-09-04T20:53:49 | 147,420,147 | 0 | 0 | MIT | 2018-09-04T21:12:28 | 2018-09-04T21:12:28 | null | UTF-8 | Python | false | false | 89 | py | """Version of package."""
VERSION = (0, 7, 8)
__version__ = '.'.join(map(str, VERSION))
| [
"gwwaters@gmail.com"
] | gwwaters@gmail.com |
8d5ab2ac2f9f3feed3bcb898040784ad256e54f9 | 8878700a71196cc33b7be00357b625cf9883043c | /store/tests/tests_viewset_OrderLine.py | e4296695c7e7c37c60581d5c5eff5512440e9821 | [
"MIT"
] | permissive | Jerome-Celle/Blitz-API | bc7db966cbbb45b29bbbe944adb954d6cb5a0040 | a0f870d6774abf302886ab70e169572a9d0225ef | refs/heads/master | 2021-06-10T06:05:03.753314 | 2018-11-30T15:40:38 | 2018-11-30T15:46:19 | 165,642,546 | 0 | 0 | MIT | 2019-01-14T10:32:29 | 2019-01-14T10:32:28 | null | UTF-8 | Python | false | false | 19,573 | py | import json
from datetime import timedelta
from rest_framework import status
from rest_framework.test import APIClient, APITestCase
from django.utils import timezone
from django.urls import reverse
from django.contrib.auth import get_user_model
from django.contrib.contenttypes.models import ContentType
from blitz_a... | [
"frank.jeanneau@gmail.com"
] | frank.jeanneau@gmail.com |
2f93382e656caee4ccd4b62d3752f31716d8231a | fc2e59418cc82b3856b056222660b2021ff17c59 | /tests/test_evaluation.py | 57add5dab894b5808b12c449a9b9ef4f2c287fad | [] | no_license | Ivan1248/deep-learning-uncertainty | 7bd3cd0cb16d70eda9336972d0458270a79560db | 9ce315777d8beb9443c312f75232c028822c7075 | refs/heads/master | 2021-12-02T03:46:37.510755 | 2021-11-23T14:29:03 | 2021-11-23T14:29:03 | 128,963,299 | 11 | 6 | null | null | null | null | UTF-8 | Python | false | false | 3,829 | py | import numpy as np
from sklearn.metrics import accuracy_score, precision_score, recall_score, f1_score, jaccard_similarity_score
from _context import dl_uncertainty
from dl_uncertainty.evaluation import NumPyClassificationEvaluator
#### begin from https://github.com/chainer/chainercv/blob/master/chainercv/evaluations... | [
"ivan.grubisic.mail@gmail.com"
] | ivan.grubisic.mail@gmail.com |
cd6e8276b89ab78c02389cbb84c51b5ba844fbdb | 421d58c6b93b81e0724f8f4576119300eb344252 | /influencers/users/migrations/0005_auto_20181111_1505.py | 1d7c2ca75db84615820701ef82599ab6c705746f | [] | no_license | momen/influencers | 7728228c92a552bdff9ae62f85986ad03bce186e | f9c76cfc2970440112967f9579dc31f77063cb25 | refs/heads/master | 2020-06-03T22:20:03.881411 | 2019-06-15T07:48:43 | 2019-06-15T07:48:43 | 191,754,739 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 523 | py | # Generated by Django 2.1.2 on 2018-11-11 15:05
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('users', '0004_user_is_removed'),
]
operations = [
migrations.AlterField(
model_name='user',
name='is_active',
... | [
"momennegm@gmail.com"
] | momennegm@gmail.com |
370746879f92c1b13f11c698959e6632b66b6d98 | 0a2bc9bd770e9797a9cd1f73e7dddba7a69a9c35 | /Element/basepage.py | a9c2ed0a51709d438c1bbdaaab4c7f8c46f93897 | [] | no_license | wcg2009zc/Che360Test | 21ff7c7ffed20aae8876199c25705fad6722a8b4 | 5a86f5117fed9850c09302a4c62950b70de3e5b0 | refs/heads/master | 2020-05-21T07:09:26.461706 | 2019-05-10T15:56:30 | 2019-05-10T15:56:30 | 185,952,494 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 29,038 | py | #!usr/bin/env python
#-*- coding:utf-8 _*-
# 作者 :zhangchen
# 创建时间 :2019/5/8 0008 17:42
# 文件 :basepage.py
# IDE : PyCharm
import unittest
# from selenium import webdriver
# from Util.singleton import singleton
# from selenium.webdriver import ActionChains
# from selenium.common import exceptions
from sel... | [
"409943746@qq.com"
] | 409943746@qq.com |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.