blob_id
stringlengths
40
40
directory_id
stringlengths
40
40
path
stringlengths
2
616
content_id
stringlengths
40
40
detected_licenses
listlengths
0
69
license_type
stringclasses
2 values
repo_name
stringlengths
5
118
snapshot_id
stringlengths
40
40
revision_id
stringlengths
40
40
branch_name
stringlengths
4
63
visit_date
timestamp[us]
revision_date
timestamp[us]
committer_date
timestamp[us]
github_id
int64
2.91k
686M
star_events_count
int64
0
209k
fork_events_count
int64
0
110k
gha_license_id
stringclasses
23 values
gha_event_created_at
timestamp[us]
gha_created_at
timestamp[us]
gha_language
stringclasses
220 values
src_encoding
stringclasses
30 values
language
stringclasses
1 value
is_vendor
bool
2 classes
is_generated
bool
2 classes
length_bytes
int64
2
10.3M
extension
stringclasses
257 values
content
stringlengths
2
10.3M
authors
listlengths
1
1
author_id
stringlengths
0
212
c48f063c4bc3a5c0a2d161e4c8f32f9de30a9ea7
6201900b99e76bf0720d2ba45ad39a3a0b136cf4
/setup.py
65e3ce4db2d2e0bcf58f2d0931fbeeb35e864bf9
[ "MIT" ]
permissive
maxrampulla/csv_converter
8a10f076636c0d994b50c1cb892c756ec7c9360a
957ffa7e19bcb22ebb297908dfe7de54eb537e65
refs/heads/master
2022-12-03T10:07:08.353260
2020-07-29T04:56:08
2020-07-29T04:56:08
283,401,205
0
0
null
null
null
null
UTF-8
Python
false
false
431
py
from setuptools import setup with open("README") as f: long_description = f.read() setup( name="csv_converter", version="1.1.0", description="Converts a list of hotels from a csv into a json wich is \ readable by the conversion tool", license="MIT", long_description=long_description, ...
[ "maxrampulla@gmail.com" ]
maxrampulla@gmail.com
50d9ae26533b305f7ae636f2adb0acc5a98ec2d5
c0e1ee153d3865273e964e4d58df87ce95b4dc6a
/taas/database.py
42c490fb3aac98ab70be4a5ff3356d43818af8aa
[]
no_license
cjoelrun/taas
4d1c72adc3a62f6c5297d59b588e5543230f1d04
8ce4755347742890b4cf845a9763a39427e115ab
refs/heads/master
2020-12-03T04:17:13.312453
2017-11-17T06:43:15
2017-11-21T15:17:13
95,846,032
1
2
null
2017-11-21T15:17:14
2017-06-30T03:47:37
Python
UTF-8
Python
false
false
108
py
from flask_sqlalchemy import SQLAlchemy db = SQLAlchemy() class Model(db.Model): __abstract__ = True
[ "cameronjlopez@gmail.com" ]
cameronjlopez@gmail.com
8c3bbd0d1562d534c37dbac04d12ed97dded0f26
7b0f394f3c6d40c60124848f702a2320b8718a5b
/models/dense.py
71a09ca432a3b1fff5e69532d39a8049ee320270
[]
no_license
Braamling/Human-Saliency-on-Snapshots-in-Web-Relevance
1217bbe3d0917a537752634a07009ee6f1273f1a
83121ad916c1dfbffe8b58b017cc2f8812ed387a
refs/heads/master
2023-01-09T12:58:16.419448
2019-03-20T14:02:24
2019-03-20T14:02:24
null
0
0
null
null
null
null
UTF-8
Python
false
false
1,237
py
import math import torch.nn as nn class Dense(nn.Module): def _create_layers(self, input_size, hidden_layers, output_size, dropout): hidden_sizes = [input_size] + [int(x) for x in hidden_layers.split('x')] + [output_size] n_hidden_units = len(hidden_sizes) layers = [] for i in ra...
[ "bram.vandenakker@shopify.com" ]
bram.vandenakker@shopify.com
f3d418ba7b2ed16b3f1ce2232e890d71bc821c23
44a2741832c8ca67c8e42c17a82dbe23a283428d
/cmssw/JewelInterface/test/testJewel.py
071c1e3250d6e8df3a5a67cef29974543a8e63aa
[]
no_license
yenjie/HIGenerator
9ff00b3f98b245f375fbd1b565560fba50749344
28622c10395af795b2b5b1fecf42e9f6d4e26f2a
refs/heads/master
2021-01-19T01:59:57.508354
2016-06-01T08:06:07
2016-06-01T08:06:07
22,097,752
0
0
null
null
null
null
UTF-8
Python
false
false
2,778
py
import FWCore.ParameterSet.Config as cms process = cms.Process("ANA") process.load("SimGeneral.HepPDTESSource.pythiapdt_cfi") process.load("Configuration.StandardSequences.Services_cff") process.load("GeneratorInterface.HydjetInterface.hydjetDefault_cfi") process.maxEvents = cms.untracked.PSet(input = cms.untracked....
[ "yenjie@mit.edu" ]
yenjie@mit.edu
9a238b0185bf6213d1f9063ef2ef9368130210a2
e7a0a6a73b4dbddcc75fa428488d50cd2b7cb976
/google/cloud/bigquery_datatransfer_v1/services/data_transfer_service/client.py
8bf606e4905b67ef5cf5a3fe497fd16de7f07b02
[ "Apache-2.0" ]
permissive
gopinath678/python-bigquery-datatransfer
e014e236cdb4e272b4644181bb4a50a87d19e1a2
34f506e81cbbbc3485a4e8a9cff87df82b3d6756
refs/heads/master
2023-03-22T19:36:31.574412
2021-03-10T20:42:39
2021-03-10T20:42:39
null
0
0
null
null
null
null
UTF-8
Python
false
false
67,755
py
# -*- coding: utf-8 -*- # Copyright 2020 Google LLC # # 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 o...
[ "noreply@github.com" ]
gopinath678.noreply@github.com
33a2426cc882562c11052d366fdcd3b93f062ae7
4fc1193295eaa239e62994d75f13f5a4c42621ce
/An Introduction to Interactive Programming in Python (Part 1)/Week 0 - Statements, expressions, variables/19.py
71d4f308773971cb3d31bea2b0f4f9beeb8be3d2
[]
no_license
Mahmoud-Shosha/Fundamentals-of-Computing-Specialization-Coursera
296ec8a586a81ec51309c5c214ab0829f0f643be
8f2339918547de43038a6ceffd815199ba365ff9
refs/heads/master
2020-12-08T20:32:43.559287
2020-05-11T19:47:52
2020-05-11T19:47:52
233,085,034
0
0
null
null
null
null
UTF-8
Python
false
false
1,392
py
""" Given the pre-defined variables name (a string) and age (a number), write an assignment statement that defines a variable statement whose value is the string "% is % years old." where the percents should be replaced by name and the string form of age. """ # Compute the statement about a person's name and age, giv...
[ "mahmoud.aboelsoud.p@gmail.com" ]
mahmoud.aboelsoud.p@gmail.com
63ba5f08bc473d75ea7024b86e0a8b57bd844fe2
6e6b019129c572075f962481a5b53a9d0bf8b85c
/delete_methods_list.py
f97b67af5905df1586078544380b7020b7a7dfac
[]
no_license
rathinitish29/Python
de291fde14c22a5fed2e965ce650a9c6f723a1c4
24e0cf24a992642de6e05b63eddb66faeb41e9c1
refs/heads/master
2022-12-08T01:09:09.748555
2020-08-24T16:40:29
2020-08-24T16:40:29
283,421,210
0
0
null
null
null
null
UTF-8
Python
false
false
309
py
# common methods to delete data from list fruit = ['mango', 'banana','apple','orange'] print(fruit) #pop() method fruit.pop(1) print(fruit) #del[] operator del fruit[1] print(fruit) #remove()method fruit.remove('mango') print(fruit) #to add data = append,insert,extend #to delete = pop,del,remove
[ "noreply@github.com" ]
rathinitish29.noreply@github.com
ec27c3e337d387838915a713ed556f02f4d35e8c
2d4e3eb624975b30a034f00b081cdf77fd76f205
/scrapers/timetable.py
b2c70b523220a03296421b4c2798e5dfdd471441
[ "MIT" ]
permissive
boh1996/LectioAPI
14060566c6cac3711ef672a1366d4959dceb8b4c
2dcf5928d994b2a407040cabf59db799e8880025
refs/heads/master
2021-01-18T22:26:55.982729
2016-04-17T13:05:14
2016-04-17T13:05:14
12,767,098
5
1
null
null
null
null
UTF-8
Python
false
false
13,891
py
#!/usr/bin/python # -*- coding: utf8 -*- from bs4 import BeautifulSoup as Soup import urls import re import proxy from datetime import * import time from time import mktime import functions from pytz import timezone import authenticate #s2module-bg s2time-off def sameDay ( date, dayOfWeek, week, year ): theDay = da...
[ "boh1996@gmail.com" ]
boh1996@gmail.com
62085bac7af2c75ef4995d947ebe57ef7dcf9cb2
44a2741832c8ca67c8e42c17a82dbe23a283428d
/cmssw/HeavyIonsAnalysis/JetAnalysis/python/jets/ak6CaloJetSequence_pPb_mix_cff.py
43faa9de8f5e464f8f33daa997f0ff65a0071833
[]
no_license
yenjie/HIGenerator
9ff00b3f98b245f375fbd1b565560fba50749344
28622c10395af795b2b5b1fecf42e9f6d4e26f2a
refs/heads/master
2021-01-19T01:59:57.508354
2016-06-01T08:06:07
2016-06-01T08:06:07
22,097,752
0
0
null
null
null
null
UTF-8
Python
false
false
4,457
py
import FWCore.ParameterSet.Config as cms from PhysicsTools.PatAlgos.patHeavyIonSequences_cff import * from HeavyIonsAnalysis.JetAnalysis.inclusiveJetAnalyzer_cff import * ak6Calomatch = patJetGenJetMatch.clone( src = cms.InputTag("ak6CaloJets"), matched = cms.InputTag("ak6HiGenJetsCleaned") ) ak6Calopar...
[ "dgulhan@cern.ch" ]
dgulhan@cern.ch
3c384528e3389e5fcb5e833afc92533aefd3ebf6
6ed76db38374c84161efcf539920756f00fa334c
/aoc2019/day6.py
a89ef49602824bd982eb47a6cd05c5b4c2cc54f1
[]
no_license
will-snavely/adventofcode
0eb424bd2887610af4cdc8fa7bbe6db19c94655e
8e6f66416d508b9042bb78cb931391887fc2da6d
refs/heads/master
2023-07-23T19:44:24.621404
2023-07-13T15:57:04
2023-07-13T15:57:04
328,174,076
1
0
null
null
null
null
UTF-8
Python
false
false
1,424
py
import collections test_inputs = [ "inputs/day6" ] def build_orbit_graph(rules): children = collections.defaultdict(list) parent = {} for rule in rules: parts = rule.split(")") children[parts[0]].append(parts[1]) parent[parts[1]] = parts[0] return children, parent def co...
[ "will.snavely@protonmail.com" ]
will.snavely@protonmail.com
5a75b711fb29537898981bed0b06a74806f2c9fd
d6ed05e23faa20beb5e47624870608a9219ea81c
/TuningTools_old/scripts/analysis_scripts/dev/Trigger_20161214_20_7_7_3_LHbins/create_data.py
085d2aa684d3438748ca6040bac02c4a8c3587d0
[]
no_license
kaducovas/ringer
f6495088c0d54d622dcc707333b4c2fbf132d65f
603311caab016ad0ef052ea4fcc605c5ac4e494b
refs/heads/master
2020-06-16T21:37:15.228364
2019-07-08T01:29:57
2019-07-08T01:29:57
195,477,531
0
0
null
null
null
null
UTF-8
Python
false
false
9,462
py
#!/usr/bin/env python import numpy as np useLHBins = True if useLHBins: etaBins = [0.00,0.60,0.80,1.15,1.37,1.52,1.81,2.01,2.37,2.47] etBins = [15,20,30,40,50000] # Thresholds thres_lh_etavect = [0,0.6,0.8,1.15,1.37,1.52,1.81,2.01,2.37,2.47] thres_lh_etvect = [4,7,10,15,20,25,30,35,40,45,50] tight201...
[ "kaducovas@gmail.com" ]
kaducovas@gmail.com
5973aee2804c87bac3f687c0a8f0b48da17ef309
573cb6d132e1a6962e56a1808aa10d4c09b85a84
/exploit_config.py
df627fc8e8f118fab42f72855b322b6a8b1521f6
[]
no_license
pramann1/dark-matter
8cb75b1c3bf17fd58c810238e80256bb95506ec6
047622ebf03871a633104c3e2602152908f05341
refs/heads/master
2022-04-08T15:27:43.374525
2020-03-01T02:03:59
2020-03-01T02:03:59
241,284,905
0
0
null
null
null
null
UTF-8
Python
false
false
3,895
py
import os import socket import select import sys import threading import hashlib import time import re import json import random import string from pwn import * from timeout import timeout from collections import defaultdict import swpag_client import requests from bs4 import BeautifulSoup from multiprocessing import ...
[ "noreply@github.com" ]
pramann1.noreply@github.com
b05d0b27f1d6b15592926bb7c86aec1b7e8cc0cd
ce2c9e82b05e2cdf09bcf56d35efb2044e1950ec
/String/pratice2.py
9e1ba576364699546971cd47ad6647cc31f8c607
[]
no_license
imakash3011/PythonFacts
cb6423671680284e2fcdeb5442b3206ddd9f5e3a
c060f2ab917831afe5fd604a82d31a78ebf64f6f
refs/heads/master
2023-02-27T12:20:49.045203
2021-02-05T14:51:40
2021-02-05T14:51:40
336,299,429
0
0
null
null
null
null
UTF-8
Python
false
false
986
py
# title # st = "how are you" # print(st.title()) # strip the start and end occrance of target # st = "ppp how are youpppp" # print(st.strip("p")) # reverse a string # st = "akash" # print(st[::-1]) # repeat # import itertools # print(list(itertools.repeat("akash",5))) # longest common subsequece # from difflib i...
[ "imakashpatel3011@gmail.com" ]
imakashpatel3011@gmail.com
46debb410fe143f995be88669f3ec46546a5c6dc
55b324abdc2b07087253a834c26bb11557711d67
/classes/Model.py
ce23fa51fd5be6d25546824e9fa52c7c6afb7ef0
[]
no_license
milimi974/OC_Projet_5
795c41de6b950c130a3ce7191065af573f8d74f1
382f20c886817cb94ed5f59f5840c73235b7ab4b
refs/heads/master
2021-05-06T13:24:25.577013
2017-12-27T22:34:02
2017-12-27T22:34:02
113,223,632
0
0
null
null
null
null
UTF-8
Python
false
false
5,754
py
#!/usr/bin/env python # coding: utf-8 """ Module Parent for all class need access to BDD """ # load dependencies from classes.Database import Database as DB from classes.Functions import * class Model(object): """ That Class manage method for BDD """ def __init__(self, args={}): """ Constructor ...
[ "yohan.solon@gmail.com" ]
yohan.solon@gmail.com
0ff42ffdcd69c859b093f5e2f320ba03debf77c8
fea9e7fc8b5ae1752a8917f415ddfcadc62ae540
/practice/week2/css-selector/sel_books.py
9e571bd96e24c0ce80be33267c1c92621b9eed3f
[]
no_license
Dadajon/dl-with-big-data
fc85e0dd13aa857b89c9b707faabcfc69b51fe24
8e7b543948be0773550a114dc6467627c88e445f
refs/heads/main
2023-07-26T05:43:02.901241
2021-09-09T06:09:43
2021-09-09T06:09:43
328,919,918
1
2
null
null
null
null
UTF-8
Python
false
false
564
py
from bs4 import BeautifulSoup fp = open("books.html", encoding='utf-8') soup = BeautifulSoup(fp, 'html.parser') sel = lambda q: print(soup.select_one(q).string) sel("#nu") # id로 찾는 방법 sel("li#nu") # id와 tag로 찾는 방법 sel("ul > li#nu") # 부모 tag로 id와 tag로 찾는 방법 sel("#bible #nu") # id로 아래의 id를 찾는 방법 sel("#bible > #nu") # id...
[ "dadajonjurakuziev@gmail.com" ]
dadajonjurakuziev@gmail.com
41da231ac8b5c5b4173b3d7a9391a341557523f9
8acc783c61f86bbcb75fb884db3986e47a78d228
/fullstack-nanodegree-vm/vagrant/tournament/tournament_test.py
ab5e58c336b0a5a489297e9b0f1935c3db9e14fb
[]
no_license
barefootlance/udacity-fullstack-p3
9469c0f09dd8dce5f99a6071a22c55aee838a59f
1f24fde32951b18ae9e92ccb0b04c720c704546a
refs/heads/master
2016-08-08T06:37:44.689146
2015-09-16T17:23:57
2015-09-16T17:23:57
40,791,337
0
0
null
null
null
null
UTF-8
Python
false
false
6,695
py
#!/usr/bin/env python # # Test cases for tournament.py from tournament import * def testDeleteMatches(): deleteMatches() print "1. Old matches can be deleted." def testDelete(): deleteMatches() deletePlayers() print "2. Player records can be deleted." def testCount(): deleteMatches() d...
[ "barefootlance@gmail.com" ]
barefootlance@gmail.com
301266cf55d4b1db72d4c34ecfe1d5c9ba8e4fbf
27404582c847efaf9a6e19d0fa6300e387a21a1a
/spriters-resource.com/crawler.py
9099e48c7389a96d7fe9440e2b9260a7da07e0e6
[]
no_license
Necrno/Misc-Download-Scripts
72a6fad8c18b621894181e94961769eaf5889987
8a975c4d6ed33851cc2ca842645573caff6b4a6d
refs/heads/master
2021-05-04T12:18:54.563041
2017-12-27T00:10:09
2017-12-27T00:10:09
null
0
0
null
null
null
null
UTF-8
Python
false
false
2,243
py
import requests import bs4 import os headers = { 'User-Agent': "Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Firefox/52.0", "Accept": "text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8" } URL = "https://www.spriters-resource.com" def get_consoles(): consoles = [] response ...
[ "Anise5-humid5-Allow-5Lulu-Honk" ]
Anise5-humid5-Allow-5Lulu-Honk
afde11cf35e41b50a17e141a35f38faa365d9ba6
84cc9b9b6af95b81d19eda1020f1ac97cbbfa42f
/myapp/models.py
65909fb3ef615af0b1bebed8ba3bfb36a11f9121
[]
no_license
YouCantTouchThis/IncognitoFIN
b91caff1b8e991263ba6c19869374f9e84ab8f48
d99065285216bc731f6339ab9b15b1decaba1c70
refs/heads/master
2022-12-02T00:18:10.276649
2020-07-26T01:48:55
2020-07-26T01:48:55
282,555,627
0
0
null
null
null
null
UTF-8
Python
false
false
179
py
from django.db import models # Create your models here. class Diagnosis(models.Model): image = models.ImageField(upload_to = 'images/') email = models.EmailField()
[ "noreply@github.com" ]
YouCantTouchThis.noreply@github.com
4dd2952b692d1eb7f9535151212982a8483654d6
0bf183f870d39037a254695b163c833512a826f8
/wapps/migrations/0016_auto_20161024_0925.py
5799f374b78a09d39052c63d158a41562f899572
[ "MIT" ]
permissive
apihackers/wapps
47c57a762aec89bc398a152763a2b26005d8ffdc
e8158747aa3d77246d41142580faf9a5f2b0d968
refs/heads/master
2022-06-19T19:40:28.615502
2018-05-02T12:42:51
2018-05-02T12:42:51
59,942,417
7
2
MIT
2022-05-21T21:45:25
2016-05-29T12:40:01
Python
UTF-8
Python
false
false
723
py
# -*- coding: utf-8 -*- # Generated by Django 1.10.2 on 2016-10-24 09:25 from __future__ import unicode_literals from django.db import migrations, models import django.db.models.deletion from wapps.utils import get_image_model class Migration(migrations.Migration): dependencies = [ ('wapps', '0015_iden...
[ "noirbizarre@gmail.com" ]
noirbizarre@gmail.com
12a314df473b007e01fcd646a5de9d22189aca4b
9b7d1472086eed304320312043a95610a39baf9c
/easy_maps/migrations/0001_initial.py
63a5e3ffb746437d92af2bbe813d7a74e7c6e4bc
[ "MIT" ]
permissive
duct-tape/django-easy-maps
1831785952c5ef40028197d5ab618074b5a6053a
790196fcb5652a76a64f7f513c4c4ef4a1c905df
refs/heads/master
2020-05-28T05:14:18.312914
2019-04-21T04:40:29
2019-04-21T04:40:29
188,890,561
0
0
MIT
2019-05-27T18:20:17
2019-05-27T18:20:16
null
UTF-8
Python
false
false
1,103
py
# -*- coding: utf-8 -*- from __future__ import unicode_literals from django.db import models, migrations class Migration(migrations.Migration): dependencies = [ ] operations = [ migrations.CreateModel( name='Address', fields=[ ('id', models.AutoField(verb...
[ "basil.shubin@gmail.com" ]
basil.shubin@gmail.com
7016256f526c1ff9c4e319eff1a5613547d7df02
9df188d04d764638794c0a74128b1f4860a255c6
/cspp1-practice/m9/Functions and Objects Exercise-1/Functions and Objects Exercise-1/functions_and_objects_1.py
66d30945ad0302702084cbb8a9b43bb0de7e6376
[]
no_license
shanmukhsurendra/CSPP1
815742f60de9c0374c4dcd21d9f7eb7fe30d6428
310be6b98c003b7f1b7c7d6e1269d18e0cef91ab
refs/heads/master
2020-03-24T17:50:46.811931
2018-08-25T07:57:36
2018-08-25T07:57:36
142,873,589
0
0
null
null
null
null
UTF-8
Python
false
false
412
py
#Exercise : Function and Objects Exercise-1 #Implement a function that converts the given testList = [1, -4, 8, -9] into [1, 4, 8, 9] def apply_to_each(L, f): j =0 for i in range(len(L)): L[i] = f(L[i]) print(L) def main(): data = input() data = data.split() list1 = [] for j in data: ...
[ "shanmukhsurendra@msitprogram.net" ]
shanmukhsurendra@msitprogram.net
9ad7c88df6556a4c4f1d9aae267e3ee7998f964e
a0f8603ef5bd2c53e2efa2aaee69d37361376ac2
/setup.py
c14b8b2cef5641749d683e19fb44f395cdd0a569
[ "MIT" ]
permissive
ProjetPP/PPP-NaturalMath
383dbc28f2769c020b000676afd8b7a0efb0564c
ce51865d890cb20eba78d73a362af1cb2b62002b
refs/heads/master
2021-01-25T06:40:01.565488
2015-11-21T13:29:21
2015-11-21T13:29:21
29,428,678
2
1
null
2015-05-16T06:34:25
2015-01-18T14:35:50
Python
UTF-8
Python
false
false
1,110
py
#!/usr/bin/env python3 from setuptools import setup, find_packages setup( name='ppp_natural_math', version='0.3', description='Natural language processing for math questions for the Projet Pensées\nProfondes.', url='https://github.com/ProjetPP', author='Valentin Lorentz', author_email='valenti...
[ "progval@progval.net" ]
progval@progval.net
49731a56a1cd6079a7c5e954a58e7180a399da0b
a1f47b53c2583ab94ce80431ace4ea2090142a25
/preference_discovery/models.py
51d89bbc8010a4543b23e01c52cbffc15f6221e2
[ "MIT" ]
permissive
sanjiw/oTree
0b30f6dee8b93e2eefef18d16128be5eb2a7d13b
d60ea92a1a2be3f8b650c5e1547a27a730671333
refs/heads/master
2023-06-06T20:37:58.462732
2021-07-18T14:24:39
2021-07-18T14:24:39
386,983,249
0
0
null
null
null
null
UTF-8
Python
false
false
4,065
py
from otree.api import ( models, widgets, BaseConstants, BaseSubsession, BaseGroup, BasePlayer, Currency as c, currency_range, ) import numpy as np import pandas as pd from random import sample author = 'Putu Sanjiwacika Wibisana' doc = """ Adaptation of Preference Discovery by Delaney,...
[ "sanji.wibisana@gmail.com" ]
sanji.wibisana@gmail.com
b9bcaa542c31817b3e4ff6a55070e5d1260e7a32
a424323a34a2fc5700d690829752d3e30032a1e6
/routelanta/swagger_client/models/error.py
dd84e74804f597df3a67e64cff493499f31707de
[]
no_license
jackrager/jackrager.github.io
884747803fa44063372efdbf46e36e979474d2fe
50b9b62ca7a7fae6744796c1aa032f16cfad5898
refs/heads/master
2023-03-09T22:08:53.059755
2023-02-20T22:30:23
2023-02-20T22:30:23
228,740,344
0
0
null
null
null
null
UTF-8
Python
false
false
5,230
py
# coding: utf-8 """ Strava API v3 The [Swagger Playground](https://developers.strava.com/playground) is the easiest way to familiarize yourself with the Strava API by submitting HTTP requests and observing the responses before you write any client code. It will show what a response will look like with differe...
[ "noreply@github.com" ]
jackrager.noreply@github.com
063b6bc5559dd6534df902d9ab972ce7ecf6bd79
805d9859e85321e6b0a87b3f6fd4b2bf765bc8ee
/Python/Dictionary.py
4c616f7850fd469d2516169036298cc35e03ce79
[]
no_license
aaka2409/HacktoberFest2020
eb6b312555b046b6382cee106b7869d5a36cfe9d
f348e60c2c58c99c20207094b8351aa15b319285
refs/heads/master
2023-08-26T01:19:49.058021
2021-10-25T09:48:24
2021-10-25T09:48:24
420,963,776
1
0
null
null
null
null
UTF-8
Python
false
false
604
py
#Dictionary #beginner pydic = { "apple" : "a fruit, usually green or red in color. The one Eve ate.", "lebanon" : "the place that got blasted a few weeks ago.", "pandemic" : "a new word nigerian youths learnt because of corona virus", "ncdc" : "a governemental parastatal we just heard about, as per cov...
[ "ayfolut@gmail.com" ]
ayfolut@gmail.com
ee0efe58c5e34175fd2e94f5aa392806a29802d3
3d1b3826fba898f738d2cd4345275d8f3536429d
/eigen_value_calculator_3x3.py
263c44bc5b8606e4440e138ccd81bb1795064cbc
[]
no_license
rushil180101/eigen-value-calculator-script
8f45a4ac660e8822ec84f46a53e841adc1b8edfa
7700e3b79d1ecbd0fd99a27b476b96397a0d3909
refs/heads/main
2023-08-15T10:04:01.404297
2021-10-11T10:43:45
2021-10-11T10:43:45
null
0
0
null
null
null
null
UTF-8
Python
false
false
2,707
py
# Eigen Values Calculator import math A = [] print('Enter the values of 3x3 matrix') # Input the matrix values. for i in range(3): row = [] for j in range(3): row.append(int(input())) A.append(row) # Print the matrix for better visualization. print('\n Matrix') for i in range(len(A)): fo...
[ "rushil180101@gmail.com" ]
rushil180101@gmail.com
64ccdd263ca98e95b24a5cf753dcf440d430245d
10e1a046d2fb02d0742364c5d2ca3a40f9380416
/py_wake/tests/test_windturbines/test_generic_wind_turbines.py
0dec1eb35265b6ee19a256e891ed3db51e58c090
[ "MIT" ]
permissive
Bowen-Du/PyWake
e1c407d4ff20101c95c28cd856faec729b414320
9a3c9a85f50082da01286b2dc8551a4e8f5fc037
refs/heads/master
2023-06-10T20:36:00.213649
2021-07-02T11:43:51
2021-07-02T13:14:51
null
0
0
null
null
null
null
UTF-8
Python
false
false
4,371
py
from py_wake.examples.data.hornsrev1 import V80, Hornsrev1Site from py_wake.wind_turbines._wind_turbines import WindTurbine from py_wake.wind_turbines.generic_wind_turbines import GenericWindTurbine, GenericTIRhoWindTurbine from py_wake.examples.data import wtg_path from py_wake.examples.data.dtu10mw import DTU10MW imp...
[ "mmpe@dtu.dk" ]
mmpe@dtu.dk
01d3ab118c111cade14811b445555a634d2d86f8
2fd0c65aa0f72133f773dac5d9a5c48fe9e26fac
/Dsz/PyScripts/Lib/dsz/mca/file/cmd/logedit/errors.py
9078f31a6058462a9312fcb46aac6150a7228736
[]
no_license
FingerLeakers/DanderSpritz_docs
f5d2430e0b86b1b2f0684f02ddd4fa973a5a7364
d96b6a71c039b329f9f81544f645857c75360e7f
refs/heads/master
2021-01-25T13:05:51.732149
2018-03-08T01:22:49
2018-03-08T01:22:49
123,527,268
2
0
null
2018-03-02T03:48:31
2018-03-02T03:48:30
null
UTF-8
Python
false
false
1,344
py
# uncompyle6 version 2.9.10 # Python bytecode 2.7 (62211) # Decompiled from: Python 2.7.10 (default, Feb 6 2017, 23:53:20) # [GCC 4.2.1 Compatible Apple LLVM 8.0.0 (clang-800.0.34)] # Embedded file name: errors.py import mcl.status ERR_SUCCESS = mcl.status.MCL_SUCCESS ERR_INVALID_PARAM = mcl.status.framework.ERR_STAR...
[ "francisck@protonmail.ch" ]
francisck@protonmail.ch
9996767e05c7ef174897a5a5d2132490b329d786
d32d727252dbda22cd3d4b68c0e6f01abf8c7549
/src/tweets/migrations/0001_initial.py
51077d551987f68519e415d9d5e34a900dffb366
[]
no_license
chintan2011/tweetme
aa6fa7666692ccb3bc7e84ceb3fd1b5227b289cb
a7e09cf1e88950bad7d50a1f137cb3762e4bab33
refs/heads/master
2020-03-23T06:30:44.815158
2018-10-11T02:00:17
2018-10-11T02:00:17
141,213,289
0
0
null
null
null
null
UTF-8
Python
false
false
639
py
# -*- coding: utf-8 -*- # Generated by Django 1.10.3 on 2018-07-14 04:32 from __future__ import unicode_literals from django.db import migrations, models class Migration(migrations.Migration): initial = True dependencies = [ ] operations = [ migrations.CreateModel( name='Tweet'...
[ "chintan2011@gmail.com" ]
chintan2011@gmail.com
d8ebc2755556bbbea6c3815331a3c6b35acf71d2
a524f7ab59b8c9fa124c68d6e17a1b4cd0c0062b
/string/romanToInteger/Solution.py
9a7aea77faaec56f327beb80bc8ce89e829c3abe
[]
no_license
sulenn/leetcode_python
796b1c9cc52446717f01cda8075eb54db479d4cb
238880a43fac9f2abdfb4202e5d03ce4f1b1e95d
refs/heads/master
2020-08-06T22:33:06.111130
2019-12-15T12:52:51
2019-12-15T12:52:51
213,183,301
0
0
null
null
null
null
UTF-8
Python
false
false
643
py
class Solution(object): def romanToInt(self, s): """ :type s: str :rtype: int """ romanDic = {"I":1,"V":5,"X":10,"L":50,"C":100,"D":500,"M":1000} curNum = 0 sum = 0 i = len(s) - 1 while i >= 0: if romanDic[s[i]] < curNum: ...
[ "273409891@qq.com" ]
273409891@qq.com
3ce562a5e5b5881b87d936099c74eb0efc486b7b
05de912d5579e031a8ccaeb9b8ea70f1431b82ad
/mopidy/audio/mixers/__init__.py
feaccc3d077f9d2b34cbf8dfeb1dad65870713f2
[ "Apache-2.0" ]
permissive
cave-scorpion/mopidy
bcb0939ddacb0bd295ad36c2b073b369869a15cf
5d83e3e97a47efcfa62558ba57fd394b8c311aa6
refs/heads/master
2021-01-16T22:16:21.134218
2013-03-31T14:59:30
2013-03-31T14:59:30
null
0
0
null
null
null
null
UTF-8
Python
false
false
479
py
from __future__ import unicode_literals import pygst pygst.require('0.10') import gst import gobject from .auto import AutoAudioMixer from .fake import FakeMixer from .nad import NadMixer def register_mixer(mixer_class): gobject.type_register(mixer_class) gst.element_register( mixer_class, mixer_cla...
[ "stein.magnus@jodal.no" ]
stein.magnus@jodal.no
e121faeaf0b31da6101bf336f08d7f4ccf422adb
4dc05d1f439a8f8ddd6fb1362134a5a4fa7e83b6
/google code/src/video_player.py
a83cac56ee4d84cbd24ed9b0a0da49063f3b00e3
[]
no_license
Ramil112358/python-google-
175a940028950c2ddf752c9d9c0cc50bf89518ca
7cc6c5cc1a77141e9e08af1442ea657c8dda1ab9
refs/heads/main
2023-06-08T12:20:55.393339
2021-07-01T11:21:12
2021-07-01T11:21:12
382,007,998
0
0
null
null
null
null
UTF-8
Python
false
false
15,271
py
"""A video player class.""" from src.video_playlist import Playlist from src.video import Video from .video_library import VideoLibrary import random import enum class video_state(enum.Enum): Playing = 1 Pause = 2 Stop = 3 Continue = 4 class video_under_process: def __init__(self): self.v...
[ "noreply@github.com" ]
Ramil112358.noreply@github.com
6312302356179221ff9856c40701a2c68915f9da
3f3eed680fa70d8fa97f0987f0cc848c9ae9cee7
/Practice4/task4.py
db42273f59cbf995bde9bbf321a6c303bc679290
[]
no_license
fatawesome/StructProgramming
8480b5a5ac8e5076221df80d940187333f04f35c
2a4f210a5dd3c87aaf8859d60a357bd832956c26
refs/heads/master
2021-01-22T21:00:05.658294
2017-05-11T17:06:28
2017-05-11T17:06:28
85,385,387
0
0
null
null
null
null
UTF-8
Python
false
false
263
py
import sys text = input() count = 1 max_count = -sys.maxsize - 1 for i in range(1, len(text)): if (text[i - 1] == text[i]): count = count + 1 if (count > max_count): max_count = count else: count = 1 print(max_count)
[ "fatawesomeee@gmail.com" ]
fatawesomeee@gmail.com
fea3bbbd91ad589283a5dfa02ff741773378fb3f
68111bf8bb7c02f283f71f53f279810697281f61
/store/views/signup.py
9b7726fc73f8bd21bc431a64cd5c55339e487fd3
[]
no_license
gauravpandey068/eshop
915205bbb4ec8e28d58b061dff1b960e0f1524ea
35ff0b8fe434549013b115a17c6a64c411431cce
refs/heads/main
2023-07-26T00:24:31.644617
2021-01-16T09:10:44
2021-01-16T09:10:44
330,108,962
0
0
null
null
null
null
UTF-8
Python
false
false
2,446
py
from django.shortcuts import render, redirect from django.contrib.auth.hashers import make_password from store.models.customer import Customer from django.views import View class Signup(View): def get(self, request): return render(request, 'signup.html') def post(self, request): postData = re...
[ "pandeygaurav068@gmail.com" ]
pandeygaurav068@gmail.com
06d216017db674320df2d21293626f0def46e3fa
d0032a8f5dc002aa8e49dde603e3aa802a719683
/bot.py
595670f7615587971ea7ad1d9a9329a00061b6e2
[]
no_license
Dymos16/bot
ddcc29e790bff82fe3f83c2f0bdcb9d920c67e64
ed881c3dafd44bdcb6126b11ca023bf00dc16d7d
refs/heads/master
2022-09-11T19:18:08.105148
2020-05-24T14:08:18
2020-05-24T14:08:18
266,541,282
0
0
null
null
null
null
UTF-8
Python
false
false
914
py
import pyowm import telebot owm = pyowm.OWM('6d00d1d4e704068d70191bad2673e0cc', language = "ru") bot = telebot.TeleBot("1230024109:AAHoslqnQcmS1B9EuHM4k4SG7bV0KZ1B13w") @bot.message_handler(content_types=['text']) def send_echo(message): observation = owm.weather_at_place(message.text) w = observation.get_...
[ "noreply@github.com" ]
Dymos16.noreply@github.com
fb6c4681c0f1024ba2952acc051b817555e4f465
173227142c085b6463dff03018615dd98a1c55d2
/Methods and Functions/Question 6.py
136942e93220dfb948b7b3221f0e53ea6bbc64bf
[]
no_license
HBlack09/ICTPRG-Python
095718567e8081ca8f75066241adbb707f3db717
53057ba10219901a0c690acb8c8cbdf911f71cc1
refs/heads/main
2023-05-28T01:18:49.365555
2021-06-23T01:56:06
2021-06-23T01:56:06
358,219,258
0
0
null
null
null
null
UTF-8
Python
false
false
467
py
def SortWordsAlphabetically(s): s = [c for c in s.lower().split('-')] s.sort() return '-'.join(s) print("Test 1 Passed: " + str(SortWordsAlphabetically("Bob-does-not-like-frank") == 'bob-does-frank-like-not')) print("Test 2 Passed: " + str(SortWordsAlphabetically("why-am-i-doing-this-this-is-terrible")...
[ "noreply@github.com" ]
HBlack09.noreply@github.com
e6ba65a1e4349381acba5c01404dcd17efb2c8d3
f023692f73992354a0b7823d9c49ae730c95ab52
/AtCoderBeginnerContest/1XX/186/E_another.py
5cd6db2ce83b44b90602978bdf66cc3d4f96d6b5
[]
no_license
corutopi/AtCorder_python
a959e733f9a3549fab7162023e414ac2c99c4abe
a2c78cc647076071549e354c398155a65d5e331a
refs/heads/master
2023-08-31T09:40:35.929155
2023-08-20T06:19:35
2023-08-20T06:19:35
197,030,129
1
0
null
2022-06-22T04:06:28
2019-07-15T15:57:34
Python
UTF-8
Python
false
false
1,876
py
""" 以下を参考に作成 https://twitter.com/kyopro_friends/status/1341216644727676928 s + k * x ≡ 0 mod n を解く(xを求める). 鳥の巣原理から x <= n のため, x = im + j (0 <= i, j <= m = n**0.5) と表せる. j が 0 ~ m の時の位置(s + k * j mod n)を前計算し,mapに持っておく(jmap). s + k * (im + j) ≡ 0 mod n s + k * j + k * im ≡ 0 mod n ((s + k * j) mod n) + ...
[ "39874652+corutopi@users.noreply.github.com" ]
39874652+corutopi@users.noreply.github.com
61b606c1dfe74cfc71a5244dcf12c871c3d47dee
1fea3ad1608fbe8d7a695176ce001c32992baab4
/web_scraping/ec2files/ec2file0.py
bdcb33fe4e712a9908fed1ce7a984655bbc9e087
[ "MIT" ]
permissive
cmgospod/Groa
2119714f57bb911d5c9c91597a1b6558448d5dd6
31b3624bfe61e772b55f8175b4e95d63c9e67966
refs/heads/master
2021-01-02T08:06:29.570942
2020-02-07T20:10:54
2020-02-07T20:10:54
239,560,447
1
0
MIT
2020-02-10T16:38:32
2020-02-10T16:38:31
null
UTF-8
Python
false
false
109
py
from scraper import * s = Scraper(start=0, end=1781, max_iter=30, scraper_instance=0) s.scrape_letterboxd()
[ "cmgospod@users.noreply.github.com" ]
cmgospod@users.noreply.github.com
a3b8e7c2bd30a297c6acbb500964593d46332088
3d82768d4f912eb940a1238a3b6347c727e52558
/expense/migrations/0004_auto_20201024_1825.py
83e59278f488ec0faee9c08743a0a6ee6c64bc63
[]
no_license
surajit003/tdd-expense-app
b4dd53c1328f4dd40b39593e09f8afe9e811ff4a
603c6f56ce35944c1acf8deefd6d7b420576e65d
refs/heads/main
2023-01-08T16:01:42.102279
2020-11-08T20:47:04
2020-11-08T20:47:04
305,830,003
0
0
null
null
null
null
UTF-8
Python
false
false
723
py
# Generated by Django 3.1.2 on 2020-10-24 18:25 from django.db import migrations, models class Migration(migrations.Migration): dependencies = [("expense", "0003_auto_20201024_1816")] operations = [ migrations.AlterField( model_name="expense", name="expense_id", ...
[ "surajit@poweredbypeople.io" ]
surajit@poweredbypeople.io
7514b141abc126e5037f7efc1213d03689bc0d9c
e7a87d9eca87d8be7b23b3a57c1d49f0ad6d20bc
/django_evolution/tests/test_evolution_graph.py
6605ada4d37302b6934cfd1385ab441c14c50fee
[ "BSD-2-Clause" ]
permissive
beanbaginc/django-evolution
19a775a223b61861f503925216fb236b822122c0
756eedeacc41f77111a557fc13dee559cb94f433
refs/heads/master
2023-06-22T07:25:32.401292
2022-11-10T03:23:50
2022-11-10T03:23:50
14,189,401
22
13
null
2015-01-07T01:15:08
2013-11-07T00:04:43
Python
UTF-8
Python
false
false
24,833
py
"""Unit tests for django_evolution.utils.graph.EvolutionGraph.""" from __future__ import unicode_literals from django.db import DEFAULT_DB_ALIAS, connections from django_evolution.compat.apps import get_app from django_evolution.models import Evolution, Version from django_evolution.support import supports_migration...
[ "christian@beanbaginc.com" ]
christian@beanbaginc.com
5c1af70eb8f9c878ff51c045769f6b423b061baa
0dde244a6e4ebbf255d1e9d0e98ac66fce1f06cd
/src/ui/overview.py
02629a0576d5ad304a2594094c38836a09312745
[]
no_license
uridanan/Mint
dabe1ded7b3ab57cb5dd9761fcc5f69267d5cff7
5b6a8ee12aff798b6d7f5ba0e7baa49bd9a8f7f6
refs/heads/master
2020-03-20T07:11:26.514511
2019-11-05T21:40:14
2019-11-05T21:40:14
137,273,586
0
0
null
null
null
null
UTF-8
Python
false
false
6,895
py
import dash_core_components as dcc import dash_html_components as html import src.db.dbAccess as db from dash.dependencies import Input, Output import plotly.graph_objs as go from src.app import app from src.ui.timeseries import * from src.sessions.globals import session #TODO Change the report to the data presented...
[ "uridanan@gmail.com" ]
uridanan@gmail.com
2e43ad66add5cc370ee3dc18b1754c8d45d8b1fe
31eaed64b0caeda5c5fe3603609402034e6eb7be
/ignorancia_zero/iz_aula-064 - programação orientada a objetos.py
e7aa8a74376c2e9fbd0ede1bee421dec1ba61654
[]
no_license
RaphaelfsOliveira/workspace_python
93657b581043176ecffb5783de208c0a00924832
90959697687b9398cc48146461750942802933b3
refs/heads/master
2021-01-11T17:39:49.574875
2017-06-28T20:55:43
2017-06-28T20:55:43
79,814,783
0
0
null
null
null
null
UTF-8
Python
false
false
1,418
py
# metodo especial construtor de objeto # instancia o objeto '__init__' # devolve o objeto no formato de um dicionario '__dict__' # transforma o objeto em string, tem sempre que retornar uma string '__str__' # faz operações com outra instancia do objeto somente com sinal + - / * '__add__' #imprime na tela a docum...
[ "raphaelbrf@gmail.com" ]
raphaelbrf@gmail.com
21d5d25107671e5c852f9645f6c319c98f3cabca
32fff3cac41691e7ef76bd48d575c74e7102e861
/Lab6/htmlfilter.py
b838656b8ff34f2e189a5da93ec40aafa495ded4
[]
no_license
ukk1/ITKST53
6afbe31ebf014033829e874f912bb7fa359fd3f2
20f3509807fc557e9564193f2822f2bbe64714fa
refs/heads/master
2020-04-06T07:10:50.969155
2016-08-31T16:28:57
2016-08-31T16:28:57
60,543,895
3
2
null
null
null
null
UTF-8
Python
false
false
2,338
py
import lxml.html import lxml.html.clean import slimit.ast import slimit.parser import lab6visitor from debug import * libcode = ''' <script> var sandbox_document = { getElementById: function(id) { var e = document.getElementById('sandbox-' + id); return { get onclic...
[ "bldr86@gmail.com" ]
bldr86@gmail.com
bfb960beefa750bcc845e2efc49507af9740647a
52a61caff0aeb434c32e5657e38762643e9f57dd
/DataStructuresAndAlgorithms/SearchAndSort/Search/BinarySearch/functionBinarySearch.py
6a7e15608caca8460acd2988b9f9a53c5f770492
[]
no_license
AndrewErmakov/PythonTrainingBasics
1480a6378d1ec59884760e2b3014ccc3d28f058f
639e15bbfc54da762cb9e366497754cfece30691
refs/heads/master
2021-06-10T15:57:58.682335
2021-03-25T13:37:30
2021-03-25T13:37:30
153,678,760
0
0
null
2018-10-30T13:52:51
2018-10-18T19:45:47
Python
UTF-8
Python
false
false
596
py
def binary_search(list_num: list, number: int) -> int: """Выводит индекс значения, которое мы ищем, иначе выводится НЕ НАЙДЕНО""" low_border = 0 high_border = len(list_num) - 1 while low_border <= high_border: mid = low_border + (high_border - low_border) // 2 guess = list_num[mid] ...
[ "andrew.67@list.ru" ]
andrew.67@list.ru
b3e4aaa0bed41cbfe87730b8ee3df312b46f9aba
b590cf6a5c1fffd9c05a6d27462b472854b93fe6
/utils/transformations.py
45d7478a7130343949d498d5c301ac1acf31fbb4
[ "MIT" ]
permissive
CarolMazini/Manifold-Learning-for-Real-World-Event-Understanding
344f4e01438570ab710e1e1dc187386f20072d94
36151165f0ce23c168b893a9e916023b34630cf3
refs/heads/main
2023-04-15T13:52:01.063661
2021-04-16T08:49:41
2021-04-16T08:49:41
350,513,471
0
0
null
null
null
null
UTF-8
Python
false
false
4,789
py
from tqdm import tqdm import time import numpy as np import scipy as sc from sys import argv import math from sklearn import metrics import shutil import random from PIL import Image import PIL import cv2 import os import imutils #performs randomly rotations according to a maximum angle for both sides def random_ro...
[ "carolinemazinirodrigues@hotmail.com" ]
carolinemazinirodrigues@hotmail.com
00897337ef29542e1c4328ecc6528ae53b6c399f
de9da1acee9c6b7e899efe8adf83ae0b29fc2ad3
/src/run.py
1521c7d5049b918c40431f9348d2f844f6d32c50
[ "MIT" ]
permissive
CristianContrera95/FaceDetectAPI
646518cbc1d24898904a723a7333f6a27edacb0b
49cc896e8eddbf26b406d75325f9b38dba532e2b
refs/heads/master
2022-12-09T20:26:15.448061
2020-08-27T13:48:03
2020-08-27T13:48:03
null
0
0
null
null
null
null
UTF-8
Python
false
false
236
py
from app import app from config import ENVIRONMENT, PORT if __name__ == '__main__': if ENVIRONMENT == 'dev': app.run(host='0.0.0.0', port=PORT, debug=True) else: app.run(host='0.0.0.0', port=PORT, debug=False)
[ "cristiancontrera95@gmail.com" ]
cristiancontrera95@gmail.com
06b82317f341de041aa076425ac0ea6a0b157357
fdb9b553a23647f7ea06f690613707c40b54902f
/src/main/resources/resource/LocalSpeech/LocalSpeech.py
3c699a5680887399d9993fd401bcfa08d5ebce64
[ "CC-BY-2.5", "Apache-2.0" ]
permissive
ShaunHolt/myrobotlab
d8d9f94e90457474cf363d36f4a45d396cfae900
92046d77abd560f0203050b3cccb21aa9df467f2
refs/heads/develop
2021-07-08T04:55:01.462116
2020-04-18T19:58:17
2020-04-18T19:58:17
122,795,957
0
0
Apache-2.0
2020-04-18T19:58:18
2018-02-25T01:37:54
Java
UTF-8
Python
false
false
886
py
######################################### # LocalSpeech.py # description: used as a general template # categories: speech # more info @: http://myrobotlab.org/service/LocalSpeech ######################################### # start the service mouth = Runtime.start('mouth','LocalSpeech') #possible voices ( selected voic...
[ "grog@myrobotlab.org" ]
grog@myrobotlab.org
eecfd2976b90f621a274ce0bcb1917b8a3f72bb2
8a91561ea2f82376f653a001f642d1a32234b6d0
/bot.py
c7683d20b5701a5c577bd77ddc77720c37529f60
[]
no_license
SumitKumar1307/Lightning
8cf6adfbc5c264c6e86de7fb2c84a333b3873cbd
7052948c77381b0209865758f33f45ddb48f39fd
refs/heads/main
2023-02-23T16:01:58.518177
2021-01-25T11:35:10
2021-01-25T11:35:10
332,725,897
0
0
null
null
null
null
UTF-8
Python
false
false
3,692
py
import discord intents = discord.Intents.default() intents.members = True client = discord.Client(intents=intents) @client.event async def on_ready(): print(f"{client.user} connected to Discord") @client.event async def on_member_remove(member): print("Someone left") member_name = str(me...
[ "noreply@github.com" ]
SumitKumar1307.noreply@github.com
8dbc45ff6c19e23b02c3d083b54c1e91f05af6d0
10abbbca6e0f3f0939bef436b41dfd1511c9480b
/post/views.py
6b9883dff1390cfeefe5bd853589ead2bd367751
[]
no_license
TrellixVulnTeam/blog_QJAD
727f306001abe083c98a5c10277a1158170d61dd
d061442d41b985df11e6c6eac4e602818c0f9443
refs/heads/master
2023-03-17T12:50:38.497215
2019-02-21T15:12:45
2019-02-21T15:12:45
null
0
0
null
null
null
null
UTF-8
Python
false
false
3,867
py
# -*- encoding: utf-8 -*- from django.shortcuts import render, HttpResponse, get_object_or_404, HttpResponseRedirect, redirect, Http404 from .models import Post from .forms import PostForm, CommentForm from django.contrib import messages from django.core.paginator import Paginator, EmptyPage, PageNotAnInteger from djan...
[ "bilal.kocoglu@outlook.com.tr" ]
bilal.kocoglu@outlook.com.tr
024b9ada66b4ee856c4d8280dcc378ff861efede
0d53ed17c625bf2c0293cad39fafc2edfa089b2a
/main_app/migrations/0002_piece_user.py
6378be263835cfe24e68ec79c12e8d8cbd26ce1a
[]
no_license
aaalexandriaaa/sforzando
0fae6b1ca62b94348fdd8b9e63f2cdb65bbbe9d6
17c3494da7458080f19761c5d2cfe55ff97edbe8
refs/heads/main
2023-08-04T23:54:01.416602
2020-10-16T14:26:08
2020-10-16T14:26:08
302,711,668
0
0
null
2021-09-22T19:36:59
2020-10-09T17:35:53
Python
UTF-8
Python
false
false
598
py
# Generated by Django 3.1.2 on 2020-10-11 21:26 from django.conf import settings from django.db import migrations, models import django.db.models.deletion class Migration(migrations.Migration): dependencies = [ migrations.swappable_dependency(settings.AUTH_USER_MODEL), ('main_app', '0001_initial...
[ "67809768+aaalexandriaaa@users.noreply.github.com" ]
67809768+aaalexandriaaa@users.noreply.github.com
c47cbf1c998f0c06d74faf1cdd1bc8ef5fc26fcf
f46fcb4f1a1eba8e18f0aeecc858f2f9da8222f0
/venv/bin/python-config
aa1a21e7d179ec6ef46a96533d16d37f040a3065
[ "MIT" ]
permissive
miket430/DjangoChannels
ba3d362eeee510cf8a4acab60b460b7e8cdbcac4
bd772ce29fc3ead2b3286a86374b37729a6b6577
refs/heads/master
2021-01-19T15:16:44.337613
2017-04-15T21:24:30
2017-04-15T21:24:30
88,209,231
0
0
null
null
null
null
UTF-8
Python
false
false
2,371
#!/home/mike/Projects/webRTC/DjangoChannels/mysite/venv/bin/python import sys import getopt import sysconfig valid_opts = ['prefix', 'exec-prefix', 'includes', 'libs', 'cflags', 'ldflags', 'help'] if sys.version_info >= (3, 2): valid_opts.insert(-1, 'extension-suffix') valid_opts.append('abifla...
[ "280749941@qq.com" ]
280749941@qq.com
474938eddcd278b842c02f4bc13beab9969ae5d4
cbf448f9fa287b38a6b175040141e9ee445cfcd1
/DNN_3L/evaluation_matrics.py
cbb95bef1984a401aac76d2f267d039a67d8c78a
[]
no_license
rnaimehaom/SST-Result
271c115d6ab1f14265169d98f604d4a63c71184e
829029b060010b2928032b3d6728c660b538b5cf
refs/heads/main
2023-03-27T23:17:53.935109
2021-04-09T02:49:58
2021-04-09T02:49:58
null
0
0
null
null
null
null
UTF-8
Python
false
false
1,284
py
# -*- coding: utf-8 -*- """ Created on Mon Nov 2 15:39:34 2020 @author: tanzheng """ import pickle import numpy as np with open('DNN_3L_SST_predict.pkl', 'rb') as f: MT_predict_result = pickle.load(f) f.close() first_pred_out_y, second_pred_out_y, out_prop_y, tasks = MT_predict_result ...
[ "noreply@github.com" ]
rnaimehaom.noreply@github.com
db30ff6125e8ba725f70fa409f394ad7acaaeaff
570e773112f03048fc4080a066f1ab8bdd87f288
/reverse.py
f02f982753f3171ed326e5818b91db0fb0e03244
[]
no_license
shuvendra4228/learn-python
c0da1e0ea7188a80d97b39b933e4278f8321db10
c61368db0064455104b13f1d6d23df24a64e8b61
refs/heads/master
2021-09-04T02:25:47.969362
2018-01-14T16:43:42
2018-01-14T16:43:42
115,523,186
0
0
null
null
null
null
UTF-8
Python
false
false
92
py
S = input('enter a string:') S1='' for i in range (len(S)): S1+=S[-(i+1)] print(S1)
[ "shuvendra4227@gmail.com" ]
shuvendra4227@gmail.com
9d9c04e3d472a5fab525b52426f395ff9458ce80
3a9e81f9a154aa53db2b62b84e0218e4b1dccbac
/src/transformers/modeling_reformer.py
6049dc3ed0863b49c3bd71fd51cdf48eeaee2157
[ "Apache-2.0" ]
permissive
toriving/transformers
c3d5b892c367bfbd857e41a50cd839b03b7ce90b
2f2aa0c89cab9a77560e6845578f917a61081c67
refs/heads/master
2020-08-10T10:27:10.610417
2020-08-06T15:47:32
2020-08-06T15:47:32
214,324,448
0
0
Apache-2.0
2019-10-11T02:18:03
2019-10-11T02:18:03
null
UTF-8
Python
false
false
109,637
py
# coding=utf-8 # Copyright 2020 The Trax Authors and The HuggingFace Inc. team. # Copyright (c) 2018, NVIDIA CORPORATION. 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...
[ "noreply@github.com" ]
toriving.noreply@github.com
ef5da6990fdda1ae2e8bccf7b97fade9c5b30c57
d11b71bd556bbb6c0deccde0122b9ce64b1069cd
/tango_with_django_project/rango/migrations/0083_auto_20150122_0318.py
8915c75cd213d4b6bf914659e2bd216e405828bc
[]
no_license
Tanner-Stults/hello-world
eeaf8105ac51b6eb5a7ac117fa7c3aff6b3fd112
0f568bd73c69abad01e100e4f05a180542af5b49
refs/heads/master
2020-06-01T19:55:08.431395
2015-07-27T00:10:25
2015-07-27T00:10:25
27,045,783
0
0
null
2014-11-23T20:17:16
2014-11-23T20:09:46
null
UTF-8
Python
false
false
411
py
# -*- coding: utf-8 -*- from __future__ import unicode_literals from django.db import models, migrations class Migration(migrations.Migration): dependencies = [ ('rango', '0082_auto_20150122_0318'), ] operations = [ migrations.AlterField( model_name='workexperience', ...
[ "jst274@cornell.edu" ]
jst274@cornell.edu
ef5cfcba95a6606c5510682302bc8b7563f002b6
e90bf4b372da78ceec15282d060b48d18ba8d4e9
/supervisor/backups/const.py
c4b5e593e438d1e447c34ebcb2e8cc63ca5d919e
[ "Apache-2.0" ]
permissive
home-assistant/supervisor
67f2e1755ff5fbf7cf2084351e1c32c6995274e0
4838b280adafed0997f32e021274b531178386cd
refs/heads/main
2023-08-31T22:51:25.949277
2023-08-31T08:01:42
2023-08-31T08:01:42
84,926,758
928
477
Apache-2.0
2023-09-14T17:11:27
2017-03-14T08:54:15
Python
UTF-8
Python
false
false
945
py
"""Backup consts.""" from enum import StrEnum BUF_SIZE = 2**20 * 4 # 4MB class BackupType(StrEnum): """Backup type enum.""" FULL = "full" PARTIAL = "partial" class BackupJobStage(StrEnum): """Backup job stage enum.""" ADDON_REPOSITORIES = "addon_repositories" ADDONS = "addons" DOCKER...
[ "noreply@github.com" ]
home-assistant.noreply@github.com
d336b48ca399ec97ad77e13b5706fb43d5df98f2
5e6fc89f578d368c81231fdd50693b5857042c3d
/template/setup.py
d3861b0996ffebdc86964e23c2bb6bd2c93d8dd1
[ "Unlicense" ]
permissive
Ruthenic/rodder-repo
9d14fe5fab278c6cc7f8c3a5a31abb4477c7f6ba
a80c4b8a6e032d0d1c21524caf7b91066575b25f
refs/heads/master
2023-03-12T19:29:31.900411
2021-02-22T01:58:28
2021-02-22T01:58:28
322,481,514
1
0
null
null
null
null
UTF-8
Python
false
false
1,022
py
#PLEASE NOTE: THIS FORMAT IS NOT REQUIRED TO SUBMIT TO THE MAIN REPO, NOR IS IT REQUIRED FOR RODDER TO FUNCTION. THIS IS ONLY A TEMPLATE, USABLE WITH MOST PROGRAMS #Thanks, Drake. import subprocess,requests,tarfile,os,shutil dlurl = '$DOWNLOAD_LINK' #this is where your download url print(">< Downloading $PROGRAM_NAME...
[ "mdrakea3@tutanota.com" ]
mdrakea3@tutanota.com
5b30c3f29fb8ebe39cfce369d37ef01a2df19ef6
b4f42d5127b3b10303b4df0f0c57cc0e546a9bd0
/rest/migrations/0026_auto_20200819_1700.py
58b852e9ce6617b359ed35953a8eaea827b9c989
[ "MIT" ]
permissive
narcotis/Welbot-V2
8ba14db2a2722cb6f907bb96018908ffe57b5999
7525216b61036f62d0be0b5ebb6d3476b73323c8
refs/heads/master
2022-12-16T16:08:38.465029
2020-09-09T20:08:01
2020-09-09T20:08:01
291,740,691
1
0
null
null
null
null
UTF-8
Python
false
false
766
py
# Generated by Django 3.0.8 on 2020-08-19 08:00 from django.db import migrations, models import django.db.models.deletion class Migration(migrations.Migration): dependencies = [ ('rest', '0025_auto_20200819_1631'), ] operations = [ migrations.AlterField( model_name='culture_...
[ "qhguswkd@gmail.com" ]
qhguswkd@gmail.com
5fc22fa8da5a8f032fb8fdb322bcdb4a0e26cda1
650df9246dd0338123ea6af35a5598bea33ba540
/train.py
76ed95d3590f48dfd55bf7f74df2d3c21c9213ae
[ "MIT" ]
permissive
1suancaiyu/Locality-Awareness-SGE
24f8259547ddff4d8bbd6a37313f07d1371b578e
42f794ce1a3e1ed39c4b26a74deaa14af4a6d5e1
refs/heads/master
2023-04-08T18:39:33.501385
2021-04-25T08:32:12
2021-04-25T08:32:12
350,745,772
0
0
MIT
2021-03-23T14:36:45
2021-03-23T14:36:44
null
UTF-8
Python
false
false
360,224
py
import tensorflow as tf from tensorflow.python.layers.core import Dense import numpy as np import time import matplotlib as mpl import copy import os from tensorflow.python.ops import rnn_cell_impl # mpl.use('Agg') # import matplotlib.pyplot as plt import os # Number of Epochs epochs = 100 # Batch Size batch_size = 1...
[ "wang.shuxi@outlook.com" ]
wang.shuxi@outlook.com
9d1fb42471abeeb801d4ba9a1bfad944700ce406
12c3cee16358928e4f00120fb45b43448c4a64d1
/hello.py
d2b6e1ff2b8beef1dc14b50c173c8a067af81d34
[]
no_license
stifalex/py1
dc643a4f53c64ef15fb280d80aca67fd60ccd108
bd467b85377c6aa79ffcad1e65f18b263773842d
refs/heads/master
2020-05-31T23:55:35.384306
2019-06-17T10:53:01
2019-06-17T10:53:01
190,547,366
0
2
null
null
null
null
UTF-8
Python
false
false
59
py
x=int(input()) m=1 while m<=x: m+=1 print("hello")
[ "noreply@github.com" ]
stifalex.noreply@github.com
15dc4ff64abd92df677bf9a8ef641da64b92adda
d77eb6ee080e59c83e102a76e9476e51e0184fe7
/server3.py
3559324adde8de1b97d067cb81a5621bff29d710
[]
no_license
ricatosin/2PC
ce0acff4d225ef3d8c28e7bef5bdac4027816463
027f8745516cc8d3658a826efefba00cda5d9e39
refs/heads/master
2020-03-24T19:20:46.919514
2018-07-30T19:53:13
2018-07-30T19:53:13
142,920,796
1
0
null
null
null
null
UTF-8
Python
false
false
2,969
py
########################################################## ##Codigo cliente escrito por Ricardo Tosin ############### ########################################################## import socket import sys import datetime import time from thread import * logServer3 = open('logServer3.txt','w') # Abre arquivo escrita do lo...
[ "noreply@github.com" ]
ricatosin.noreply@github.com
c553d74eaa132d25fe4fc5ed0e0a10d05a9ff9e5
f2a55f94783fed2a53bc2ff1a0096cfdb75dc5a3
/3rd Year Diatomic Simulation Exercise/Particle1D.py
9b7e688d4446b103fb241661e708022f216dd910
[]
no_license
callous4567/UoE-Projects
c7b307878ae1d6b7e00227bb1a681aec2ad55b1f
5a4ee803f70f7da9d860f905114a71278c7f50e7
refs/heads/master
2023-02-18T22:19:25.496429
2023-02-13T01:00:19
2023-02-13T01:00:19
245,646,389
0
0
null
null
null
null
UTF-8
Python
false
false
2,034
py
""" CMod Ex2: Particle1D, a class to describe 1D particles """ class Particle1D(object): """ Class to describe 1D particles. Properties: position(float) - position along the x axis velocity(float) - velocity along the x axis mass(float) - particle mass Methods: * formatted output ...
[ "plasmolian@gmail.com" ]
plasmolian@gmail.com
d2797398c8da6c4fb49aafc3d736a1391d150f12
b6f0b3932f8cdee542f3f1fe7f5c27c67e5d1c2d
/conf/train_conf_dense_7.py
1c88e9db0a9644002cbed124c0e05c35b5d75b9d
[]
no_license
fuding/codes_for_sicheng
dcab85b66d9f3a0f0c78c5e471223d919a3d14f7
c8ba21572921ba0aa9686174305ab48fa614cd5d
refs/heads/master
2022-02-26T16:32:01.253870
2019-10-11T06:10:27
2019-10-11T06:10:27
null
0
0
null
null
null
null
UTF-8
Python
false
false
1,453
py
from easydict import EasyDict def get_config(): conf = EasyDict() conf.arch = "dense_7" conf.model = "MultiHDR" conf.model_name = conf.arch + "" conf.use_cpu = False conf.is_train = True conf.gpu_ids = [0] conf.epoch = 400 conf.start_epoch = 0 conf.learning_rate = 0.0002 ...
[ "907682447@qq.com" ]
907682447@qq.com
e7135cb72e171a176efe25678a61ae2c7c00da2f
e7e1dc27c9c6b844bb585d09c6660eb8877d0551
/guodongba/views.py
17993c976e4dfd1d562a36d34f30e6116fe8ac5c
[]
no_license
Guo-Dong-Ba-Team/guodongba-server
362df7e47dcabd1cbae56829388c6844019b9f48
81727dc57d60e209d101bf5e88b22967824a310b
refs/heads/master
2021-01-10T17:46:53.599733
2015-12-19T14:47:35
2015-12-19T14:47:35
44,010,066
1
0
null
null
null
null
UTF-8
Python
false
false
184
py
from django.shortcuts import render_to_response def home_page(request): return render_to_response('index.html') def agreement(request): return render_to_response('agreement.html')
[ "wangyf11@mail.ustc.edu.cn" ]
wangyf11@mail.ustc.edu.cn
e00c10016ee6c187142737795c5e17c68a17937a
25022cc3cff8a31cead2dc17b5c40fef1f9825c2
/0x03-python-data_structures/10-divisible_by_2.py
7111e75bd74335da6bbb1af23df54257d2211d0a
[]
no_license
821-N/holbertonschool-higher_level_programming
699032f42d5a94065c63c453774c532945e5807c
bfd43a2919c1d2cf63d964a1ded41e2252e83ccd
refs/heads/master
2020-07-23T18:38:49.325003
2020-02-14T04:56:43
2020-02-14T04:56:43
207,669,574
0
1
null
null
null
null
UTF-8
Python
false
false
135
py
#!/usr/bin/python3 def divisible_by_2(my_list=[]): new = [] for item in my_list: new += [item % 2 == 0] return new
[ "nathaniel.marofsky@gmail.com" ]
nathaniel.marofsky@gmail.com
7c0dc62998969fe32e1394a1fe83e7c256fb1e99
4c1a5ae2d8cc13a2438fe8eac0529a1cb9fe847b
/server/settings.py
f0a074c8d677ac61c92dbbfe11c15c57e1f2da47
[]
no_license
Alex2Pena/Docker-blog
8d381d5ccf29b806ae8165109dbc4c9ccca085a3
6637f7ae7677b89e1005299279a2086e8c1691c7
refs/heads/main
2023-02-08T02:56:02.118544
2020-12-29T16:47:24
2020-12-29T16:47:24
323,504,916
0
0
null
2020-12-29T16:47:25
2020-12-22T02:57:41
null
UTF-8
Python
false
false
3,485
py
""" Django settings for server project. Generated by 'django-admin startproject' using Django 3.1.4. For more information on this file, see https://docs.djangoproject.com/en/3.1/topics/settings/ For the full list of settings and their values, see https://docs.djangoproject.com/en/3.1/ref/settings/ """ from pathlib ...
[ "attn.alex.p@gmail.com" ]
attn.alex.p@gmail.com
83b668e0c8e813fb1fa0f21402c55b6211e0113c
15ec2f9208d011097a02fd997df0fedd3c6311a1
/data_exploration_gui/plot.py
82534ae177b9af5a8ffa3ff7054f6337da908353
[ "MIT" ]
permissive
int-brain-lab/iblapps
95110bec8b9de2e1e41808086897ac0cd663d59c
e3e5a90fd4c60ef94fc87dd60f9de0307b51ab5f
refs/heads/master
2023-08-09T14:48:01.876042
2023-07-25T09:34:14
2023-07-25T09:34:14
233,610,481
13
13
MIT
2023-09-01T10:02:17
2020-01-13T14:09:51
Python
UTF-8
Python
false
false
15,749
py
from PyQt5 import QtGui import pyqtgraph as pg import pyqtgraph.dockarea from data_exploration_gui.utils import (MAP_SORT_OPTIONS, MAP_SIDE_OPTIONS, MAP_CHOICE_OPTIONS, PSTH_OPTIONS, RASTER_OPTIONS, colours) import atlaselectrophysiology.ColorBar as cb import numpy as np ...
[ "mayo.faulkner@ucl.ac.uk" ]
mayo.faulkner@ucl.ac.uk
bfd9671d940ff8189d3a8359ad4ba293d4df4e8d
99507b26eb81315c8369ae95ef5c8d0ab816b50c
/assignment_Q14.py
dd9bb12ca6f006a6eb2b4e671efacba89c18aa29
[]
no_license
sprajwol/python_assignment_II
19d4f4807df4edb30e154ed527e4671f2eb88463
cd9b0fc6cacc150e73e447f8884196a4959a1f88
refs/heads/master
2022-11-14T17:18:03.274873
2020-07-05T17:00:00
2020-07-05T17:00:00
276,271,587
0
0
null
null
null
null
UTF-8
Python
false
false
527
py
# 14. Write a function that reads a CSV file. It should return a list of # dictionaries, using the first row as key names, and each subsequent # row as values for those keys. # For the data in the previous example it would return: # [{'name': 'George', 'address': '4312 Abbey Road', 'age': 22}, {'name': # 'John', 'addre...
[ "shakyaprajwol96@gmail.com" ]
shakyaprajwol96@gmail.com
848af6d597acad3a8cac069ab9fa0f6804f89c32
6ae1d088d8849459cccfe35c27a76e28f3883130
/venv/Lib/site-packages/pygit2/repository.py
a7180f9b0626c6fe18c0d62f0c5250ae98075a47
[]
no_license
salmans71/python
8ac91cd985b19fa8d67c8b73ea98ce208cc36ee2
9957967fe34d623a885dde699fd7b5cdcf0b8d07
refs/heads/master
2023-01-03T23:35:23.867001
2020-10-31T15:08:48
2020-10-31T15:08:48
308,904,629
0
0
null
null
null
null
UTF-8
Python
false
false
48,851
py
# Copyright 2010-2020 The pygit2 contributors # # This file is free software; you can redistribute it and/or modify # it under the terms of the GNU General Public License, version 2, # as published by the Free Software Foundation. # # In addition to the permissions in the GNU General Public License, # the authors give ...
[ "veerankisalmanraj@gmail.com" ]
veerankisalmanraj@gmail.com
f2fdbcd6bc145b6ac96878bd70741c1cf8492916
c99988740dfd759e999f40a942c3d7d290188e6d
/HeavyIonsAnalysis/TrackAnalysis/python/crab_20200921_073540/inputs/PSetDump.py
35fa94ca931bc0e0510d388145724c23987461af
[]
no_license
yszhang95/miniAOD_tree_production
e6fa5fc77eb26006061e5558bc5eae0842ef2591
3b33454e6fd17eecb576f9a92545ff917684d170
refs/heads/master
2022-12-31T00:36:56.716163
2020-10-19T18:00:25
2020-10-19T18:00:25
null
0
0
null
null
null
null
UTF-8
Python
false
false
31,315
py
import FWCore.ParameterSet.Config as cms process = cms.Process("Analysis") process.source = cms.Source("PoolSource", duplicateCheckMode = cms.untracked.string('noDuplicateCheck'), fileNames = cms.untracked.vstring('/store/group/phys_heavyions/FECEF784-7DCA-984D-AF75-1991ACA0747A.root') ) process.HFRecalParame...
[ "parker.gardner95@gmail.com" ]
parker.gardner95@gmail.com
23f82bb8c49c6bd705e2554aa96eaf4871d316d0
afc95be6f7e4b4abb2a81abfe50e1e2d5653e05e
/CrawlManager/Crawls/migrations/0002_auto_20190119_0835.py
d8813714e52d47e63d780757df36733e449a06c4
[]
no_license
iamzhijin/sf_spider
316257e6e7821548686e0d66f234009429f87761
c068d5d363839eb8e521e55abc6ca48d348a41a3
refs/heads/master
2023-01-28T12:06:27.011834
2019-02-27T09:50:11
2019-02-27T09:50:11
161,603,917
3
0
null
2022-12-07T04:13:47
2018-12-13T07:58:24
Python
UTF-8
Python
false
false
443
py
# Generated by Django 2.1.4 on 2019-01-19 08:35 from django.db import migrations class Migration(migrations.Migration): dependencies = [ ('Crawls', '0001_initial'), ] operations = [ migrations.AlterModelOptions( name='crawls', options={'ordering': ['-update_time'...
[ "liuyun@yscredit.com" ]
liuyun@yscredit.com
197d28ad27055c99b501b8686cb22585cb12338c
aa5bf16e117b1b57e8090ab9b44ca51042aac2fc
/Prac-4/4.py
77994f6bfd1c6be39e0c4737e72e2d9dafbbf2fd
[]
no_license
hardilundavia/extra
a3f7536911dd0d50ed276e0209e5ef0535e5ae80
1f82d35ee8801909516e97f2ffac6bc4f57d06d8
refs/heads/master
2020-06-28T20:22:14.246229
2019-12-23T11:50:38
2019-12-23T11:50:38
200,328,441
0
0
null
null
null
null
UTF-8
Python
false
false
1,098
py
class BankAccount: intrest_rate=4; def set(self): self.ac_no=int(input("Enter Account Number :")); self.ac_name=input("Enter Account Name :"); self.balance=int(input("Enter Balance :")); def show(self): print("Ac_no\tAc_name\tBalance"); print(self.ac_no,"\t",s...
[ "noreply@github.com" ]
hardilundavia.noreply@github.com
dac12c063d52b36e99c387294e3b6371d00e6aef
41fbec3acb666d7f39ad0640129e5de9eb1ba125
/classid.py
8ca98eb998e4b298d4ac6c96340d943143912ca4
[]
no_license
SirBaaron/classid
0190839f02bfa0b3d7269dc365394eca2b0ba2ca
b5875cfb681ba4744e47babbc8ff3a34ec667698
refs/heads/master
2021-01-17T11:37:01.738328
2016-08-17T15:38:10
2016-08-17T15:38:10
65,848,847
0
0
null
null
null
null
UTF-8
Python
false
false
3,086
py
#Written by Aaron Längert import sys; import re; import json; import string; import codecs; print("Written by Aaron Längert\n"); if(len(sys.argv)) == 1: print("\nUsage: python " + sys.argv[0] + " <file> [file] [file]"); exit(); blacklist = []; try: file = open("classid-ignore.json"); try: blac...
[ "noreply@github.com" ]
SirBaaron.noreply@github.com
1c6b3570b0c358e73bb9eea4e802bdc09381cd82
41721635929286b2ef5a18de06591f9552912795
/scripts/stitcher-curation/permuteCurations.py
4d273b1b12784ee7a99af6ae1c8ef2949f8da2ba
[ "Apache-2.0" ]
permissive
ncats/stitcher
e46b64b9288f8c751d570f537c8d69f294d52527
31d67423060c1ea7e0b6ad25cb8ae83b6de25e4a
refs/heads/master
2023-09-01T11:16:05.469707
2023-08-07T14:20:29
2023-08-07T14:20:29
217,080,716
12
8
NOASSERTION
2023-08-23T14:20:05
2019-10-23T14:40:42
Java
UTF-8
Python
false
false
6,739
py
#!/usr/bin/env python import os import sys import cookielib import urllib import urllib2 import ssl import json import time import argparse site = "http://localhost:8080/" cookies = cookielib.CookieJar() ctx = ssl.create_default_context() ctx.check_hostname = False ctx.verify_mode = ssl.CERT_NONE opener = urllib2....
[ "southalln@mail.nih.gov" ]
southalln@mail.nih.gov
c3025edb9e0a4bfafad31ec4def223cfdd8a6809
3cc2f47de6d78d610a2887f92bfba150b2994888
/application/forms/account.py
b709a49955ab50546f45efab620eda042081cd50
[]
no_license
fengliu222/blogbar
c8a66df586187d0a16063e4536e76d155863fe17
ff6e7182f000777112101eed12ae9e2ca4298d25
refs/heads/master
2021-01-15T08:59:51.478354
2014-12-20T08:13:53
2014-12-20T08:13:53
null
0
0
null
null
null
null
UTF-8
Python
false
false
1,142
py
# coding: utf-8 from flask_wtf import Form from wtforms import StringField, PasswordField from wtforms.validators import DataRequired, Email from ..models import User class SigninForm(Form): """Form for signin""" email = StringField('邮箱', validators=[ DataRe...
[ "hustlzp@qq.com" ]
hustlzp@qq.com
13c88e880ccb3f89764d544534eea28042a19294
0f29dbe2a5fca038167236438548d1471dae5b50
/recognition/align/config.py
763fce8cbb8615c93a3639c208de7ea2a17c29f9
[]
no_license
causehhc/faceRecognition
f6697d3e71c1af7cbcc443262938f3a898f15a41
c8f383f04377543c699a6480407597165f4f700b
refs/heads/master
2023-05-24T08:27:18.436404
2021-06-11T03:57:04
2021-06-11T03:57:04
372,358,012
2
0
null
null
null
null
UTF-8
Python
false
false
469
py
# 最小脸大小设定 min_face = 20 # 生成hard_example的batch batches = [2048, 256, 16] # pent对图像缩小倍数 stride = 2 # 三个网络的阈值 thresh = [0.6, 0.7, 0.7] # 最后测试选择的网络 test_mode = 'ONet' # 测试图片放置位置 test_dir = '../data/dataSet/CASIA-WebFace/' # 测试输出位置 out_path = '../data/dataSet/casia_mtcnn_182/' # 一张图是否获取多张脸 detect_multiple_faces = False # 输...
[ "1005694755@qq.com" ]
1005694755@qq.com
60d0ccdfddcc2d5a1734c0556773833430a4f48e
1f9b62c9573c6268539a6a799e6ace5e58b9a6d4
/trim_gpx.py
dcf4d70670ae26d92ce0d2a0ac09890910ace26d
[ "MIT" ]
permissive
jodysankey/scripts
647ecc8e42c631c30d7603481d88bc1f2b039e1d
cec8fae0c1872bbd91b244775bee18d5db831581
refs/heads/master
2023-07-21T08:44:19.956073
2023-07-04T07:00:41
2023-07-04T07:00:41
236,669,332
0
0
null
null
null
null
UTF-8
Python
false
false
11,175
py
#!/bin/python3 """Script to analyze two Navionics GPS tracks during crew overboard manoeuvres, one from the boat, one from the 'crew'. Run with --help to see the command line options.""" #============================================================== # Copyright Jody M Sankey 2022 # # This software may be modified an...
[ "jody@jsankey.com" ]
jody@jsankey.com
3620bb985342eb123684c4a32d71bb3c4ebf82a0
1ef7dfdb5ed2bbe4dabad4c957e3fe7632e0a6d0
/hospitals/models.py
cd850a4ee059d2225fcf3921bb5b2dbc12e900da
[ "MIT" ]
permissive
mn-ahmed/geodjango-hospitals-api
4747a837f8d853c71442bf331d878a1a56104184
3a816a47af266fd93a9aa532132515999feaacdc
refs/heads/master
2023-04-03T02:31:32.591678
2021-04-11T11:20:48
2021-04-11T11:20:48
null
0
0
null
null
null
null
UTF-8
Python
false
false
613
py
from django.contrib.gis.db import models from django.utils.translation import gettext_lazy as _ class Hospital(models.Model): name = models.CharField(_("Hospital Name"), max_length=100) lon = models.FloatField(_("Longitude")) lat = models.FloatField(_("Latitude")) fid = models.IntegerField(_("Field ID...
[ "alphaogilo@gmail.com" ]
alphaogilo@gmail.com
ed5b5f0ce15b2c011afe31a4fa5d2555b2f19e89
30b74faf5c79e66699e549aed2dfb532c4e05f78
/uploader/helpers.py
992bea3842e7cf12ad647e76e708527330e1d139
[]
no_license
carlosaguilarGL/hackerrank_uploader
a0319cf4cd49458a92bcda25efae09573f42885c
6feda33f3a1f562bfd359799e9f41e2e7b48f223
refs/heads/master
2023-03-05T20:24:45.107171
2021-02-12T20:47:32
2021-02-12T20:47:32
337,779,781
0
0
null
null
null
null
UTF-8
Python
false
false
1,465
py
from .models import Question, Option import csv from django.db import transaction @transaction.atomic def create_questions(content): """ Create Questions and Options from a CSV content stream. This method is not optimized for large amount of questions since it creates the questions 1 by 1 """ q...
[ "carlos.aguilar@gorillalogic.com" ]
carlos.aguilar@gorillalogic.com
66457420921a99d9003f951d8dd379354cc20c03
4e27996c2045ac0f7e3241e5cb4194731b0726f1
/Tech Blog Scraping/website7/website7/website7/spiders/tech7.py
d7e5e60ab74118c5b15f8f2b6f3b45f6fcd1befd
[]
no_license
VaibhavDN/Websec
1264a573062a2eb63d06f90044ab49122ee02bc6
a9e30e68145af3d64dd38e50d50a2de34c61400a
refs/heads/master
2021-07-09T18:35:33.053070
2020-09-21T17:21:30
2020-09-21T17:21:30
203,001,579
3
2
null
null
null
null
UTF-8
Python
false
false
410
py
# -*- coding: utf-8 -*- import scrapy import request import response from ..items import Website7Item class Tech5Spider(scrapy.Spider): name = 'tech7' start_urls = ['https://www.nytimes.com/section/technology'] def parse(self, response): items=Website7Item() text=response.css('.e1xfvim30 , .e1x...
[ "princebest3@rediffmail.com" ]
princebest3@rediffmail.com
b9bc24ae50a0a73ab58acdb4bcb32c164927eb81
84ca82df3cbabad2aa5f007ccfff0f259f6768e5
/tileservermapping/mapping/migrations/0006_auto_20181226_1555.py
29aa1b41a04ce6f1151f8a712bfb8fe1b23ba663
[ "MIT" ]
permissive
Map-Data/tileserver-mapping
c98bf1a17ac254b45f21992a6582d19f7d0d54c2
85292f28a65b174c07193e6f54ae488c667e96dd
refs/heads/master
2022-12-12T15:13:43.870424
2020-05-29T11:21:33
2020-05-29T11:21:33
238,496,733
0
0
MIT
2021-09-22T18:35:36
2020-02-05T16:30:48
Python
UTF-8
Python
false
false
740
py
# Generated by Django 2.0.6 on 2018-12-26 15:55 from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('mapping', '0005_auto_20181226_1522'), ] operations = [ migrations.AlterField( model_name='server', name='url_postfix...
[ "dev@finn-thorben.me" ]
dev@finn-thorben.me
f01735b659f15565c53914ee8c4bc8dbab4ea233
02a40301ff95e2e41adce83c417247c8afb9c75c
/ICDM2013-Expedia-Recommendation-System-master/ICDM2013-Expedia-Recommendation-System-master/pythoncode/train2.py
6c16c6099adaf0e37211207904efdd6cdb8933fd
[]
no_license
kasrad/MThesis
33164e19cf828be80543f3a4ca702fa0ded19d2c
f25239e6fb800d7c2f344e589d3fbfc671b8f77f
refs/heads/master
2021-01-25T09:45:10.326785
2018-04-13T11:33:21
2018-04-13T11:33:21
123,317,929
0
0
null
null
null
null
UTF-8
Python
false
false
4,110
py
import sys import data_io import model import pandas as pd import random from sklearn.ensemble import RandomForestClassifier from datetime import datetime def get_features(train, isBook=True): feature_names = list(train.columns)[:27] if "comp1_rate" in feature_names: ## only true in the test set ...
[ "radim248@gmail.com" ]
radim248@gmail.com
8d3c1b8bce69b57d0d51802846a66c1e439b70e4
ca4faa1c6d4d87d1702b2c42a64ea6a063d71de9
/q2_micom/_transform.py
bc96be1fc23acd5496509e2495ad09d70dc7cd8b
[ "Apache-2.0" ]
permissive
Gibbons-Lab/q2-micom
cb0ed1185a50248eae94a415e03443dbacfa8bfb
2d954d4f584675c29aa2eccb5245e4469f1740b6
refs/heads/master
2020-12-07T08:48:10.020690
2020-01-07T23:27:39
2020-01-07T23:27:39
null
0
0
null
null
null
null
UTF-8
Python
false
false
1,558
py
"""Transformers for MICOM types.""" import pandas as pd from q2_micom.plugin_setup import plugin import q2_micom._formats_and_types as ft @plugin.register_transformer def _1(data: pd.DataFrame) -> ft.MicomMediumFile: mm = ft.MicomMediumFile() data.to_csv(str(mm), index=False) return mm @plugin.register...
[ "ch.diener@gmail.com" ]
ch.diener@gmail.com
2b1845f43f88f2094ba18076d42a03c3206e6743
e75f2c2bc9ce85c9be1e0c4f6cdc3285589476de
/vader.py
47e4ee3163e3298307140c9d067bf65f7f936e10
[]
no_license
JeongWonJo/emojiRecommendation
7ba68d13e3ae9a4c902ed3dccca486433e7da9ce
9597e26686601750acf368b75bec0e0805162e27
refs/heads/master
2020-03-27T19:17:53.453708
2018-12-08T01:50:23
2018-12-08T01:50:23
146,979,229
0
0
null
null
null
null
UTF-8
Python
false
false
23,865
py
""" If you use the VADER sentiment analysis tools, please cite: Hutto, C.J. & Gilbert, E.E. (2014). VADER: A Parsimonious Rule-based Model for Sentiment Analysis of Social Media Text. Eighth International Conference on Weblogs and Social Media (ICWSM-14). Ann Arbor, MI, June 2014. """ input=raw_input import nltk impor...
[ "noreply@github.com" ]
JeongWonJo.noreply@github.com
021676a563b8c2aaac34f7d2d9a6da9dfee4e013
c10e381828be393b9d7d8ae72a75b00949de2437
/globals/models/base.py
6bc11f36125b802d2f32d939c69d841b953b2b8b
[ "BSD-2-Clause" ]
permissive
procool/mygw
afcdb4b2ef3be6f38f8a28a4505d2e088912f5eb
f35b72b5915d314e883dcde45c3c33ff26f173df
refs/heads/master
2021-01-10T04:40:12.083642
2003-01-17T10:30:00
2003-01-17T10:30:00
48,728,017
0
0
null
null
null
null
UTF-8
Python
false
false
830
py
from sqlalchemy.ext.declarative import declarative_base from sqlalchemy import MetaData Base = declarative_base() metadata = MetaData() loaded_models = { } ## get model, e.g: "users.Users": "users/sa_model.py" with class: "Users" def get_model(model_): if model_ in loaded_models: return loaded_models[m...
[ "procool@procool.ru" ]
procool@procool.ru
0f57aed3e7ad16725c7f7040d0eba97700db9dc9
92e5fa96b12944857366ed356eae2ffa1f778ddc
/zero_blog/urls.py
38cd40f59ac1fd8d4054d709d2c7fde78958f03e
[]
no_license
vividlier/blog
a107675687b5519f8c38b2baa8af42ed93581955
f1ba9f2a9e237049036c69e7725e0b9d518f756e
refs/heads/master
2021-05-11T08:53:10.777947
2018-01-23T06:59:41
2018-01-23T06:59:41
118,065,527
0
0
null
null
null
null
UTF-8
Python
false
false
1,176
py
# -*- coding:utf-8 -*- """zero_blog URL Configuration The `urlpatterns` list routes URLs to views. For more information please see: https://docs.djangoproject.com/en/2.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,...
[ "786410317@qq.com" ]
786410317@qq.com
3f3fb632bea88ffa2e488c584544669d6e396c19
f7328c45c872b69c3b7c2a2bf563257f51e5fbff
/src/sound.py
02015b9b715fb2938284ce88bb0d22e84a8a2496
[ "MIT" ]
permissive
whoji/banjiu_2048
ffc45ff9e0b65cccea2b3cc6e91b233db9f7ae79
d99522f2f0f6d159b5ecb49d023ee06da5f0f5a5
refs/heads/master
2020-04-21T04:01:06.870805
2019-02-10T09:09:31
2019-02-10T09:09:31
169,301,201
0
0
null
2019-02-07T03:58:40
2019-02-05T19:42:21
Python
UTF-8
Python
false
false
2,088
py
import pygame from flags import F class SoundPlayer(object): """docstring for SoundPlayer""" def __init__(self, pygame): self.pygame = pygame self.__load_sound() self.is_playing = False def __load_sound(self): self.sounds = { 'move' : self.pygame.mixer.Sou...
[ "minli1985@gmail.com" ]
minli1985@gmail.com
a76b4bd5db57d7d3f6e4f183973cdbe0b2485ff0
700c7801958dd4789caf94785b5dc8c5e3daa4fd
/ttp/lightsail_enum_keypairs.py
b60a67c5e6315a9d9da0f5817af2698ca230cd17
[ "Apache-2.0", "BSD-3-Clause" ]
permissive
blackbotsecurity/AWS-Attack
24d4cd6ebda067e9672f4f963d414a7b176e3551
ad4668ab60173aabce3c6b9c7685160be5e3f14d
refs/heads/master
2023-03-14T00:05:54.965341
2021-03-05T12:44:27
2021-03-05T12:44:27
331,603,794
14
1
null
null
null
null
UTF-8
Python
false
false
1,612
py
#!/usr/bin/env python3 import datetime #'description': "This module examines Lightsail data fields and automatically enumerates them for all available regions. Available fields can be passed upon execution to only look at certain types of data. By default, all Lightsail fields will be captured.", import argparse from...
[ "github.nk@blackbot.io" ]
github.nk@blackbot.io
40b9b4e12b21edda18047af4cfccf7dc4badd5e2
11195b96533b1d2a9d24ef41b928a6f0803086b8
/env/bin/pip3
1e9d110ceb7029f455c97c28678e8c18a58c720d
[]
no_license
Zak652/blog_project
a234b8dd41ae530dbf7bf0495acc37abaa786b54
e540345aeb8ca89cbc75851d3dcd108a1cdedb20
refs/heads/master
2021-08-24T07:50:30.346942
2017-12-08T18:13:46
2017-12-08T18:13:46
112,940,025
0
0
null
null
null
null
UTF-8
Python
false
false
238
#!/home/zak/school/projects/blog/env/bin/python3.6 # -*- coding: utf-8 -*- import re import sys from pip import main if __name__ == '__main__': sys.argv[0] = re.sub(r'(-script\.pyw?|\.exe)?$', '', sys.argv[0]) sys.exit(main())
[ "m2kzak@gmail.com" ]
m2kzak@gmail.com
05f6d934deeeb2713eabf5a69493098199c22a84
74a87d4593680e997ad6d8932911060094b4846b
/project/settings.py
53bddffcad577ca63b5076f34a655448a7a76027
[]
no_license
jeremiasbittencourt/CadUs
742f86686a1c54f97efbf65dcaba75a8ab27d50a
d948a6dd3ffaec32bae3a1d9ad5755c47f4386c0
refs/heads/main
2023-04-01T01:03:08.872795
2021-04-10T11:52:30
2021-04-10T11:52:30
356,567,337
0
0
null
null
null
null
UTF-8
Python
false
false
3,363
py
""" Django settings for project project. Generated by 'django-admin startproject' using Django 3.2. For more information on this file, see https://docs.djangoproject.com/en/3.2/topics/settings/ For the full list of settings and their values, see https://docs.djangoproject.com/en/3.2/ref/settings/ """ from pathlib i...
[ "jeremiasbittencourt2013@gmail.com" ]
jeremiasbittencourt2013@gmail.com
c25b162a552a368dede859e7374213e344fb9f6c
65b5a70eea4c21fbd751666c2516aff1a9e5162c
/kithBot.py
ea28594ffbf3f16818509643d1cb855a3317207f
[]
no_license
dlsstanford/Walbot
098764e6b778c23ee7bf279293aabf450239ccb0
527f1afd854b4f02bd44ecc6b834e95426c1d115
refs/heads/master
2023-02-08T23:16:39.603592
2020-12-29T21:20:58
2020-12-29T21:20:58
296,972,196
0
0
null
null
null
null
UTF-8
Python
false
false
4,192
py
#!/usr/bin/python3 from splinter import Browser import textwrap import bs4 import requests import json class KithBot: def __init__(self, **info): self.base_url = "https://kith.com/" self.shop_ext = "collections/" self.checkout_ext = "checkout/" self.info = info def init_browser...
[ "desmon.stanford@keysight.com" ]
desmon.stanford@keysight.com
4e48c33398ffe0b53232e3744f4314679faeb2f9
f8330920cf0136849f850810511860e01de348b2
/main.py
7d427691a5dc67938fecd7b5f42504bb8b2b8763
[]
no_license
trjoma/Determination-of-dominant-colors
bc4356fa27e036b3934b7ab85cc1f5f33bb03748
f41b2c1586ad39458de6939bf797ca15f9c3db6d
refs/heads/main
2023-01-06T01:19:04.615405
2020-10-27T07:22:57
2020-10-27T07:22:57
307,617,111
0
0
null
null
null
null
UTF-8
Python
false
false
1,348
py
import numpy as np import cv2 from matplotlib import pyplot as plt K = 5 #number of colors img = cv2.imread('b2.jpg') img = cv2.cvtColor(img, cv2.COLOR_BGR2RGB) Z = img.reshape((-1, 3)) # convert to np.float32 Z = np.float32(Z) # define criteria and apply kmeans() criteria = (cv2.TERM_CRITERIA_EPS + cv2.TERM_CRITE...
[ "noreply@github.com" ]
trjoma.noreply@github.com
cd719227705450db0c8e01e80f0fa6aff6cc3063
42de721fb3eebdb0260edf24fe0c20db6169b2f2
/connetdb/dome4.py
8c46fd9f866e92a92f85f7dfec53e98907858736
[]
no_license
devile-xiang/-_python_spider
56f3a4cff2fb69493c9887b0c62434a6989052f5
b45d470ec54b79bc91e2ecfcc852c7c23f52848d
refs/heads/master
2020-07-29T20:39:45.835950
2019-09-21T09:18:38
2019-09-21T09:18:38
209,951,884
0
0
null
null
null
null
UTF-8
Python
false
false
435
py
#encoding:utf-8 import pymysql #写法要规范 conn=pymysql.connect(host='localhost',user='root',password='root', database='pymysql_dome',port=3306) cursor=conn.cursor() #删除数据 # sql="""delete from user where id=%s """ #修改数据 sql="""update user set username=%s where id=%s """ username='新名字' id=2 cursor...
[ "2904633401@.qq.com" ]
2904633401@.qq.com
e3e6513bd3ab0b4f93eae2ab6535cf0e3c2bf8ca
c4c484c3cf9b005433fa4ddbb08820b7177a005e
/test/test_grapple.py
acbc1f337f5698e09af2d4ca539316e16a5efbd4
[ "MIT" ]
permissive
kai2008/grapple
ea1a8e20df2d485feb515b3dc5ff74434e646beb
61e06ce27902e7285c9707947f8efe167fa4e6e9
refs/heads/master
2021-05-28T12:26:46.876954
2015-01-23T13:19:17
2015-01-23T13:19:17
null
0
0
null
null
null
null
UTF-8
Python
false
false
3,982
py
#!/usr/bin/env python """Grapple unit tests. Remove the leading underscore from _test_init_fullrun and _test_init_smallrun to do download tests, if your machine has a working rippled and Postgres installation. The other tests are run by connecting to Ripple Labs' public websocket. At the moment, there are no tests fo...
[ "jack@tinybike.net" ]
jack@tinybike.net
40ece971b33aaf536d5416eb3640969263889d8d
e25dd4bb657dd96b5a7c462651737b4a44ed9c81
/hw8/test-backend.py
88ca1c44ffda56bbad6adc69e450463f7d26125f
[]
no_license
Elina-L/comp431
99452326d59636b7e054f949bca23f0a5011cb75
9b46ad8d058864f267f5f2df16f1fec71a56f4bf
refs/heads/master
2020-12-25T15:17:17.505374
2016-12-15T00:51:26
2016-12-15T00:51:26
66,399,561
0
0
null
null
null
null
UTF-8
Python
false
false
4,856
py
#!/usr/bin/env python import requests, json, sys, pprint pp = pprint.PrettyPrinter(indent=4) class cc: HEADER = '\033[95m' BLUE = '\033[94m' GREEN = '\033[92m' YELLOW = '\033[93m' FAIL = '\033[91m' ENDC = '\033[0m' BOLD = '\033[1m' UNDERLINE = '\033[4m' def get(endpoint...
[ "noreply@github.com" ]
Elina-L.noreply@github.com
547fa00ac73e716c3d016cbe991ff8100413263c
c26ba5147d5104096157daf7e92f29038dc96826
/Script Files/PostProcessing/getArtistNames.py
66463fc8fabd971de89ca41dd0858c947748bc3b
[]
no_license
xiazhuol/BookReco
58e72ee0e4c99857f7e241b845693ecb1ea95245
095bb59cdf18e98f904d0ef8585334b656ef8bfc
refs/heads/master
2021-03-17T18:36:54.086153
2020-03-13T09:34:43
2020-03-13T09:34:43
247,009,474
0
0
null
null
null
null
UTF-8
Python
false
false
800
py
real_artist_names = {} artist_conversions = {} with open('artist_names_metadata.txt', 'r') as f: for line in f: artist_id = line[0:7] artist_name = line[8:] artist_name = artist_name.replace(' ', '-') artist_name=artist_name.strip() real_artist_names[artist_id] = artist_name with open('our_artists.txt', 'r...
[ "xiazhuol@msu.edu" ]
xiazhuol@msu.edu
f3764a8fc8b68e1515a012ad6d298ad0dfffbce8
7e16c7a48da4b10a860d1f159859fd6efd543a60
/RNN_1C.py
0de369ca841490f2b29d5fddd4c8c50a8c20ec82
[]
no_license
OrestisAlpos/WebTrafficClassifier
e6c26b5988d88deba5e359759fabf8031515eb0d
bf1a4e65e295389cbd535e53c8a6db50b4ca85d5
refs/heads/master
2021-01-19T14:53:30.392890
2017-06-07T19:10:08
2017-06-07T19:10:08
88,193,170
0
0
null
null
null
null
UTF-8
Python
false
false
892
py
from keras.models import Sequential from keras.layers import Dense, Activation, SimpleRNN from keras.utils.vis_utils import plot_model import os import numpy as np from reader import Reader length = Reader.getInputShape() model = Sequential() #EXPECTS INPUT AS (nb_sample, timesteps, nb_features), where nb_sample=1...
[ "or.al@hotmail.com" ]
or.al@hotmail.com
1a7bacfc9808852cf7b990a159af019328d3deb0
9c0f691393abbeb5754e1624e0c48dfcdf857352
/2017/Helpers/day_06.py
b8fc0de773effcccfda5ee364b548908e7b0101b
[]
no_license
seligman/aoc
d0aac62eda3e6adc3c96229ca859bd2274398187
9de27ff2e13100770a3afa4595b15565d45bb6bc
refs/heads/master
2023-04-02T16:45:19.032567
2023-03-22T15:05:33
2023-03-22T15:05:33
230,493,583
17
10
null
null
null
null
UTF-8
Python
false
false
1,540
py
#!/usr/bin/env python3 DAY_NUM = 6 DAY_DESC = 'Day 6: Memory Reallocation' def calc(log, values, redo): banks = [int(x) for x in values[0].replace("\t", " ").split(" ")] seen = set() while True: key = tuple(banks) if key in seen: if redo == 0: break ...
[ "scott.seligman@gmail.com" ]
scott.seligman@gmail.com
b26893e0db5a57db2eed7de038eedc67337aecbf
b6f583d181011005a387b100931eaad8d0a00964
/even odd sum of 3 digit num.py
316bef4025a1fcf5c1d90a98daf2310a56023af3
[]
no_license
abhaysingh00/PYTHON
fe6fa42c7057231bdba258d49846cca51ff2a350
2ef662b66641121ba3b8187d571a90e964e2ec77
refs/heads/main
2023-08-15T13:19:52.685749
2021-09-10T18:29:08
2021-09-10T18:29:08
404,481,174
0
0
null
null
null
null
UTF-8
Python
false
false
307
py
n= int(input("enter a three digit number: ")) i=n sm=0 count=0 while(i>0): count=count+1 sm=i%10+sm i=i//10 if(count==3): print(sm) if(sm%2==0): print("the sum is even") else: print("the sum is odd") else: print("the number entered is not of 3 digits")
[ "abhay.2024cse1147@kiet.edu" ]
abhay.2024cse1147@kiet.edu
a8a9884b2c45f1d68f56cbb5f3372047f190ed2e
a4c5540f4ff38d5445ab20ed80a57e224d12518f
/homeWork/password.py
dae1ac2526cd5b8cc3788caaa0624d929ec87644
[]
no_license
qikai521/PyStu
b8f12457c10008825b82e921ebb307d1ef032f9d
527983744bdb8da634ef3dc9e67012273cb1514e
refs/heads/master
2021-01-25T09:31:58.542923
2017-06-21T10:26:04
2017-06-21T10:26:18
93,846,416
0
0
null
null
null
null
UTF-8
Python
false
false
951
py
length = 0; while True: if (length%2 == 1 and length %3 == 2 and length%5 == 4 and length%6 ==5 and length%7 == 0): print("length == ",length) break; else: print("other") length += 1 #password : nums = '1234567890' chars = 'qwertyuiopasdfghjklzxcvbnm' #低级密码要求: #   1. 密码由单纯的数字或...
[ "664642260@qq.com" ]
664642260@qq.com