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
188463eef65b992eaef6cb44b0c7fb255e3de663
95202a26cb232a4da52b94935ee78f354e869434
/experiments/mnist.py
4c0b8beb663bcdc789413b603eaf8877ce22af7e
[]
no_license
igul222/Marmot
f0b03961a53a05e7053703ed1ee510b39dac5e98
56eb74b8b8794f3468a5ef7428ca36ff28e909b3
refs/heads/master
2021-01-22T16:45:26.263314
2015-02-15T18:03:02
2015-02-15T18:03:02
28,121,985
3
0
null
null
null
null
UTF-8
Python
false
false
1,540
py
import marmot import gzip import cPickle # Data file can be downloaded from: # http://www.iro.umontreal.ca/~lisa/deep/data/mnist/mnist.pkl.gz f = gzip.open('data/mnist.pkl.gz', 'rb') training_data, validation_data, test_data = cPickle.load(f) f.close() # Load datasets onto the GPU training_data = marmot.datasets.Sim...
[ "igul222@gmail.com" ]
igul222@gmail.com
e30b6b46b03003878a1384a37b8192a9998d7859
1c5a3945875fbd459c10991177414b3fb5402b36
/q4.py
eb481e6d2c4d4f7a8358413b537fba82fc5f6d64
[]
no_license
ap1124/pytest
ec8acf3f12ddb3d195d84ed4358c0b870e34c339
a322cefddaa96af7df1dca992698c8097be4dfa0
refs/heads/master
2020-12-19T16:22:24.816481
2020-01-23T12:25:28
2020-01-23T12:25:28
235,788,256
0
0
null
null
null
null
UTF-8
Python
false
false
464
py
class Dogs: def __init__(self,name,age): self.name = name self.age = age class Pets: l1 = [] def __init__(self,list1): for i in list1: self.l1.append(i) print(f"I have {len(self.l1)}") for i in self.l1: print(f"{i.name} is {i.age}") pr...
[ "patelabhi1124@gmail.com" ]
patelabhi1124@gmail.com
597dd8723ef677cd5e0dad4d6aa1daa7d951b79b
6d4a7f3f069e68a984df61b718e39597370a1131
/main/getmail
0b93cfc2d2cab97af7695d7546feb81af95b343b
[]
no_license
nabiuddin6/scripts-1
d7c32a483c1ed4fcca2df3d68bf29cabf81f69c7
7a36fa22cfc369ccc5038332f95779370b12507c
refs/heads/master
2022-09-01T07:14:31.211758
2020-05-30T19:20:02
2020-05-30T19:20:02
270,788,454
1
0
null
2020-06-08T18:55:19
2020-06-08T18:55:18
null
UTF-8
Python
false
false
158
#!/usr/bin/env python3 from fileinput import input as finput with open("/tmp/mymail.txt", "w") as f: for line in finput(): print(line, file=f)
[ "bryanbugyi34@gmail.com" ]
bryanbugyi34@gmail.com
ed0438a2a81c1812ef72db9bef9a607b10a79c2a
92e23c877e02819f3aa6b8497cba2ea2129e8731
/download_images.py
5e07fd3fc6afc8ddb54e4a069f06eed6f1702499
[ "WTFPL" ]
permissive
idurkan/tutor
bf14cefb624cad72c9afcd68db57f0efb2943ac4
756019cfde03a4c9048e7d810bf0e86d291c69ec
refs/heads/master
2021-01-18T01:28:32.660521
2014-02-11T20:09:30
2014-02-11T20:09:30
null
0
0
null
null
null
null
UTF-8
Python
false
false
1,919
py
import json import os import pprint import sys import requests import shutil import datetime def getCardJsonObject(cards_json_path): file_content = open(cards_json_path, 'r').read() cards_json = json.loads(file_content) return cards_json def filter_cards(cards_dict, predicate=lambda k,v: True): for name, singl...
[ "ian.durkan@gmail.com" ]
ian.durkan@gmail.com
09f18a89d264a4c3556269181a361c0c194c2558
70eb2507753571ced463f8c25c5fe043459d2961
/env/bin/mako-render
70c455947df1b23416c40c868b3bc485ca0fddd7
[]
no_license
andrewudell/Bookdrop
75ae4edec7d7e39ef61a0d243faec1ed98b5ee36
ea961c3f00f50259947ae77394f337def3db65fd
refs/heads/master
2021-01-12T10:41:03.646198
2016-11-18T06:36:08
2016-11-18T06:36:08
72,608,671
1
0
null
null
null
null
UTF-8
Python
false
false
344
#!/Users/andrewu/Desktop/projects/Bookdrop3/env/bin/python3.5 # EASY-INSTALL-ENTRY-SCRIPT: 'Mako==1.0.5','console_scripts','mako-render' __requires__ = 'Mako==1.0.5' import sys from pkg_resources import load_entry_point if __name__ == '__main__': sys.exit( load_entry_point('Mako==1.0.5', 'console_scripts',...
[ "andrewu@andrewu-mbp.corp.dropbox.com" ]
andrewu@andrewu-mbp.corp.dropbox.com
1f69ffd47e2fa621af19b41412264298c335f156
c2b1690093b1facad01cca86d1af6ba15ec4a7c9
/build/config.gypi
c06b351b343e92beb5be81bc9e3c069e614e7f63
[]
no_license
kanwaljeet7508/chris
14c8a213cd201eef3a95983f5b30b2eb1064902c
c6a0e4379cfd5faea81362b5e551f43aa3867233
refs/heads/master
2022-11-09T05:19:51.831828
2019-12-24T13:14:19
2019-12-24T13:14:19
229,922,571
0
0
null
2022-10-20T20:25:36
2019-12-24T10:35:19
Java
UTF-8
Python
false
false
5,587
gypi
# Do not edit. File was generated by node-gyp's "configure" step { "target_defaults": { "cflags": [], "default_configuration": "Release", "defines": [], "include_dirs": [], "libraries": [] }, "variables": { "asan": 0, "build_v8_with_gn": "false", "coverage": "false", "debug_ngh...
[ "myvoldev1@gmail.com" ]
myvoldev1@gmail.com
29ca22271235f65d4e77228e17670c71e65dcf24
6d9fbe6e6a2abfd8455e92f6dba67a5f02d87f41
/lib/phonenumbers/data/region_NO.py
209547037b31ee8b2a5a3323313d1cb0da54ac21
[]
no_license
JamesBrace/InfluenceUWebLaunch
549d0b48ff3259b139cb891a19cb8b5382ffe2c8
332d25940e4b1b45a7a2a8200f77c8413543b199
refs/heads/master
2021-09-04T04:08:47.594900
2018-01-15T16:49:29
2018-01-15T16:49:29
80,778,825
1
1
null
null
null
null
UTF-8
Python
false
false
2,317
py
"""Auto-generated file, do not edit by hand. NO metadata""" from ..phonemetadata import NumberFormat, PhoneNumberDesc, PhoneMetadata PHONE_METADATA_NO = PhoneMetadata(id='NO', country_code=47, international_prefix='00', general_desc=PhoneNumberDesc(national_number_pattern='0\\d{4}|[2-9]\\d{7}', possible_number_pat...
[ "james.brace@mail.mcgill.ca" ]
james.brace@mail.mcgill.ca
f955073058801cb81b90796850e5c011e86e2f57
c2c217758425353805adba1b90988c6ad32d0aa1
/practice/ORM.py
cbb00e7fda1d37669921571a27c3093b453f244a
[]
no_license
Ortniter/learning_python
8c332c8fc324f7f36c93cee51c2f3e691d132b0b
decedec73c18bc4b1c26a1bb22daee0d3483bbf8
refs/heads/master
2022-11-17T16:35:21.901566
2020-06-27T09:17:15
2020-06-27T09:17:15
275,338,231
0
0
null
null
null
null
UTF-8
Python
false
false
3,818
py
""" Нужно реализовать ORM (объектно-реляционная модель, набор классов, которым можно описать нужную систему) для интернет-магазина. Функционал магазина: 1. Каталог товаров (товар: название, описание, цена, оценки покупателей, отзывы покупателей); 2. Зарегистрированные покупатели (пользователь: имя, фамилия, телефон, оц...
[ "mr.bob.bigg@gmail.com" ]
mr.bob.bigg@gmail.com
f0865d3b1aa2c365320eb778e775fef346a971d4
b5a23ca0876c081595fb4b8731f6c5dd46bb0cba
/prune_yolov5s.py
c09ca0eb6a3da97521273ab05e7a786944790a4e
[ "Apache-2.0" ]
permissive
APeiZou/yolov5_prune
09bafa204891096d3bb2ba41c403ce54194e8662
cbcac1f0b053234c2c469297a83f468cdfee5259
refs/heads/main
2023-04-07T22:02:36.593595
2021-02-07T01:48:59
2021-02-07T01:48:59
null
0
0
null
null
null
null
UTF-8
Python
false
false
21,296
py
from modelsori import * from utils.utils import * import numpy as np from copy import deepcopy from test import test from terminaltables import AsciiTable import time from utils.prune_utils import * import argparse from models.yolo import Model def copy_weight(modelyolov5,model): focus = list(modelyo...
[ "qqlishuang@gmail.com" ]
qqlishuang@gmail.com
1d3fb9e42222a566a22dd747a253bf227317fee9
a881999c370d77a473187b361dff08cbf5b84194
/mysite/blog/migrations/0008_auto_20181013_2120.py
b9a079c9b790fc6613e05702693edead9dbe321f
[]
no_license
junder79/BlogAdministrativo
87e7f281866a384c228b7c7679f27a2486f55fc2
298e2be31395872c12db29bf5f620babdba5d323
refs/heads/master
2020-04-01T08:24:30.580863
2018-10-15T00:05:55
2018-10-15T00:05:55
153,029,565
0
0
null
null
null
null
UTF-8
Python
false
false
488
py
# Generated by Django 2.1.2 on 2018-10-14 00:20 from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('blog', '0007_auto_20181013_2119'), ] operations = [ migrations.RemoveField( model_name='post', name='media', ...
[ "nicolascisterna729@gmail.com" ]
nicolascisterna729@gmail.com
6382a2f3e34788d2d8db5b48d488440e7fc23d90
2054446dd26c7b1361e4eee6908e00c72e5b0325
/scripts/gn_lib/gn_aux.py
aca1ae04f070241ff5ade6896962e736e818cb4d
[ "Apache-2.0" ]
permissive
mengruizu/ginan
65ad2cda89151cfe6e115da95d0c5ef0ea7a6621
598cfff85be52c53c4a03bca7c0540a9200b1ee3
refs/heads/main
2023-07-28T12:21:40.147648
2021-08-06T07:14:32
2021-08-06T07:14:32
409,628,081
1
1
NOASSERTION
2021-09-23T14:35:45
2021-09-23T14:35:45
null
UTF-8
Python
false
false
1,475
py
'''Auxiliary functions''' import numpy as _np import pandas as _pd def update_mindex(dataframe, lvl_name,loc=0,axis=1): '''Inserts a level named as lvl_name into dataframe df in loc position. Level can be inserted either in columns (default axis=1) or index (axis=0)''' mindex_df = dataframe.columns if axi...
[ "john.donovan@ga.gov.au" ]
john.donovan@ga.gov.au
e1fc711cbdafa14788ed3999fffb04e0286d794c
927cd757e5ad55293406ab21da05805f172c06aa
/pytorch_translate/data/char_data.py
694dcbccfc79dea90938d52c57cafdc25eed2a4a
[ "BSD-3-Clause" ]
permissive
rohan-varma/translate
5b0f2a8a645b4bcca9355bdb515773ce89a5bb70
56d6e9d53da70104f3ac42f99edb0324af2e2304
refs/heads/master
2020-07-05T22:44:30.587754
2019-08-14T23:06:40
2019-08-14T23:10:19
202,805,101
0
0
null
2019-08-16T22:08:43
2019-08-16T22:08:42
null
UTF-8
Python
false
false
18,513
py
#!/usr/bin/env python3 from typing import Any, Dict import numpy as np import torch from fairseq import data, tokenizer from pytorch_translate import vocab_constants from pytorch_translate.data.dictionary import TAGS class InMemoryNumpyWordCharDataset(data.indexed_dataset.IndexedDataset): """analogous to fairse...
[ "facebook-github-bot@users.noreply.github.com" ]
facebook-github-bot@users.noreply.github.com
8ac60cc6b7bd3bac115dc025971264bb3cdc7a04
77037f24f4c6422120a815621c719a0f075fa8a4
/model/transfo_classifier.py
34c29cb1a889b767329f017c72fa66e2104d8e9c
[]
no_license
jiang719/DefectDetection
b1d95b748d939c8983f458ee04104e9b30426301
cd02575e50701b82456d00833cdaf29cf267f953
refs/heads/master
2023-01-20T12:48:57.516707
2020-11-30T17:05:24
2020-11-30T17:05:24
317,289,136
0
0
null
null
null
null
UTF-8
Python
false
false
1,693
py
import torch.nn as nn import torch.nn.functional as F from transformers import TransfoXLModel, TransfoXLConfig, AdaptiveEmbedding class TransfoClassifier(nn.Module): def __init__(self, dictionary, embed_dim=256, hidden_dim=256, head_num=4, layer_num=3, inner_dim=256, max_length=512, dropout=0.1):...
[ "jnhsyxxy@gmail.com" ]
jnhsyxxy@gmail.com
ef22df900732580c24149a5423fd43a55dc14326
2e97db5628f8635c0a03af58a5fb84a9b559f9d2
/api/models/camera.py
75ff2534db032d216c965b5f9eb2239c251413fd
[ "Apache-2.0", "LicenseRef-scancode-unknown-license-reference" ]
permissive
mrn-mln/smart-social-distancing
f4fc261da159221dc6a53bc7e6053fc02dfa834b
7f73142ecc114760224799f2e2130c556e129d17
refs/heads/master
2023-02-19T01:11:47.316947
2020-12-20T11:36:18
2020-12-20T11:36:18
267,154,753
0
0
Apache-2.0
2020-11-22T13:49:15
2020-05-26T21:21:49
Python
UTF-8
Python
false
false
1,276
py
import numpy as np import cv2 as cv from pydantic import BaseModel, Field, validator from typing import List, Optional from .base import EntityConfigDTO, NotificationConfig, SnakeModel class CameraDTO(EntityConfigDTO, NotificationConfig): videoPath: str = Field(example='/repo/data/softbio_vid.mp4') tags: Op...
[ "noreply@github.com" ]
noreply@github.com
5275b4089eb109d30621e280794a8c6e7ffdb7c3
8629f82f971f4e036c2b6358fe353a2c88bfd098
/scripts/extract_sequences.py
7c9b28f7fd0a5f74999951dd2fde3dae357dfaa0
[ "MIT" ]
permissive
mahajrod/MAVR
92828fa1c191b5f8ed08f1ba33f1684df09742cd
8c57ff5519f130357e36e6f12868bc997e52a8a7
refs/heads/master
2023-08-25T01:02:24.738724
2023-08-22T15:13:39
2023-08-22T15:13:39
21,181,911
11
6
null
2017-09-18T20:25:16
2014-06-24T21:45:57
Python
UTF-8
Python
false
false
1,793
py
#!/usr/bin/env python2 __author__ = 'mahajrod' import argparse import os from Bio import SeqIO from BCBio import GFF parser = argparse.ArgumentParser() parser.add_argument("-g", "--in_gff", action="store", dest="in_gff", help="input gff file") parser.add_argument("-i", "--in_fasta", action="stor...
[ "mahajrod@gmail.com" ]
mahajrod@gmail.com
529ca5157b139bca8c4689cb745c0233d20059db
385563d6b7393960c6b82115f5d009eec635f76b
/fpb_kpk.py
fc994e52308255e38e1c3a5f426efaa654ef1683
[]
no_license
suryotriatmojo/Latihan_Ujian_Fundamental_JCDS03
f0f4ee64c85907d9401ab6edc0fd06ea6db752bf
297a142c5803d6b670b8b5ea8c2f48e8ce79f735
refs/heads/master
2020-05-17T23:32:12.603053
2019-04-30T05:11:25
2019-04-30T05:11:25
null
0
0
null
null
null
null
UTF-8
Python
false
false
634
py
angka_1 = int(input('Masukkan angka pertama: ')) angka_2 = int(input('Masukkan angka kedua: ')) # FPB list_1 = [] list_2 = [] for elemen_1 in range(2,angka_1 + 1): if angka_1 % elemen_1 == 0: list_1.append(elemen_1) print(list_1) for elemen_2 in range(2,angka_2 + 1): if angka_2 % elemen_2 == 0: ...
[ "atmojo.suryo@gmail.com" ]
atmojo.suryo@gmail.com
7557bb73d31aa8b8a10b3e9926fde13a328908f9
ce43738efdc61de9d906071bd4ba2cc2604bb55f
/loggingpackage/logger_demo_console.py
ae667d8ff95809c34f600cb160a8dcb7f6a8aa02
[]
no_license
KimEklund13/SeleniumWD-with-Python3x
064db653a77930b4c1eecf9fa4cfe6cb961b72dc
40bd50726a9c92ff2ace5bf369415a0c7c8a623c
refs/heads/master
2021-03-11T00:16:18.926253
2020-04-09T05:24:22
2020-04-09T05:24:22
246,497,408
0
0
null
null
null
null
UTF-8
Python
false
false
980
py
""" Logger Demo """ import logging class LoggingDemoConsole(): def testLog(self): # Create Logger logger = logging.getLogger(LoggingDemoConsole.__name__) logger.setLevel(logging.INFO) # create console handler and set level to info chandler = logging.StreamHandler() ...
[ "kim.eklund@moovel.com" ]
kim.eklund@moovel.com
9607fd52d09c72134a41e99fda41a6c6c08ce18f
5c163f2ba749e4b9dde2cfda314e976fa57a1ae0
/MalarialCellClassification.py
d5ba6936aae111fcdc6ee6fae30d95f3676c7e95
[ "MIT" ]
permissive
DebanganMandal/Malarial-cell-Classification-using-CNN
4fce97aaa677ad8da367b3f0bea2428cf59e645e
44616fcd857626407314129a4202dbf72af905a0
refs/heads/main
2023-06-02T14:16:56.891263
2021-06-18T22:05:34
2021-06-18T22:05:34
378,273,013
1
0
null
null
null
null
UTF-8
Python
false
false
5,730
py
from skimage import io from keras.preprocessing.image import ImageDataGenerator, img_to_array, load_img import numpy as np import os import cv2 import matplotlib.pyplot as plt from PIL import Image from keras.models import Sequential import keras datagen = ImageDataGenerator(rotation_range=45, ...
[ "noreply@github.com" ]
noreply@github.com
382156f7424106f35b3716dec0f898496289fd8c
17227ad12bc0826771ac6ac2b95dddd9517d0117
/Scripts/arm-as-to-ios.py
d58c7002c154b7d02da51e20f65b6baf3d421d80
[ "BSD-2-Clause" ]
permissive
Provenance-Emu/Provenance
e38f7c81e784455d4876f8a2ff999baca0135199
c6f49d7921ee27eb8c0c34ca95ec9dc7baf584c1
refs/heads/develop
2023-08-17T05:04:01.554294
2023-07-01T07:58:33
2023-07-01T07:58:33
12,416,862
2,367
364
NOASSERTION
2023-08-01T07:42:35
2013-08-27T20:34:36
C
UTF-8
Python
false
false
23,721
py
#!/usr/bin/env python # # arm-as-to-ios Modify ARM assembly code for the iOS assembler # # Copyright (c) 2012 Psellos http://psellos.com/ # Licensed under the MIT License: # http://www.opensource.org/licenses/mit-license.php # # Resources for running OCaml on iOS: http://psellos.com/ocaml/ # import sys import...
[ "mail@joemattiello.com" ]
mail@joemattiello.com
c0a8764e80dbd852a83561d0dfc1ab421435e6b6
d12b59b33df5c467abf081d48e043dac70cc5a9c
/ixnetwork_restpy/testplatform/sessions/ixnetwork/vport/protocols/spbmnodebasevidrange_81d2c633816492894c7a12f8e3079130.py
9d2318916d50cd18a199cb2e1fdd10a83d0ec736
[ "MIT" ]
permissive
ajbalogh/ixnetwork_restpy
59ce20b88c1f99f95a980ff01106bda8f4ad5a0f
60a107e84fd8c1a32e24500259738e11740069fd
refs/heads/master
2023-04-02T22:01:51.088515
2021-04-09T18:39:28
2021-04-09T18:39:28
null
0
0
null
null
null
null
UTF-8
Python
false
false
8,678
py
# MIT LICENSE # # Copyright 1997 - 2020 by IXIA Keysight # # Permission is hereby granted, free of charge, to any person obtaining a copy # of this software and associated documentation files (the "Software"), # to deal in the Software without restriction, including without limitation # the rights to use, copy, modify,...
[ "andy.balogh@keysight.com" ]
andy.balogh@keysight.com
bad9e5e48c46b5834b2e1d716682cc35fed6b011
ab3332025eb3441fb2b57bc938a3e2eab5848af2
/paypark/frontend/forms.py
5aa33c9be4a44f552a929aa199afa4e5d68df828
[]
no_license
DimuthuKasunWP/paypark
767a9a3c4708d700a89a2b6a90b62ff2ef8cc035
7bd7c7ecb581695b99afffbe8ac49629e1febf43
refs/heads/master
2020-03-28T18:39:41.753211
2018-07-13T06:04:48
2018-07-13T06:04:48
148,899,413
2
0
null
null
null
null
UTF-8
Python
false
false
6,558
py
# -*- coding: utf-8 -*- from flask_wtf import Form import re from wtforms import TextField, PasswordField, validators, SelectField, HiddenField from flask_login import login_user, current_user from pycountry import subdivisions from ..models import User, LicensePlate, PhoneNumber class LoginForm(Form): email = T...
[ "russkubik@gmail.com" ]
russkubik@gmail.com
847d6cf04f173be81615f171ab5efce76b4cb626
7b5828edda7751700ca7002b40a214e39e5f48a8
/EA/core/sims4/localization/localization_validation.py
2a309a8565c9d42b05bb9dcda2a6797caada7ad5
[]
no_license
daniela-venuta/Sims-4-Python-Script-Workspace
54c33dac02f84daed66f46b7307f222fede0fa62
f408b28fb34626b2e3b2953152343d591a328d66
refs/heads/main
2023-03-29T18:08:39.202803
2021-03-30T19:00:42
2021-03-30T19:00:42
353,111,243
1
0
null
null
null
null
UTF-8
Python
false
false
1,400
py
from protocolbuffers.Localization_pb2 import LocalizedStringToken import sims4.log import sims4.reload logger = sims4.log.Logger('Localization', default_owner='epanero') with sims4.reload.protected(globals()): _localized_string_validators = {} def register_localized_string_validator(validator_gen): key = va...
[ "44103490+daniela-venuta@users.noreply.github.com" ]
44103490+daniela-venuta@users.noreply.github.com
cdc23af2384a0e3b2df21f4083a35ba0ea45409d
f332e3028a5d8fb8a9c09f7f84e249c063e2a561
/admit/at/test/integrationtest_moment.py
ae28d020b133d1c2c01fe6aed178cb278bb54aee
[ "MIT" ]
permissive
astroumd/admit
48098dc0490813467317dda4388c6de832ed8772
bbf3d79bb6e1a6f7523553ed8ede0d358d106f2c
refs/heads/master
2023-03-11T17:51:12.944237
2020-09-09T16:17:59
2020-09-09T16:17:59
69,020,469
4
2
null
2018-09-26T21:07:17
2016-09-23T11:54:08
Python
UTF-8
Python
false
false
4,739
py
#! /usr/bin/env casarun # # # you can either use the "import" method from within casapy # or use the casarun shortcut to run this from a unix shell # with the argument being the casa image file to be processed # """ Right now you need to run this test inside of casapy This test does the following: creates an...
[ "teuben@gmail.com" ]
teuben@gmail.com
44595bfdd25abfe6bf1b2f42d272278b63fce0db
0f27e13b72ed28d5a49a0bb7daa4cb1011fcffcf
/twitteruserapp/migrations/0001_initial.py
fa11e970df8736f435d3b506ea00d5a65f70bdaf
[]
no_license
cmcafee1988/twitterclone
2acb9ae202a33550580ecf3a62b7fe57814fdd32
63657c2618127850599f48a7e0ad2bbfd2887b89
refs/heads/master
2022-12-16T18:29:27.854066
2020-09-14T13:18:07
2020-09-14T13:18:07
292,989,653
0
0
null
2020-09-16T03:29:38
2020-09-05T02:51:12
Python
UTF-8
Python
false
false
3,025
py
# Generated by Django 3.1.1 on 2020-09-11 17:43 from django.conf import settings import django.contrib.auth.models import django.contrib.auth.validators from django.db import migrations, models import django.utils.timezone class Migration(migrations.Migration): initial = True dependencies = [ ('aut...
[ "therealmcafee88@gmail.com" ]
therealmcafee88@gmail.com
cdfe88038768b5f51bd11fe9200857cae9d42d6a
6258d418a2960341a04adb86d63900c03638d27d
/344-Reverse-String.py
7f407882ffb8cfe47cc8ae9a514a4548a2db0c97
[]
no_license
rojinadeuja/Practice-Problems
3ed6be072dece1a3132aa9824d8bdec62e856e26
ef03ee14e910983bbce02faf0afd19713054fd5b
refs/heads/main
2023-07-08T01:39:47.101867
2021-08-23T23:32:56
2021-08-23T23:32:56
309,872,512
0
0
null
null
null
null
UTF-8
Python
false
false
698
py
''' Leetcode Q344- https://leetcode.com/problems/reverse-string/ Write a function that reverses a string. The input string is given as an array of characters char[]. Do not allocate extra space for another array, you must do this by modifying the input array in-place with O(1) extra memory. You may assume all the char...
[ "rojinadeuja33g@gmail.com" ]
rojinadeuja33g@gmail.com
9fdd4bbbe2dbd71559896cbe322ff97370c02175
d5962a28c41c4634f9ad0467e801946fee715f85
/3-inter-process-communication/tester.py
acb0cc6f7784b5d118f5f044dda873d7ca4adca2
[]
no_license
albino-slug/OS-assignments
bfaa0c8d49911a9ec1fe131c4042e75a87e2f56e
9706f9c78595e7ff8a1aa4f59927e9d7d9e97fe7
refs/heads/master
2021-04-12T04:27:35.849658
2018-03-18T13:25:51
2018-03-18T13:25:51
125,724,728
0
0
null
null
null
null
UTF-8
Python
false
false
26,080
py
#!/usr/bin/env python2 import re, os, sys, socket, struct, subprocess, json, base64 import threading, ctypes, ctypes.util, time, traceback, random A3_DATA = "eyJsb2dpY2FsX3NwYWNlX3NlY3Rpb25fYWxpZ25tZW50X2RvdWJsZSI6ICI2MTQ0IiwgImZpbHRlcl9uYW1lX2VuZHNfd2l0aCI6IGZhbHNlLCAibG9naWNhbF9zcGFjZV9zZWN0aW9uX2FsaWdubWVudCI6ICIzM...
[ "madalina@albino.slug" ]
madalina@albino.slug
f6ee5d38a811b0ba42a5f7020eb5532521567215
f13c586b82224c07f28f7bb7d9dd503e64eb5cb2
/tests/devices/qubit/test_apply_operation.py
7895bdba75985e2cdcf0307adf762afe607fd019
[ "Apache-2.0" ]
permissive
therooler/pennylane
095f104e40254be2ed3050bc7be9ea9d2ee11ebd
fde1f24bd784d6ee2af5c980c2d5010b4c2bbe54
refs/heads/master
2023-04-29T13:32:43.115108
2023-04-18T09:41:42
2023-04-18T09:41:42
202,356,685
0
0
Apache-2.0
2019-08-14T13:30:39
2019-08-14T13:30:38
null
UTF-8
Python
false
false
17,022
py
# Copyright 2018-2023 Xanadu Quantum Technologies Inc. # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # http://www.apache.org/licenses/LICENSE-2.0 # Unless required by applicable law or...
[ "noreply@github.com" ]
noreply@github.com
672a22a38372e45c99eabdb51f519b148f6a341f
248c6492637924ae857fc863a6b1a1ba3b99877b
/new_env/bin/easy_install-3.7
27f3f9fc50aa8eb0c0da47533ee7a10b9b1c033e
[]
no_license
shahazad08/Fundoo_App
e93367cfd11c76432abe50089f1135ed1f0a7e95
e50103b5131e8f46496127fc8aaaff57e34de36f
refs/heads/master
2020-04-28T10:17:09.759526
2019-03-23T13:07:14
2019-03-23T13:07:14
175,196,775
0
0
null
null
null
null
UTF-8
Python
false
false
445
7
#!/home/admin1/Documents/RestApi/new_env/bin/python # EASY-INSTALL-ENTRY-SCRIPT: 'setuptools==39.1.0','console_scripts','easy_install-3.7' __requires__ = 'setuptools==39.1.0' import re import sys from pkg_resources import load_entry_point if __name__ == '__main__': sys.argv[0] = re.sub(r'(-script\.pyw?|\.exe)?$', ...
[ "sk.shahazad@gmail.com" ]
sk.shahazad@gmail.com
e01fcdd9a7c7a09cf58ea3801f6bde93d55380d4
09594bbfed9d2a417e763bc7d8381c731405c5bd
/social/processors.py
f1f2615853b525741690c261d1edc3dcf9a98d04
[]
no_license
Isaacb22/Web-empresarial
d6fafd158ca4c50eb834a1abe73c0e01c61723b5
f1debe3176c18380dacdeed44fd1f23d1c85c706
refs/heads/master
2020-04-08T12:59:45.289385
2018-11-27T17:09:52
2018-11-27T17:09:52
159,370,646
3
0
null
null
null
null
UTF-8
Python
false
false
149
py
from .models import Link def ctx_dict(request): ctx = {} links = Link.objects.all() for link in links: ctx[link.key] = link.url return ctx
[ "ibonalde001@gmail.comgit config --global user.name Isaacb22git config --global user.email ibonalde001@gmail.com" ]
ibonalde001@gmail.comgit config --global user.name Isaacb22git config --global user.email ibonalde001@gmail.com
8378269bdfc941ebfe1823d6247b76ebcd7b165c
1c90fc248afc8e282e5216b58f58d74bd91b1fb6
/crud/settings.py
f75717ed95c8745686249c7faf35a9ff763db4fd
[]
no_license
GH-Lim/django_orm_crud
779494b54f08a863fee3924726951b7b6d73228e
b152fa09bc38d10769977f7fc900e8651fcbb1fb
refs/heads/master
2020-07-08T02:25:47.421393
2019-08-22T11:01:33
2019-08-22T11:01:33
203,539,481
0
0
null
null
null
null
UTF-8
Python
false
false
3,249
py
""" Django settings for crud project. Generated by 'django-admin startproject' using Django 2.2.4. For more information on this file, see https://docs.djangoproject.com/en/2.2/topics/settings/ For the full list of settings and their values, see https://docs.djangoproject.com/en/2.2/ref/settings/ """ import os # Bu...
[ "gunhyuck11@naver.com" ]
gunhyuck11@naver.com
3441be0b35ed322cb32bf6ba5f4e7431d88160a2
acb8e84e3b9c987fcab341f799f41d5a5ec4d587
/langs/5/nsj.py
f710dc66040e9b9bd32fa4cffb1a45033aa46a3b
[]
no_license
G4te-Keep3r/HowdyHackers
46bfad63eafe5ac515da363e1c75fa6f4b9bca32
fb6d391aaecb60ab5c4650d4ae2ddd599fd85db2
refs/heads/master
2020-08-01T12:08:10.782018
2016-11-13T20:45:50
2016-11-13T20:45:50
73,624,224
0
1
null
null
null
null
UTF-8
Python
false
false
486
py
import sys def printFunction(lineRemaining): if lineRemaining[0] == '"' and lineRemaining[-1] == '"': if len(lineRemaining) > 2: #data to print lineRemaining = lineRemaining[1:-1] print ' '.join(lineRemaining) else: print def main(fileName): with open(fileName) as f: for line in f: ...
[ "juliettaylorswift@gmail.com" ]
juliettaylorswift@gmail.com
5ec373cf25b1fa308541e6b47985e4c831ed3b19
f89c5f21e2e219667f329cddbfead8114488a66c
/pelicanconf.py
1f0d9916550b4976b9f7cbb6b0e9809bcf702fd3
[ "MIT" ]
permissive
phoracek/vytvarna.cz
d4c067401e4bd15d8427f6c07259e8b7ecef42e6
96acba4c5461ff7b6b55e51fc44af90652e8a339
refs/heads/master
2021-01-10T06:17:40.256894
2015-10-28T10:00:35
2015-10-28T10:00:35
45,068,197
0
0
null
null
null
null
UTF-8
Python
false
false
839
py
# -*- coding: utf-8 -*- # from __future__ import unicode_literals SITENAME = u'Výtvarna' SITEURL = '/' AUTHOR = u'Petr Horáček, TODO' TIMEZONE = 'Europe/Prague' DEFAULT_LANG = u'en' DEFAULT_DATE_FORMAT = '%d. %m. %Y' PLUGIN_PATH = 'plugins' PLUGINS = ['lightbox'] PATH = 'content' STATIC_PATHS = ['images', 'extra/f...
[ "phoracek@redhat.com" ]
phoracek@redhat.com
e0b12b68a179b38d4486cec4d980277ebc661755
8c56bd440c5b59ff51e5d8a05b16b3ef13b8a7b4
/inheritance.py
c18a0f2530fa60b5a8e29a6c6230641ccc6f41dc
[]
no_license
kamalimari/python-beginner
ee05e678a4818734a1b84d66a954247a0d798f87
54e84f9eb87fd6ef5e6c17adc49cf0907dcf8732
refs/heads/master
2020-04-19T04:14:50.724534
2019-03-29T04:38:31
2019-03-29T04:38:31
167,957,535
1
0
null
null
null
null
UTF-8
Python
false
false
426
py
class Person: def __init__(self, name, age): self.name = name self.age = age print(self.name) print(self.age) def display(self): print("I am ", self.name) print("I am", self.age) class Student(Person): def islearner(self): print("True") p = Perso...
[ "admin@Intern1-MacBook-Pro.local" ]
admin@Intern1-MacBook-Pro.local
7b9565c9c890f3721eb0cfe90417c25a5f7cd443
f07b0142e37afe0bf8ed4d56399a0a49f5b1801b
/lino_xl/lib/phones/choicelists.py
f28f05d7ebd96e388d405b39764b669f8fb987a4
[ "BSD-2-Clause" ]
permissive
khchine5/xl
af70fb21e4caeb05ff62e9618113c278d71a75ed
b1634937a9ce87af1e948eb712b934b11f221d9d
refs/heads/master
2021-01-20T22:51:01.193260
2018-08-22T07:47:43
2018-08-22T07:47:43
52,145,840
1
0
BSD-2-Clause
2018-08-19T12:29:06
2016-02-20T09:21:19
Python
UTF-8
Python
false
false
1,501
py
# Copyright 2017 Luc Saffre # # License: BSD (see file COPYING for details) from django.core.validators import validate_email, URLValidator from etgen.html import E from lino.api import dd, _ from lino.modlib.office.roles import OfficeStaff validate_url = URLValidator() class ContactDetailType(dd.Choice): fi...
[ "luc.saffre@gmail.com" ]
luc.saffre@gmail.com
203092607cd9a70598faa685ecd03c7ac50157c5
2d051032fd1d77ca425d9a767350b62f9940fe4e
/CompetitionManagementSystem/extra_apps/xadmin/views/edit.py
d4f29d8a9a19bd8983844722c6e7f8de2e454da3
[]
no_license
ZZSBigbed/-
5152a4d3b16f5352796603538468d840a559ba29
1a5f2ef2685559336ba707218db431b2b9ba32d1
refs/heads/master
2021-08-07T13:12:46.298053
2020-04-24T13:22:14
2020-04-24T13:22:14
161,039,578
0
0
null
null
null
null
UTF-8
Python
false
false
20,454
py
from __future__ import absolute_import import copy from crispy_forms.utils import TEMPLATE_PACK from django import forms from django.contrib.contenttypes.models import ContentType from django.core.exceptions import PermissionDenied, FieldError from django.db import models, transaction from django.forms.models import m...
[ "553589030@qq.com" ]
553589030@qq.com
ca9acfa1dd47916cffe5175ad3058cc1f82b0117
12f2b75b50153463b08b09faea5ce5f499942192
/TestCNNATT.py
5624710e033b8b623001f3af5c27199956e7c201
[ "MIT" ]
permissive
marioviti/Transformer-Graph-Network-for-Coronary-plaque-localization-in-CCTA
bd691acc40a265d37f7aa9765502650b4a9478a6
47ede116f7e2ccd20f51c14e2b1295631cbe680e
refs/heads/main
2023-08-14T20:05:51.912129
2021-10-15T10:35:39
2021-10-15T10:35:39
417,415,021
4
0
null
null
null
null
UTF-8
Python
false
false
1,470
py
from torch.utils.data import Dataset, DataLoader, WeightedRandomSampler import argparse from .Dataset import LocalizationDataset from .Trainer import TrainCNNATT, create_trainer import torch as th def load_lightning_module(checkpoint_path, model_class): ckpt = th.load(checkpoint_path) pretrained_dict = ckp...
[ "noreply@github.com" ]
noreply@github.com
c1dad735f3092c08ca4a5b62d834b8b73ca6a7af
14cfee807a8dddb7be22ce24582e7d6692b7e645
/src/coloring.py
f5344012981a724a17e39e1ed75ebf398e6242d6
[]
no_license
ntaff/pyGraphs
9b0e10c1e010381a0b15d066049d56f973820195
d2abf85f352d0598db6b856475cf9c32bf954a88
refs/heads/master
2020-03-30T20:55:00.611531
2018-12-14T08:29:55
2018-12-14T08:29:55
151,609,769
3
1
null
null
null
null
UTF-8
Python
false
false
3,316
py
import lib.vect as Vector from itertools import count, filterfalse # Détermine le plus petit entier >= 1 qui n’appartient pas à la liste L. On se servira de cette fonction pour déterminer # la plus petite couleur n’appartenant pas à la liste des couleurs interdites. def mini(L): it = filterfalse(set(L).__contains...
[ "noreply@github.com" ]
noreply@github.com
c9fa9b364091e379c4cc912b154200787e702303
776cf3b0f5865c8639692e1256abb5ad493c9f92
/__old_stuff/pga/pga_no_sort/maps.py
b5503e9085e62d6d3cdc696a8de88c13ab354728
[]
no_license
ralphbean/ms-thesis
90afb1d5729d83f1910d8dec2e6d4c65d0304bc0
3fea08aa069d735fb7048afbab37bb429800fb48
refs/heads/master
2021-01-19T11:28:14.382925
2012-01-25T15:24:54
2012-01-25T15:24:54
3,265,816
0
0
null
null
null
null
UTF-8
Python
false
false
666
py
#!/usr/bin/python from math import cos, sin, atan2, sqrt # Some constants: e = 2.71828183 mu = 5.5 a = 5 b = 25 W = [[ -a, a], [-b, b]] def sigmoid( x, mu ): return [( 1 + e**(-mu * ele))**-1 for ele in x] def logistic( X, mu): Y = [X[0], X[1]] Y[0] = Y[0] * ( 1.0 - Y[0]) * mu Y[1] = Y[1] * ( 1.0 - Y...
[ "ralph.bean@gmail.com" ]
ralph.bean@gmail.com
b5afb2edf217c36d54ee903a7b8af1cf17ad1bea
7612a02bc03aaf73b33f5d21e1dad21cc166faf2
/auctions/migrations/0017_auto_20200712_1534.py
ed4c46f6701d0ae301c3baeffab281d91c3fe6c9
[]
no_license
blackpanzero/Commerce
1d3b84a0f5ec65cbe48cefb593aa183aec38b184
8b9beda4bad6a11aaad4d290172ac5d23885dd6f
refs/heads/main
2023-05-11T03:38:41.598442
2021-05-20T09:16:08
2021-05-20T09:16:08
369,148,713
0
0
null
null
null
null
UTF-8
Python
false
false
1,021
py
# Generated by Django 3.0.8 on 2020-07-12 15:34 from django.conf import settings from django.db import migrations, models import django.db.models.deletion class Migration(migrations.Migration): dependencies = [ ('auctions', '0016_bids'), ] operations = [ migrations.AlterField( ...
[ "derrickotieno41@gmail.com" ]
derrickotieno41@gmail.com
d01ca3e093bc9578c7aab0822ce26a0ff20c63aa
ec5bf014ee886e885dc8c6884d4b11075d656774
/pages/admin.py
3a6f78d85a0f8138841067314d381608aacdd733
[]
no_license
mikemaddem/hockey-blog
42232ca9cd31111b7ee607e571454737a648350e
3e3a77530072b62c8c6c4ea7d9fbba2510c8078c
refs/heads/master
2022-07-16T22:30:48.976764
2020-01-06T05:10:36
2020-01-06T05:10:36
232,015,685
0
0
null
2020-02-20T13:59:28
2020-01-06T03:19:25
CSS
UTF-8
Python
false
false
96
py
from django.contrib import admin from .models import StaticInfo admin.site.register(StaticInfo)
[ "mikemaddem@gmail.com" ]
mikemaddem@gmail.com
58d4794d1f5239d2d1a1a30796278481f0b69962
97a2f082613f528dc7bbd27c5453e7b034ba1e98
/src/k5923d.py
9d252ac0647966aa276e9a95045fbd16319bdf24
[ "MIT" ]
permissive
StanGenchev/LenovoK5923Manager
e12d51b3f37afd04ad6e4b1e05fae23a9face13d
49b64ec6e77c3dfa81cffeeb3c2ce10de600ddbd
refs/heads/master
2020-12-03T07:20:29.427259
2020-01-12T16:43:33
2020-01-12T16:43:33
231,240,640
2
1
null
null
null
null
UTF-8
Python
false
false
6,181
py
#!/usr/bin/env python3 # k5923d.py # # Copyright 2020 StanGenchev # # Permission is hereby granted, free of charge, to any person obtaining # a copy of this software and associated documentation files (the # "Software"), to deal in the Software without restriction, including # without limitation the rights to use, copy...
[ "slavzgenchev@gmail.com" ]
slavzgenchev@gmail.com
8dfcde4d529883da7fcaa024d87d1e941b74687a
6caab8d886e8bd302d1994ff663cf5ccb5e11522
/MyNotes_01/Step01/3-OO/day02_10/demo02.py
af2d3e088e530fe9803b841cfed86c5256b3275a
[]
no_license
ZimingGuo/MyNotes01
7698941223c79ee754b17296b9984b731858b238
55e6681da1a9faf9c0ec618ed60f5da9ecc6beb6
refs/heads/master
2022-07-30T21:30:32.100042
2020-05-19T16:59:09
2020-05-19T16:59:09
265,254,345
0
0
null
null
null
null
UTF-8
Python
false
false
935
py
# author: Ziming Guo # time: 2020/2/15 """ demo02: 类成员 练习:exercise03.py """ class ICBC: """ demo02: 工商银行 """ # 表示总行的钱 total_money = 1000000 # 这不是对象的数据,这是类的数据 # 因为类方法没有对象地址self,所以不能访问实例成员 @classmethod def print_total_money(cls): # print(id(cls),id(ICBC))...
[ "guoziming99999@icloud.com" ]
guoziming99999@icloud.com
11480f96379525da34472d3772b00e837fc77180
8c91660020fd2b83892d3dd9b0b3af10a13448d4
/test_flo.py
cc3d521dfc798714284a8f8f03d9d64db2e47db5
[]
no_license
krzakala/RandomPythonCodes
7d5495563071616ff16f34de50ee533ef4540112
c4568df50c4cdbc169591380edca8e0befaf0bcb
refs/heads/master
2020-04-13T08:55:13.355550
2019-01-29T06:15:59
2019-01-29T06:15:59
163,096,035
0
0
null
null
null
null
UTF-8
Python
false
false
4,431
py
from math import exp, sqrt, erf, erfc, pi from scipy.integrate import quad import numpy as np import matplotlib.pyplot as plt # Routines def Stability(rho, K=1): A = 4 * K * K * exp(- K * K / rho) / (2 * pi * rho) B = (1. / erf(K / sqrt(2 * rho)) + 1. / erfc(K / sqrt(2 * rho))) return A * B def Gauss(x)...
[ "florent.krzakala@gmail.com" ]
florent.krzakala@gmail.com
cd15735e33041560a98ded732972d3b02180e502
d6815f4c7774d30c5d12d2205703427693294dec
/tests/unit/more/debian/security/test_selinux.py
af2403dca31f2fdbb42f262bc50c9f76b86bba2a
[ "MIT" ]
permissive
python-provy/provy
2579bbedc31f559992b7c007a4a2e75424d3507f
ca3d5e96a2210daf3c1fd4b96e047efff152db14
refs/heads/master
2021-12-30T12:03:28.083794
2019-02-20T16:55:32
2019-02-20T16:55:32
1,948,340
16
3
MIT
2021-12-26T06:30:37
2011-06-24T16:01:45
Python
UTF-8
Python
false
false
4,010
py
from mock import call, patch from nose.tools import istest from provy.more.debian import AptitudeRole, SELinuxRole from tests.unit.tools.helpers import ProvyTestCase class SELinuxRoleTest(ProvyTestCase): def setUp(self): super(SELinuxRoleTest, self).setUp() self.role = SELinuxRole(prov=None, cont...
[ "diogobaeder@yahoo.com.br" ]
diogobaeder@yahoo.com.br
7ffef37f5b3be1be74d4593e7e8beffa3ca43ab4
939e1f59abcfe226d4a316c078c2a20647ee43da
/operators/email_operator.py
ff13121578086d1fb47cd37cfdff0420ea9ad088
[]
no_license
kundroomajid/twitter_plugin
34f553b086acc5beb601e532a24788dff27ba714
46b838307e789f4c51a40f597a9794dacd6697db
refs/heads/master
2023-04-22T21:54:27.381212
2021-05-04T10:57:27
2021-05-04T10:57:27
364,199,489
1
1
null
null
null
null
UTF-8
Python
false
false
901
py
# Copyright (c) MAK 2021 # Author : Kundroo Majid # Date : 28/04/2021 from airflow.utils.decorators import apply_defaults from airflow.utils.email import send_email from airflow.models.variable import Variable from airflow.operators.python_operator import PythonOperator from twitter_plugin.utils.exceptions import C...
[ "kundroomajid@gmail.com" ]
kundroomajid@gmail.com
760438c3af5adf7bfb936c3a780f4284e5c4c8c5
bd87d8947878ccb2f5b720e70a22493b00868fd3
/justpy/02_basics/hello.py
2888edfd040f2b33e125af2a67c8b73a03f4132e
[]
no_license
damiansp/completePython
4cbf12ef682a1d4a5498f77e407dc02e44a7d7ac
3f5e2f14d79c93df5147b82d901190c054535158
refs/heads/master
2023-09-01T20:50:03.444440
2023-08-28T00:27:57
2023-08-28T00:27:57
99,197,610
0
1
null
null
null
null
UTF-8
Python
false
false
131
py
import justpy as jp def hello(): wp = jp.WebPage() p = jp.P(text='Hello, World!', a=wp) return wp jp.justpy(hello)
[ "damiansp@gmail.com" ]
damiansp@gmail.com
19caeba9c0e61aa8f31b56683c06fdeaf2f2a064
6ed034d0a5e239d7b0c528b287451409ffb4a494
/mmpose/models/heads/temporal_regression_head.py
97a07f9cf2c9ef0497380ca5c602142b206f3b52
[ "Apache-2.0" ]
permissive
ViTAE-Transformer/ViTPose
8f9462bd5bc2fb3e66de31ca1d03e5a9135cb2bf
d5216452796c90c6bc29f5c5ec0bdba94366768a
refs/heads/main
2023-05-23T16:32:22.359076
2023-03-01T06:42:22
2023-03-01T06:42:22
485,999,907
869
132
Apache-2.0
2023-03-01T06:42:24
2022-04-27T01:09:19
Python
UTF-8
Python
false
false
12,400
py
# Copyright (c) OpenMMLab. All rights reserved. import numpy as np import torch.nn as nn from mmcv.cnn import build_conv_layer, constant_init, kaiming_init from mmcv.utils.parrots_wrapper import _BatchNorm from mmpose.core import (WeightNormClipHook, compute_similarity_transform, fliplr_regres...
[ "annblessus@gmail.com" ]
annblessus@gmail.com
b02f6794a2960633e10b5ef686615cb3d43c8ac0
755935209a6028e4d95de4b26e2e820763bd4223
/youtube_dl/extractor/npr.py
26a0f9bf1296eb9386ee0b13eab51357ae9979b1
[ "LicenseRef-scancode-unknown-license-reference", "LicenseRef-scancode-public-domain", "Unlicense" ]
permissive
Kaspi/youtube-dl
8af6e24feff6246af7d8ec878be8e91ae1507409
e217ae2a69c789f4d0c055427e212815fad85cf7
refs/heads/master
2020-02-04T10:18:35.565748
2015-10-18T03:36:43
2015-10-18T03:36:43
44,084,854
0
0
null
2015-10-18T03:36:43
2015-10-12T04:55:18
Python
UTF-8
Python
false
false
2,485
py
# coding: utf-8 from __future__ import unicode_literals import os.path import re from ..compat import compat_urllib_parse_unquote from ..utils import url_basename from .common import InfoExtractor class NprIE(InfoExtractor): _VALID_URL = r'http://(?:www\.)?npr\.org/player/v2/mediaPlayer.html?.*id=(?P<id>[0-9]+)'...
[ "je326@hotmail.com" ]
je326@hotmail.com
9434b9365ea19a33562d3a7d1772083dd066af78
664c47797e363314bb584e798eae32634d8800fa
/manual_control.py
09412ff147c303da769891505d48ffa45d9f1926
[ "MIT" ]
permissive
geraudnt/compositional-rl-starter
960350ce9833bba189f08be0b5ce6538f0d1e894
6f928da9b428833b0f2924ed5cd6a5dc4bac792f
refs/heads/master
2022-12-23T06:43:13.078855
2020-10-05T18:49:48
2020-10-05T18:49:48
278,937,260
0
0
null
null
null
null
UTF-8
Python
false
false
2,831
py
#!/usr/bin/env python3 import time import argparse import numpy as np import gym import gym_minigrid from gym_minigrid.wrappers import * from scripts.wrappers import * from gym_minigrid.window import Window import babyai from scripts.wrappers import * parser = argparse.ArgumentParser() parser.add_argument( "--en...
[ "nanguetasse2000s@gmail.com" ]
nanguetasse2000s@gmail.com
9b6a7efd933b95b6d869bcec2a89469658c6997c
22f480f1ec13e59f1bcf4a244973db64f875e0db
/coroutine_test.py
42b3accced3c46d5ec3c57341d831fd9e94cd443
[]
no_license
xiphodon/spider_hs_code
de3a4a555be2ed9dac295ef93a921c3697a6bc6a
c447c94c367c029fc13af458c668eb1f87a7b67c
refs/heads/master
2021-12-27T23:11:07.925493
2021-12-16T16:41:34
2021-12-16T16:41:34
105,999,246
4
0
null
null
null
null
UTF-8
Python
false
false
1,598
py
#!/usr/bin/env python # -*- coding: utf-8 -*- # @Time : 2019/5/10 9:45 # @Author : GuoChang # @Site : https://github.com/xiphodon # @File : coroutine_test.py # @Software: PyCharm """协程测试""" def consumer(): print('==== c_A ====') r = '' while True: print('==== c_B ====') n = yiel...
[ "827789895@qq.com" ]
827789895@qq.com
9b97a4ded11bc815f821caa467ac2eba73afa176
0c5a5c31e2be888ab33c00450ef9effc544f61cf
/DeepSense-master/android_test/sample_model_tf_prep.py
9a12394689bb01801fc9014c59aac277e76ab841
[]
no_license
abhisheknitp2014/Continual-Learning
4013ae601ae6921a3ec5b5c1c080b45f6f3f8b80
3e7c5f185a6135596f6ab0636f3a14092ffe06ef
refs/heads/main
2023-03-17T20:49:33.026630
2021-03-12T18:10:57
2021-03-12T18:10:57
347,138,769
0
0
null
null
null
null
UTF-8
Python
false
false
1,713
py
import sys import os import tensorflow as tf from tensorflow.python.tools import freeze_graph from tensorflow.python.tools import optimize_for_inference_lib MODEL_SAVE_DIR = 'android_model_saver' MODEL_NAME = 'tfdroid' # Freeze the graph input_graph_path = os.path.join(MODEL_SAVE_DIR, MODEL_NAME+'.pbtxt') checkpoint...
[ "noreply@github.com" ]
noreply@github.com
19830af4b7d35d94d6ba084cdaaada645dd77d97
bf65ecf1689782cdd529bc6358e7d1f3d5256f58
/tutorials/address_parser.py
3eb2fd0417b0f81387a08c6a131127ded538ce90
[]
no_license
cezary4/LearningPython
562558849c24d08f8f129a7809c0734c0d2cd4ea
5ce017faaab23361fb6e3b29728cf8966b7673f8
refs/heads/master
2020-12-03T05:29:00.965988
2013-10-12T15:28:33
2013-10-12T15:28:33
null
0
0
null
null
null
null
UTF-8
Python
false
false
3,270
py
#!/usr/bin/env python """ Below are two techniques showing how to reformat an address. The functions below check an address to see if it has a direction at the end of the address; if so, they reformat the address so the direction appears before the street name. The first function uses indexing and slice notation to ...
[ "tumgorenz@washpost.com" ]
tumgorenz@washpost.com
b7bf34e25705b43a0a78936098833e47fe524ace
96fe7cb1495928a9699ade24200b445755e47f3b
/tests/unit/model/test_code_element_role.py
62f8ec8dfa551f1d335a31db5755fcbc031c51df
[ "Apache-2.0" ]
permissive
Midnighter/structurizr-python
ab4a9f71c01d1febde5c6e61a3a961953f1ef440
31f1dcadb3ff113d8a77ce132657237ea01c307b
refs/heads/devel
2023-02-08T19:43:22.344155
2023-01-21T10:12:49
2023-01-21T10:12:49
144,895,441
61
16
Apache-2.0
2023-01-21T09:53:35
2018-08-15T19:35:01
Python
UTF-8
Python
false
false
1,037
py
# Copyright (c) 2020, Moritz E. Beber. # # 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 # # https://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to i...
[ "midnighter@posteo.net" ]
midnighter@posteo.net
cd2b3e03c7d4829e4d97f8148c5adb257164f06b
9c124f6accd89a3ccf08b4c1205159d78c731f85
/5/main2.py
90c084d9fdd727393875c7852c0b3e4be61179b0
[]
no_license
irongamer54/Sumer_2021
5600272dc11bddf6276bb56d0db4cff66ff6b20d
d61348274772cf95f0b06f904bfbb0ec61ebd1b1
refs/heads/master
2023-06-26T12:26:41.623768
2021-07-23T03:46:18
2021-07-23T03:46:18
383,372,964
0
0
null
null
null
null
UTF-8
Python
false
false
196
py
from tkinter import * root=Tk() canvas=Canvas(root,width=500,height=500) canvas.pack() pers_obj = PhotoImage(file="pers.png") canvas.create_image(50,50,anchor= NW, image=pers_obj) root.mainloop()
[ "you@example.com" ]
you@example.com
d2b1d2d2657500939b13217c1d4d4ad5c5a1495a
a2665fd4590244b09a6b80db375c4859bf05ef63
/ll_env/bin/django-admin
8b9f0013b019e4663ea7c0c4ffb67c5a810bd801
[]
no_license
owolabi1964/test
b52acde8c2548e306b928e16e390e5053ab3c382
92f1575dfd5a5819954d87b14804446831df88d0
refs/heads/main
2023-07-31T03:55:56.345287
2020-12-10T20:25:47
2020-12-10T20:25:47
320,018,742
0
0
null
null
null
null
UTF-8
Python
false
false
313
#!/home/oowolabi/PycharmProjects/learning_log/ll_env/bin/python3 # -*- coding: utf-8 -*- import re import sys from django.core.management import execute_from_command_line if __name__ == '__main__': sys.argv[0] = re.sub(r'(-script\.pyw?|\.exe)?$', '', sys.argv[0]) sys.exit(execute_from_command_line())
[ "oowolabi@localhost.localdomain" ]
oowolabi@localhost.localdomain
9b1c915879015204e3d95f907b5614b53d87db6b
a04ec4997f254262deed41961be34a6ccdd41e87
/code/DataLoader.py
35310e86b10253103a233982e099204bc77c22b6
[]
no_license
trsarje/Soyabean_Wilting_Detection
c641024acb5700017037d5af3261ff19fa17829e
1ffca9f583f525e73b6bc03b911d8cabc2d51c25
refs/heads/master
2023-03-04T03:39:41.097714
2021-02-19T21:34:27
2021-02-19T21:34:27
302,487,119
1
0
null
null
null
null
UTF-8
Python
false
false
1,455
py
import numpy as np import pandas as pd import cv2 import os import glob def load_data(x): # flag 1 for training data, 0 for testing data drct = r"../github/data/TrainData/" # Train data directory imgL = [] if x: df = pd.read_csv( '../github/data/TrainAnnotations.csv') # ...
[ "trsarje@ncsu.edu" ]
trsarje@ncsu.edu
dfbaf407a6998ce62b42da5d41633f8ca3c7fc0b
39b8421c70ea2f53beeedcf2836eeb92b90377b1
/solved/easy/MaximumSubArray.py
14a36c6ae516fd333c085e0c48207e637bdeab34
[]
no_license
ChrisMuga/leet-code
f9cbcd7b6232823322a5ae8a6f8302ba5871db24
7ed2c0a5236c5865852b2844b23fcd031441b18f
refs/heads/master
2022-12-29T17:14:55.492291
2020-10-08T10:07:06
2020-10-08T10:07:06
287,732,236
0
0
null
null
null
null
UTF-8
Python
false
false
545
py
from typing import List # Given an array the algorithm to find the maximum sub-array sum, is called: Kadane's algorithm class Solution: def maxSubArray(self, nums: List[int]) -> int: best_sum = current_sum = float('-inf') current_sum = best_sum for num in nums: current_sum = ...
[ "chrismuga94@gmail.com" ]
chrismuga94@gmail.com
bbc2fe5a5736b736eb143ce4e6555e2f7d314be8
fc9777dc8217183c9fb32ef2b3fa01ee6e1e2a54
/ToDoApp/ToDoApp/urls.py
73708c5a08696ab4a51feb5c1e584a2a11c4b6a6
[ "MIT" ]
permissive
amitkakde007/To-Do-App
60ca08e2bd409a8859b2639cac65ae0a04ff5c6b
a991d74fa7d38b2037d66521f41cd4dc4bccaf44
refs/heads/master
2022-11-29T01:01:14.683303
2020-08-15T07:38:39
2020-08-15T07:38:39
286,398,872
0
0
MIT
2020-08-14T06:07:55
2020-08-10T06:51:16
Python
UTF-8
Python
false
false
981
py
"""ToDoApp URL Configuration The `urlpatterns` list routes URLs to views. For more information please see: https://docs.djangoproject.com/en/3.0/topics/http/urls/ Examples: Function views 1. Add an import: from my_app import views 2. Add a URL to urlpatterns: path('', views.home, name='home') Class-based...
[ "amitkakde911@outlook.com" ]
amitkakde911@outlook.com
67369667933e56134fd39641a2ff54257295372e
f92dfdebb4bf6bc108f51783333520c35afa66da
/admin-web/src/www/application/modules/exon/actions.py
0f983721c26d50584b6b180491a8a68d2dd6eca0
[]
no_license
duytran92-cse/nas-genodata
4d8659a135913d226842ff6a013324714ead0458
80c88f42145f729c5862a5293012e71548182e1d
refs/heads/master
2022-11-13T17:24:03.769605
2020-06-14T18:59:36
2020-06-14T18:59:36
272,264,593
0
0
null
null
null
null
UTF-8
Python
false
false
3,962
py
from django.http import HttpResponse, HttpResponseRedirect from django.conf import settings from notasquare.urad_web import actions, page_contexts, widgets from notasquare.urad_web_material import renderers from application import constants from . import components import json class List(actions.crud.ListAction): ...
[ "thanh.tran@etudiant.univ-lr.fr" ]
thanh.tran@etudiant.univ-lr.fr
2a8b64759d4280e624b35d5711437a5f445d67c6
0a02fb9f8c2439a10847ffb666c07965e8e5fabc
/CopyListWithRandomPointer/copy.py
05d8e67744223c2d3d24b72a9bc3e3b97eafc44a
[]
no_license
HJ23/Algorithms-for-interview-
cf40125789a6a7378e376035ac8fe6b4e4c96eb5
28525bd097a702d3597d5ffd3cc4800e0499e5b5
refs/heads/master
2021-07-11T07:40:00.044046
2020-12-08T19:44:12
2020-12-08T19:44:12
223,262,957
2
0
null
null
null
null
UTF-8
Python
false
false
1,081
py
import sys sys.path.append("..") from BasicTester import * class Node: def __init__(self,val,next=None,random=None): self.val=val self.next=next self.random=random def copy(head:Node): tmp=head ret=None dict={None:None} # old new values memory_node=None while(tmp!=None): if(...
[ "carleuler@outlook.com" ]
carleuler@outlook.com
7549bcd41fb6d4aa7881febb3f5d2d7877a5f2f3
31a6a275432b135cb35b41a23ed8a105ffd69cc1
/b04170103_0412.py
b7a171b0d4b2daabf0220c0a104a90a653b5033f
[]
no_license
8787878877/b04170103_0412
ddbeab32195533e42d8c25bb04c2997ad0ac0d32
aba9b7dd89624bbe9ce72dba0fe88502dc110753
refs/heads/master
2020-03-17T16:25:01.738174
2018-05-17T02:33:36
2018-05-17T02:33:36
133,747,808
0
0
null
null
null
null
UTF-8
Python
false
false
7,775
py
# coding: utf-8 # In[1]: x,y,z=3,4,5 print(x) print(y) print(z) # In[12]: #交換 x,y=3,4 x,y=y,x print(x) print(y) # In[5]: x,y,z=3,4,5 x+=1 #x=x+1 y*=2 #y=y*2 z**=3 #**(次方) print(x,y,z) # In[16]: x=1 y=10*x x=x+y print(x) print(y) # In[9]: #海龍公式 import math a,b,c=3,4,5 s=(a+b+c)/2 area=math.sqrt(s*(s-...
[ "noreply@github.com" ]
noreply@github.com
2ec4e27729a4a876b19176c8c6a68d7ecdd0a62d
9b5a4b6cff5f03275410da6ccecbf2100119a7aa
/Ch05/Lab01.py
dd6413f335becabfcb78971c48b0e339126690ca
[]
no_license
h0108j/MyPythone
fc7a0edda84a4efb70755ff8fb3c93ead4f19a97
f2c99a3ee2e5cbd207ebbf4c7025a2c40f9d6c86
refs/heads/master
2020-04-10T08:51:06.077304
2019-01-05T06:06:02
2019-01-05T06:06:02
160,917,273
0
0
null
null
null
null
UTF-8
Python
false
false
123
py
import random coin = random.randrange(2) if coin == 0: print("앞면입니다.") else: print("뒷면입니다.")
[ "noreply@github.com" ]
noreply@github.com
f70e05449d250838b42f4c3df78e59421ddc3543
a2f9d55d686425c4b47ce150aa1a23ea933055cc
/apps/tinymce/views.py
12c563915b667935e080b56611e1df8b35b9ad48
[]
no_license
wd5/blombum
b31c581f2c36c220164901189be1ba95a8341e0e
fe11efb369fe2cec67af1e79bc8935a266df2f80
refs/heads/master
2020-12-25T02:23:30.297939
2010-06-29T10:03:31
2010-06-29T10:03:31
null
0
0
null
null
null
null
UTF-8
Python
false
false
435
py
import re from django.shortcuts import render_to_response from django.template import RequestContext from django.http import Http404, HttpResponseRedirect from settingsDB.utils import SettingsCached def read_path(request, path): if re.search('(jpg|png|jpeg|gif)$', path): return HttpResponseRedirect(Settings...
[ "nide@inbox.ru" ]
nide@inbox.ru
e53295c7d4e5ad65016fdd5d6a1e5ee0000a9cec
2f722a64d94c3daa8d1e7f9192eaa4c74d72c4df
/Clustering (CT).py
eb74720f6bc7b39b0fc2560b85878e400a07c8ca
[]
no_license
piyush28111/Clustering-Apriori-
28ed6bf5d0e8d1a61b365936320d4cea7f79a4da
3f44f24513bbebeb2f906aca3599c57e079e9f23
refs/heads/main
2023-02-28T20:31:24.374807
2021-02-04T13:59:50
2021-02-04T13:59:50
335,967,750
0
0
null
null
null
null
UTF-8
Python
false
false
4,499
py
import matplotlib.pyplot as plt import numpy as np import pandas as pd data = {'x': [25,34,22,27,33,33,31, 22,35,34,67,54,57,43,50,57,59,52,65, 47,49,48,35,33,44,45,38,43,51,46],'y': [79,51,53,78,59,74,73,57,69,75,51,32, 40,47,53,36,35,58, 59,50,25,20,14,12,20,5,29,27,8,7] } df= pd.DataFrame(data) df ...
[ "noreply@github.com" ]
noreply@github.com
ff2b0c2c6dd20e0c1326ce20364ddca8f58020a5
36bc464e42a4ca532087248c3b8a694bc33c0ff8
/drawing/my-pil-helloworld-03.py
de23a9c9087b501334b7ece348027e13cb97224a
[]
no_license
AdamFlores/Learn-Python-The-Hard-Way
08cec1d65f859a30e80974ea92d5c885666d800e
4175d978573e0e2a136c15543e34decc193d44fe
refs/heads/master
2021-01-10T20:14:27.548540
2013-03-09T04:11:26
2013-03-09T04:11:26
6,084,695
0
7
null
null
null
null
UTF-8
Python
false
false
3,071
py
# IFS fractals using iteration method # FB - 20120107 import random from collections import deque from PIL import Image # image size imgx = 512 imgy = 512 # will be auto-re-adjusted according to aspect ratio of the fractal # Fractint IFS Fern mat=[[0.0,0.0,0.0,0.16,0.0,0.0,0.01], [0.85,0.04,-0.04,0.85,0.0,1.6,0.8...
[ "rendenmedia@gmail.com" ]
rendenmedia@gmail.com
1c9330025e68f8101c70b5ac9a018d7cf09302fb
45f7f316b5a337ecefb1ec741a2b84bb964eec43
/cal/admin.py
6d42e63464a0bc5fddaf3ddd48441ba0c34343e1
[]
no_license
lizbrown/workout_cal
e75491977b4933553cfc3a28b5dadcc43d49be08
4be5e12a8fdbc859bc77202556d13b8134d5e783
refs/heads/master
2021-01-11T09:17:06.892727
2016-12-23T02:17:02
2016-12-23T02:17:02
77,190,312
0
0
null
null
null
null
UTF-8
Python
false
false
143
py
from django.contrib import admin from .models import Workout, WorkoutSession admin.site.register(Workout) admin.site.register(WorkoutSession)
[ "lbrown@insightsquared.com" ]
lbrown@insightsquared.com
bb9d17526fffbedab0497ee1bcd5eba412dc9c6e
f342173a42f7ce7c8f43521dab3fe4b690d12ee4
/intersection_lists.py
1d7429ce5bad1c64b1705e8799c05decc738ffbc
[]
no_license
gombleon/python-coursera
81622f1b8aaf8ad6ae96d13638ad4971bf2555da
5557349da5a199cf27d2761dc63e98b4e446dde4
refs/heads/master
2023-09-04T02:09:32.875818
2021-10-24T12:23:40
2021-10-24T12:23:40
418,030,066
0
0
null
null
null
null
UTF-8
Python
false
false
213
py
def intersection(a, b): set_a = set(a) set_b = set(b) return sorted(list(set_a.intersection(set_b))) a = list(map(int, input().split())) b = list(map(int, input().split())) print(*intersection(a, b))
[ "rgomboev@netris.ru" ]
rgomboev@netris.ru
02eaf3db773ab02db6f4b89bf7367f023bcb00d3
9743d5fd24822f79c156ad112229e25adb9ed6f6
/xai/brain/wordbase/adjectives/_aggregated.py
fad5b0d4f6fa9ecaef3cf929a8aed423b13aacbd
[ "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
269
py
from xai.brain.wordbase.adjectives._aggregate import _AGGREGATE #calss header class _AGGREGATED(_AGGREGATE, ): def __init__(self,): _AGGREGATE.__init__(self) self.name = "AGGREGATED" self.specie = 'adjectives' self.basic = "aggregate" self.jsondata = {}
[ "xingwang1991@gmail.com" ]
xingwang1991@gmail.com
6738ee9f7c0fdbdb59063d848b79f00fc391e0a1
06c14718c1aadd94a9d28388329899ec52e65699
/magnetodb/tests/unittests/api/openstack/v1/test_delete_backup.py
84a12c1bb22d7e96fc7f4919c563a1587d8686e7
[]
no_license
aostapenko/magnetodb
d3b0312df0b88f67b17133d6002c7f81dd4ea498
b642db8ff15996d0ac97504ca6ce1ef8f0cf8807
refs/heads/master
2020-04-14T22:52:31.395376
2014-12-18T16:41:13
2014-12-18T16:41:13
17,609,498
0
0
null
null
null
null
UTF-8
Python
false
false
1,351
py
# Copyright 2014 Mirantis 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...
[ "ikhudoshyn@mirantis.com" ]
ikhudoshyn@mirantis.com
cbf7ba5f5b853b0382b98a0a3316b20380a93b71
195b5babd9413f713f1e7331262e06ebaf2564cc
/ticketsell/utils/spider_12306.py
144f3f9195a0451c8a534d62038a505a5ebf2d49
[]
no_license
545382026/ticketsell
fdea7cd4e60e0a80f919c31b39376bfe8e940407
f6af54b217f23ae01f689e4b88d6aac7ed1ce7b7
refs/heads/master
2020-05-20T20:58:33.696864
2019-05-10T01:30:46
2019-05-10T01:30:46
185,753,075
1
1
null
null
null
null
UTF-8
Python
false
false
5,969
py
''' created by 周晨 ''' import requests import re from ticketsell.settings import STATICFILES_DIRS from ticketsale.models import Tickets import random import datetime ''' 这个模块是要获得全国所有的车次详细信息,并且存入数据库 然而12306是没有提供这个功能的,只能查询出发地到目的地的车票 但是进行抓包发现交互了一个js文件,文件内是接下来45天车票信息 由此得到思路: 不妨得到一个大致的车次信息的只包含出发地-目的地的集合 然后利用查询的接口去按具体...
[ "545382026@qq.com" ]
545382026@qq.com
ae28999dbbbb3b40e62e6eb8fbe75d64b4408763
66b149e200c1641bc94282fed62b9a9361b6027a
/statistic/histgram.py
c515271261aa7ec39d2e00f9309e0b935bb9bf48
[]
no_license
SHiroaki/python
6a6a6e49ec0d8e393c4f8e0744c110a6162891d8
ff1274b856b349567abe2c6d29fe24633396e41d
refs/heads/master
2020-05-18T20:57:50.191963
2014-09-24T06:01:59
2014-09-24T06:01:59
18,830,236
0
0
null
null
null
null
UTF-8
Python
false
false
514
py
# -*- coding: utf-8 -*- __author__ = 'hiroakisuzuki' import matplotlib.mlab as mlab import matplotlib.pyplot as plt import numpy as np sample = 1000 mu, sigma = 170, 5 data = np.random.normal(mu, sigma, sample) n, bins, patches = plt.hist(data, normed=1, alpha=0.75, align='mid') y = mlab.normpdf(bins, mu, sigma) l =...
[ "hiroaki_suzuki@jaist.ac.jp" ]
hiroaki_suzuki@jaist.ac.jp
70439023a86234b695657d1df9c701f51fbb1a6e
8001be39bec3ca1e5d23792413344ee4fa92fe78
/Mainapp/tests/test_views.py
b251e932fe1c1f9102adff27146b56ed484ad318
[]
no_license
Danushri/Planntap
1c332ccae48e2a8cd98a6aa515507e2be548d4f0
b5e9d8352e025c51d6da7678bac47b10d5705147
refs/heads/master
2022-06-28T23:27:00.908843
2020-05-11T04:28:55
2020-05-11T04:28:55
259,940,652
0
0
null
null
null
null
UTF-8
Python
false
false
441
py
from django.test import TestCase, Client from django.urls import reverse from Mainapp.models import Diary import json class TestViews(TestCase): def setUp(self): self.client = Client() self.index = reverse('index') def test_diary_index_GET(self): response = self.client.get(self.index...
[ "64539847+Danushri@users.noreply.github.com" ]
64539847+Danushri@users.noreply.github.com
02ff73caa867d0b4f4759e710235740b8a8009a8
a51c5ccaa2a3e36c7500f7fadb0b56f52c1b2b53
/place_improved.py
b379005c659743d0625bc5d9d8627fa8dbf7cc98
[ "MIT" ]
permissive
akhiljain93/twitter-elections
bf8104fd5c22c65e5946cb27311541881a069283
7030203bfb9ad931b24a062603323cf0c4ac9317
refs/heads/master
2020-12-24T21:27:25.717646
2016-05-12T07:07:59
2016-05-12T07:07:59
58,614,313
2
4
null
null
null
null
UTF-8
Python
false
false
4,840
py
import datetime import os import sys places = {} features_dem = open('place_features_dem_' + sys.argv[1], 'w') features_rep = open('place_features_rep_' + sys.argv[1], 'w') demLines = open('democrats.csv', 'r').read().splitlines() place_vote_share_dem = {} for line in demLines: fields = line.strip().split(',') ...
[ "akhil.jain93@gmail.com" ]
akhil.jain93@gmail.com
387308b74fb49e09ecf27a6ac0913c5f93a7db68
03e3138f99f275d15d41a5c5bfb212f85d64d02e
/source/res/scripts/client/gui/shared/gui_items/Vehicle.py
a9de541eb0b94156095065137fb6d9ebcfcb6b47
[]
no_license
TrenSeP/WorldOfTanks-Decompiled
e428728e7901146d0b599d02c930d70532232a97
1faa748acec1b7e435b657fd054ecba23dd72778
refs/heads/1.4.1
2020-04-27T08:07:49.813023
2019-03-05T17:37:06
2019-03-05T17:37:06
174,159,837
1
0
null
2019-03-06T14:33:33
2019-03-06T14:24:36
Python
UTF-8
Python
false
false
63,552
py
# Python bytecode 2.7 (decompiled from Python 2.7) # Embedded file name: scripts/client/gui/shared/gui_items/Vehicle.py import math import random from copy import copy from itertools import izip from operator import itemgetter from collections import namedtuple import BigWorld import constants from AccountCommands impo...
[ "StranikS_Scan@mail.ru" ]
StranikS_Scan@mail.ru
32a23f9df83cc51dbe7edb439bd22dbc167ade77
13d222bc3332378d433835914da26ed16b583c8b
/src/pemjh/challenge116/main.py
83123ed7d1f367503d574aa5a8a7a8a0a060e775
[]
no_license
mattjhussey/pemjh
c27a09bab09cd2ade31dc23fffac07374bea9366
2ebb0a525d2d1c0ee28e83fdc2638c2bec97ac99
refs/heads/master
2023-04-16T03:08:59.390698
2023-04-08T10:54:00
2023-04-08T10:54:00
204,912,926
0
0
null
null
null
null
UTF-8
Python
false
false
916
py
""" Challenge116 """ # pylint: disable=missing-docstring from pemjh.function_tools import memoize @memoize() def num_variations(blocks, tile_size, dec=True): num = 0 if blocks > 1: # work out with tile here if blocks >= tile_size: num += num_variations(blocks - tile_si...
[ "matthew.hussey@googlemail.com" ]
matthew.hussey@googlemail.com
4282c624009358b1d73082d91dfab78e08dd5e08
d7cf30ae463e5e30909e70f6628727f3516e51bc
/mountaincar/Q_table.py
67e25173729e4f58c60ccd90af3d40929fd434e7
[]
no_license
mazur89/Q_learning
6d09fbd8ec258f8a3c968e6bb6b769b9e225d48f
fced08cdc4cbda28c1d428372ba99f6c4fa0f73f
refs/heads/master
2021-05-12T10:38:34.369012
2018-01-14T22:27:40
2018-01-14T22:27:40
117,358,892
0
0
null
null
null
null
UTF-8
Python
false
false
13,771
py
import gym import numpy as np import tensorflow as tf import json import cloudpickle import os from baselines.deepq.replay_buffer import PrioritizedReplayBuffer def refine_Q_table(Q_table, N, n=2): tmp = np.zeros((N * n, N * n, 3)) for i in range(N * n): for j in range(N * n): for k in...
[ "mazur89@gmail.com" ]
mazur89@gmail.com
394e34099ba3d07a5ceef9e036a17f10438e732d
89f5606b1216ab6cf062242e82a8a1bb795e9a1c
/All State Purchase Prediction Challenge/pythonASPPC/utils.py
d6df6a000b0c432558e8d9151dc7057683e54887
[]
no_license
lfawaz/Kaggle
04d175718e38d15cb392d54e5cafe26b14a01a8b
c3b3c08555c9ccc75de2ab4b902bbbaf21f1908c
refs/heads/master
2020-07-07T02:18:14.417040
2018-02-10T22:59:07
2018-02-10T22:59:07
67,474,879
0
0
null
null
null
null
UTF-8
Python
false
false
6,352
py
# coding: utf-8 # In[2]: import pandas as pd import numpy as np import datetime import dateparser def load_clean_data(): train = pd.read_csv("../data/train.csv") print"load data..." model_data = train ##create hour model_data['hour'] = model_data['time'].apply(lambda x: x.split(':')[0]) #...
[ "lfawaz@inflocalusers-MacBook-Pro-2.local" ]
lfawaz@inflocalusers-MacBook-Pro-2.local
2a5c1c657f1cdbb1ca82be4e76e44da3a05c6e18
777fbd3f7491f92ae16cd84f520441442e451e83
/test_case/baidu.py
97ffbe69515ce021caafe7ac771839e094c1320c
[]
no_license
dxlove/myautotest
22a20e6078a502952727dedc4640eb8d1adb7971
4fb9cc92cf3f77aab3e019655bbd67b667d0fe39
refs/heads/master
2021-01-21T20:47:09.734627
2017-06-18T11:09:04
2017-06-18T11:09:04
null
0
0
null
null
null
null
UTF-8
Python
false
false
2,832
py
#!-*- coding:utf-8 -*- import sys reload(sys) sys.setdefaultencoding('utf-8') from selenium import webdriver from selenium.webdriver.common.keys import Keys from selenium.webdriver.support.ui import Select from selenium.common.exceptions import NoSuchElementException from selenium.webdriver.common.by import By import ...
[ "duxu111@gmail.com" ]
duxu111@gmail.com
fd2747608e42fb34ada6476932c98e52b57578ad
b8627d6e9a23bad9fae3f1b1c43650dd23ce4c70
/core/models/__init__.py
1994aa10de85db9dd33e4cd73f7f2a5ee83d2ec4
[ "MIT" ]
permissive
jcquinlan/colophon
19feee3ecbe4b982e3aa55cf4d5b775fb9c49524
96f3eec0a524cb1fe3d655f3cc850b125f4aaff4
refs/heads/master
2021-04-28T15:55:00.105876
2018-05-17T02:25:12
2018-05-17T02:25:12
122,001,448
0
0
null
null
null
null
UTF-8
Python
false
false
310
py
from .design_document import DesignDocument from .design_document_image import DesignDocumentImage from .design_document_package import DesignDocumentPackage from .user_document_favorite import UserDocumentFavorite from .user_document_download import UserDocumentDownload from .user_profile import UserProfile
[ "jcquinlan.dev@gmail.com" ]
jcquinlan.dev@gmail.com
7e0fee80dd92a81399ee40a4f39932b40fc12176
895c68c5ffb7c9688941cda8b8e795efc165577e
/dnn.py
fde977ee4d0da9417876d108ebb3cf04b3dddd61
[]
no_license
alagappan28/Cat-vs-Non-Cat-classifier-using-Neural-Networks
90f0b9e7eaab508807647ca4fb54622d8360d80d
8e58859ce39df15e24244786d28e6a736bd7b7d3
refs/heads/master
2020-03-30T21:49:15.280871
2018-10-04T23:03:45
2018-10-04T23:03:45
null
0
0
null
null
null
null
UTF-8
Python
false
false
13,822
py
import numpy as np import matplotlib.pyplot as plt import h5py def sigmoid(Z): """ Implements the sigmoid activation in numpy Arguments: Z -- numpy array of any shape Returns: A -- output of sigmoid(z), same shape as Z cache -- returns Z as well, useful during backpropagation ...
[ "43281916+alagappan28@users.noreply.github.com" ]
43281916+alagappan28@users.noreply.github.com
0000df377a7ceb201947089e94faa1ed0eccd212
7a4cf04cdac69f3362399499e3055a01c335339c
/cr_elimination/test_cr_elimination.py
3e0cc68516bfe9aac5c0771dc1b282ba858e6e23
[]
no_license
Terry071896/Cosmic_Ray_Elimination
48db9b168ed2df6a79b53582354d0ae7e8a89086
3992a63bba66374bebb8d2d176567c0eaf0ab534
refs/heads/master
2021-05-17T06:49:07.946395
2020-04-11T02:01:08
2020-04-11T02:01:08
250,682,051
0
0
null
null
null
null
UTF-8
Python
false
false
1,995
py
from astropy.io import fits from astropy.utils.data import get_pkg_data_filename import timeit import numpy as np from cr_elimination import Cosmic_Ray_Elimination import os cwd = os.getcwd() def test_init(): the_object = Cosmic_Ray_Elimination() start_time = timeit.default_timer() the_object2 = Cosmic_Ray...
[ "terrycox@TerryNewMac.local" ]
terrycox@TerryNewMac.local
d8ad109e4329dfd784d1f98932bef3d7f7878c58
ea45a2cca4444335f1369096ed4283e8d702209a
/math_training/napier_constant.py
1bd68d9a0e93a0833d166c6d85d06a2adc4e79be
[ "MIT" ]
permissive
Shogo-Sakai/everybodys_ai
b4e3c6d585168d8ff99cda3f4c3d622076494e55
8ea227d3b998e558f7dabbebd121eaff06a09085
refs/heads/master
2020-08-23T05:57:01.542309
2019-10-24T07:51:04
2019-10-24T07:51:04
216,557,755
0
0
null
null
null
null
UTF-8
Python
false
false
303
py
import matplotlib.pyplot as plt import numpy as np import math e = math.e print (e) dx = 0.1 x = np.arange(-5, 5, dx) y_2 = 2**x y_e = e**x y_3 = 3**x # y = (e^(x+dx) - e**x) / dx y_de = (e**(x+dx) - e**x) / dx # plt.plot(x, y_2) plt.plot(x, y_e) # plt.plot(x, y_3) plt.plot(x, y_de) plt.show()
[ "shogosakai73@gmail.com" ]
shogosakai73@gmail.com
0c01df7cd2a8970ed83b096b36ff15e4b12249e0
d2c0dda08caf1a9fa54505318dc3401f2a87e189
/10/httpServer.py
6297b04040180decfeed5abe17073a91186b89e6
[]
no_license
051mym/matkul_progjar
a2412843a65f298e154c10c70d88656a7b85bda3
b72d7df43872474dc4d1af48926e70479a18cb0c
refs/heads/main
2023-02-25T09:49:54.406526
2021-01-30T05:16:06
2021-01-30T05:16:06
334,333,826
0
0
null
null
null
null
UTF-8
Python
false
false
1,490
py
import socket import select import sys # import os server_address = ('127.0.0.1', 8000) server_socket = socket.socket(socket.AF_INET, socket.SOCK_STREAM) server_socket.setsockopt(socket.SOL_SOCKET, socket.SO_REUSEADDR, 1) server_socket.bind(server_address) server_socket.listen(5) input_socket = [server_socket] try: ...
[ "42793951+051mym@users.noreply.github.com" ]
42793951+051mym@users.noreply.github.com
275d3e519304c4cd1c306a08dccb285242eb47ac
bcd7aaa1e98c813df917b4b11c5f38e16714de6d
/apps/userDashboard/models.py
2ce6e291132e3d113cac6dedbb4a8ecf8d26ca51
[]
no_license
evcallia/django_user_dashboard_assignment
f4c63524819f16342b82243c42018b1aaaaaacd1
484b2632dd6a299350dfc1914a703e65df735fbf
refs/heads/master
2021-01-17T16:40:48.285792
2016-08-16T22:25:38
2016-08-16T22:25:38
65,769,309
0
0
null
null
null
null
UTF-8
Python
false
false
5,748
py
from __future__ import unicode_literals from django.db import models import re from django.contrib import messages import bcrypt # Create your models here. class userManager(models.Manager): # return true if appropriate fields are valid duting registration process def validateRegistration(self, request): ...
[ "calliaevan12@gmail.com" ]
calliaevan12@gmail.com
19c1ca10231877213b04bbf1f219b67507d754dc
73dccadc1a0124fb85c30ff55d2fc2eb9c50769f
/salt/base/_modules/maas.py
138ad89d50963293c432f7ee6d2e01ea9ab2eb7e
[]
no_license
graywen24/alchemystack
c5f69f989eea3d551f78fe9cede4928683ea8321
ca5dd0343015d2c6d102d496e9511940a20feb45
refs/heads/master
2021-01-22T22:35:49.364169
2019-08-14T07:57:18
2019-08-14T07:57:18
85,561,419
0
0
null
2017-03-21T10:53:52
2017-03-20T10:02:18
Python
UTF-8
Python
false
false
2,625
py
''' Expose maas helper functions ''' # Import python libs from __future__ import absolute_import import salt from apiclient.maas_client import ( MAASClient, MAASDispatcher, MAASOAuth, ) from salt.exceptions import CommandExecutionError import json import urllib2 # Set up logging import logging logger = ...
[ "wenwen@1-net.com.sg" ]
wenwen@1-net.com.sg
03ee163b9ac703119f8282805997115dac007738
b6e5a79533b23404bf1582e9c66f4d1a9500b992
/backend/usa_2_go_27981/wsgi.py
067e6d4e56f68e483302e5793560ba8a17439f18
[]
no_license
crowdbotics-apps/usa-2-go-27981
766add8314ebdeddfcc90ba2fe0185f66f247493
18ba1fa997814462fc7810b01c413cd7655c758b
refs/heads/master
2023-05-27T10:25:39.406088
2021-06-15T01:03:53
2021-06-15T01:03:53
376,992,929
0
0
null
null
null
null
UTF-8
Python
false
false
405
py
""" WSGI config for usa_2_go_27981 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("DJANG...
[ "team@crowdbotics.com" ]
team@crowdbotics.com
10f14d6f6ff721b141030da51ec0d56c1a8ee235
07287ff9e4d7a0d8cd2f668e1445ea84d46cf795
/backup/HackDiffBot_000.py
833a9d858085f3bd7e01c4d157f908bc856dcdb8
[]
no_license
vk-eipi/ants
6e555a8cbb3fd9e484fc6fa76f14fd942a011410
0c8dd0d0c4245d03d95193cc304a11e37d38d07f
refs/heads/master
2020-06-04T04:47:14.842548
2013-01-09T03:25:08
2013-01-09T03:25:08
3,254,933
0
0
null
null
null
null
UTF-8
Python
false
false
8,745
py
#!/usr/bin/env python """ HackDiffBot v1 - diffusion limit by time - increase enemy hill scent - reduce scent every turn - diffuse function DiffusionBot v1 - 10 diffusion iterations - figured out color map v0.1 (002) - implemented diffusion (unified) - added custom visualization to options """ import sys import os i...
[ "kevin.ck.luo@gmail.com" ]
kevin.ck.luo@gmail.com
5a8f30f46de1d2cacde93dbd3b756e2b289b2cb6
8248774f8f113608c2b15e03d8637c2b32bd8ae9
/Luhu_pred_ex/P02_plot.py
4e2d5b22b5a90374649d9e06e1b760c0e7d8e5d1
[ "MIT" ]
permissive
tso1257771/RockNet
dd2afa931a98afd85bafd1f38605ed5fb287c1a4
4195a0728448465fedf9ffcb31a4cc7864dd3637
refs/heads/main
2023-05-23T17:18:31.104492
2023-04-11T02:23:05
2023-04-11T02:23:05
565,642,324
6
0
null
null
null
null
UTF-8
Python
false
false
8,282
py
import os import sys sys.path.append('../') sys.path.append('../tools/build_model') import shutil import tensorflow as tf import numpy as np import scipy.signal as ss import sys import matplotlib.pyplot as plt plt.rcParams['font.size'] = 14 plt.rcParams['font.family'] = 'Helvetica' import matplotlib.gridspec as gridspe...
[ "tso1257771@gmail.com" ]
tso1257771@gmail.com
bd0ddc98cc185bd0c345391c4fd04ccb8f855b0f
6fa7f99d3d3d9b177ef01ebf9a9da4982813b7d4
/rnvBtoNMBtznXLhs8_24.py
3666f1e694da00a3301b67e01f1e0199407af097
[]
no_license
daniel-reich/ubiquitous-fiesta
26e80f0082f8589e51d359ce7953117a3da7d38c
9af2700dbe59284f5697e612491499841a6c126f
refs/heads/master
2023-04-05T06:40:37.328213
2021-04-06T20:17:44
2021-04-06T20:17:44
355,318,759
0
0
null
null
null
null
UTF-8
Python
false
false
313
py
def win_round(you, opp): res = [] for item in [you, opp]: first = max(item) item.remove(first) second = max(item) res.append(int(str(first) + str(second))) you_score, opp_score = res if you_score > opp_score: return True return False
[ "daniel.reich@danielreichs-MacBook-Pro.local" ]
daniel.reich@danielreichs-MacBook-Pro.local
c89cc9bf478f31114498a06362528dd04d2e8f84
46a6a9030a1f4db95712abd99fe353179318072f
/esail/algm/graph.py
cf6e1f708f3e4e2d76396487d1603818a9fce506
[]
no_license
kasangki/passage
2a42db600de5dcbe2a15ad46f6cd92ff93acdb96
e0aad1d558af8aaa1bb8fc92bc3bbc6615d7114e
refs/heads/master
2021-05-18T11:20:04.958801
2020-05-28T06:14:07
2020-05-28T06:14:07
251,224,282
0
0
null
null
null
null
UTF-8
Python
false
false
1,294
py
# 그래프관련 클래스 class Graph(object): """ A simple undirected, weighted graph """ def __init__(self): self.nodes = set() self.edges = {} self.distances = {} def add_node(self, value): self.nodes.add(value) def add_edge(self, from_node, to_node, distance): ...
[ "skkang@toogram.com" ]
skkang@toogram.com
cb98a5a73786e98ab3df43f3599eb68152140b1b
f8518b6017603ad711d72c40887b1beb11a54b9b
/PO/business/findPwd_module.py
0be7adbe32d47f8bb8e5f9d47de8870243a8fffb
[]
no_license
lizhouquan1017/jc_mobile_test
dfa08b5f6af7c401317c6b843bee80fceb86c172
1cad6307323be2cff7a13278f5a0c36301c00eb0
refs/heads/master
2020-08-26T23:25:26.766463
2019-12-03T01:09:12
2019-12-03T01:09:12
217,180,805
0
0
null
null
null
null
UTF-8
Python
false
false
1,986
py
# coding:utf-8 import logging from base.BaseOperation import BaseOperation from base.BaseReadIni import ReadIni from time import sleep class FindPwdBusiness(BaseOperation): def __init__(self, driver): super(FindPwdBusiness, self).__init__(driver) self.efg = ReadIni(file_name='findpwd_page.ini') ...
[ "lzq19891017@sina.com" ]
lzq19891017@sina.com
1af46737ab4f03c7e81c96e080d1c9ce11e71ed8
e571b904ec79de8be9c92b50137832fa10a68c85
/TSP_GA.py
e9275106c354ac028ba54e860e72a17b3fcd3950
[]
no_license
az2181036/GA-for-TSP
57ea1f56122bc55d7415933382cddb3d9b5c7ab2
fa3b090bfbee32c6b3528d0a19fc602cc9481c5e
refs/heads/master
2021-09-02T09:15:38.417201
2018-01-01T10:23:37
2018-01-01T10:23:37
115,911,163
0
0
null
null
null
null
UTF-8
Python
false
false
10,565
py
# -*- coding: utf-8 -*- import os import time import numpy as np import matplotlib.pyplot as plt from GA import GA fit = list() gen = list() class TSP(object): """ TSP类 g_popSize 人口总数 g_chromoLength 基因长度 g_crossRate 交叉概率 g_mutationRare 变异概率 g_bestFiness 最佳适应度 g_bestGenome 最佳个体基因 g_pop 种群 """ def __init__(s...
[ "xtu_fan@163.com" ]
xtu_fan@163.com
297a221039f6223d99486f0a5574016946b8bb72
6b2a8dd202fdce77c971c412717e305e1caaac51
/solutions_5670465267826688_1/Python/Saaber/saber_dijkstra.py
07db2c9ea613fb670076171aa5363a1bcd777e85
[]
no_license
alexandraback/datacollection
0bc67a9ace00abbc843f4912562f3a064992e0e9
076a7bc7693f3abf07bfdbdac838cb4ef65ccfcf
refs/heads/master
2021-01-24T18:27:24.417992
2017-05-23T09:23:38
2017-05-23T09:23:38
84,313,442
2
4
null
null
null
null
UTF-8
Python
false
false
2,509
py
d = {'11':'1', '1i':'i', '1j':'j', '1k':'k', \ 'i1':'i', 'ii':'-1' , 'ij':'k', 'ik':'-j', \ 'j1':'j', 'ji':'-k' , 'jj':'-1', 'jk':'i', \ 'k1':'k', 'ki':'j' , 'kj':'-i', 'kk':'-1' } def evaluate(s1, s2): neg1, neg2 = s1.count('-') , s2.count('-') t1, t2 = s1.replace('-',''), s2.replace('-','') neg = neg1 + n...
[ "eewestman@gmail.com" ]
eewestman@gmail.com
24f2cd0f9558804e0d9f141330758fe85d5eafd3
6f5041f7cf9d33d275393228eedfc010377dc71c
/src/DatabaseORM/reporting_orm.py
bfaf279d7464c8beaa2eb0e119475d75716aaccc
[]
no_license
camhoward93/storage-manager
63c03da516727174cb138645d0677490b5c5efa2
7e356c0350d8c4c1bb29b69bed250c7e313c3aec
refs/heads/master
2022-12-08T05:31:25.014052
2020-09-03T02:37:59
2020-09-03T02:37:59
292,447,445
0
0
null
null
null
null
UTF-8
Python
false
false
1,200
py
"""Code written by Jacquesne Jones unless otherwise specified.""" from .base_orm import Base, favorite_reports from sqlalchemy import String, Boolean, Column from sqlalchemy.orm import relationship class Report(Base): """A report used for analyzing data. The design of a report is for easy data access. t...
[ "camhoward93@gmail.com" ]
camhoward93@gmail.com
2501a9e68bf5aea42a39ab277807b86d2d307bd2
23e9c9f0e6ad2bdf4496ce1aa608e0d4cfd60ef5
/alternative_splicing_scripts/miso_scripts/t_test_miso_output.py
dbc82e6f73e0a6961672a42087acc4ae7598af5d
[]
no_license
jakeyeung/alternative-splicing
906f1023184d0a8cdafcd4d7a53e9735bf10cd86
8fdfa5d3a7ce9b1f2890f27c4dc16a65f12f1d6f
refs/heads/master
2020-04-05T17:08:23.225396
2014-09-16T18:52:05
2014-09-16T18:52:05
10,201,367
5
0
null
null
null
null
UTF-8
Python
false
false
9,952
py
''' Created on 2013-08-21 @author: jyeung Given a list of sample names between two classes (NEPC and PC, for example), do a t-test between the two classes for all alternative splice events (sample size may therefore vary) to test whether the PSI values differ between the two classes. Keep in mind: - not ...
[ "jakeyeung@gmail.com" ]
jakeyeung@gmail.com
5099358366fd79b8641d793f7ef3d856d2e9e494
b932652d58d11bd8d5075c8904f022824685039b
/7_wrap_prespective.py
6b1b7eb6d45922fd541ae3eca3bec26d144391a0
[]
no_license
Khailas12/OpenCV-Python-Learning
406fa9f1a0f3cb6774a9bb49e28156aa1a687930
483bca9727a78cb23263c0b9a2e6975364e136d7
refs/heads/main
2023-07-31T07:20:09.990434
2021-09-14T11:10:03
2021-09-14T11:10:03
406,092,611
0
0
null
null
null
null
UTF-8
Python
false
false
445
py
import cv2 import numpy as np img = cv2.imread( "OpenCV-Learning/images/cards.jpg" ) width, height = 250, 350 pts1 = np.float32([[111, 219], [287, 188], [154, 482], [352, 440]]) pts2 = np.float32([[0, 0], [width, 0], [height, 0], [width, height]]) matrix = cv2.getPerspectiveTransform(pts1, pts2) imageOutput = cv...
[ "khailas303@gmail.com" ]
khailas303@gmail.com
9a57ca83fef0751fb41ad294dd7fba79ab04414b
db35e09a0e2a07960130ce8765442fb8cd254479
/game.py
7bb2a2ae81279cdac422bacb2be80228bd94784d
[]
no_license
hzd1019/PongGame
84624a2d405d0e7a445be084a30a8f705843cb11
61760b55e3d4bcc4eee51e877605e07c5427f7af
refs/heads/main
2022-12-18T21:44:31.667438
2020-10-04T19:15:00
2020-10-04T19:15:00
301,207,419
0
0
null
null
null
null
UTF-8
Python
false
false
7,584
py
import pygame, sys, time, random, math from pygame.locals import* from time import sleep HEIGHT = 800 WIDTH = 1000 TEXTCOLOR = (255, 255 ,255) BACKGROUNDCOLOR = (0, 0, 0) FPS = 80 RECTANGLEHEIGHT = 100 RECTHANGLEWIDTH = 20 RECTANGLEMOVERATE = 8 BALLSPEED = 6 RED = (255, 0, 0) GREEN = (0, 255, 0) d...
[ "noreply@github.com" ]
noreply@github.com
798a93289a2315b6003267c3477770bacb49cc85
e45db590da9dca76267b03a475a1c63ab6117b99
/predict.py
1e49442c5d110959ea7dce975f8b0b0213605c6d
[]
no_license
cxfcdcpu/trajectoryPredictsPacman
546a2533c36eaac5bce169bb303c8a01f3a0fd86
c9e967a8facc81ce0b0771a0ebbd7a566f8f2714
refs/heads/main
2023-03-22T20:05:18.515499
2021-03-11T02:35:52
2021-03-11T02:35:52
346,554,985
0
0
null
null
null
null
UTF-8
Python
false
false
2,436
py
import sys import os import numpy as np import flask import pickle import time HER_GRID = 50 VER_GRID = 50 HER_LEN = 1050 VER_LEN = 750 a_col = 6 a_row = 4 hopDis = 2 COL = HER_LEN//HER_GRID ROW = VER_LEN//VER_GRID PRELOCATION = 10 arg1 = sys.argv[1] loaded_model = pickle.load(open("model.pkl","rb")) if not arg1: ...
[ "xiaofeicao0@gmail.com" ]
xiaofeicao0@gmail.com
fa02064419c1a25d7bb488b52884e661e606158d
24e390b6b3ac60baa5ee784cc017848e7e6e8426
/old_exercises/backup/plotlable.py
78c3ebcb682d03d9a38f071e66fad895ae411985
[]
no_license
tertiarycourses/NumpySciPyTraining
6c83d91f7164e9cd3020fd987c55d15d93f2fcf3
0b45296cf07751938594973dd7fdc39d0daa04a1
refs/heads/master
2021-01-23T00:40:12.393829
2018-05-17T09:10:51
2018-05-17T09:10:51
92,831,280
2
1
null
null
null
null
UTF-8
Python
false
false
173
py
import numpy import matplotlib.pyplot as plt x=numpy.linspace(0,2*numpy.pi,32) plt.plot(x, numpy.sin(x)) plt.xlabel('x') plt.ylabel('y') plt.title('Sine Curve') plt.show()
[ "angch@tertiaryinfotech.com" ]
angch@tertiaryinfotech.com
c88e91b305ed920b0d4f97c56d7ec0ebf48c216c
20c67cd43a484819b13cb120f145def9bc1317d8
/usermage/views.py
d3063cfebd5ca6ec7725f323504b5493b4885c36
[]
no_license
totota/trade
03c019f92df8846f47a1cee2a1c2b16fbcb5a50c
b690d51f05316d0b6f4cdcb01806ad79d3c1f4be
refs/heads/master
2021-09-02T06:43:49.175307
2017-10-16T11:04:01
2017-10-16T11:04:01
108,209,337
1
0
null
null
null
null
UTF-8
Python
false
false
3,379
py
# -*- coding: utf-8 -*- from __future__ import unicode_literals from django.http import HttpResponseRedirect,HttpResponse from django.shortcuts import render from .forms import registeruser,loginform from dms.models import city,location,security,campus,user,commodity,collection,indent,delegation,delegation_order def ad...
[ "root@localhost.localdomain" ]
root@localhost.localdomain