blob_id
stringlengths
40
40
directory_id
stringlengths
40
40
path
stringlengths
2
616
content_id
stringlengths
40
40
detected_licenses
listlengths
0
69
license_type
stringclasses
2 values
repo_name
stringlengths
5
118
snapshot_id
stringlengths
40
40
revision_id
stringlengths
40
40
branch_name
stringlengths
4
63
visit_date
timestamp[us]
revision_date
timestamp[us]
committer_date
timestamp[us]
github_id
int64
2.91k
686M
⌀
star_events_count
int64
0
209k
fork_events_count
int64
0
110k
gha_license_id
stringclasses
23 values
gha_event_created_at
timestamp[us]
gha_created_at
timestamp[us]
gha_language
stringclasses
213 values
src_encoding
stringclasses
30 values
language
stringclasses
1 value
is_vendor
bool
2 classes
is_generated
bool
2 classes
length_bytes
int64
2
10.3M
extension
stringclasses
246 values
content
stringlengths
2
10.3M
authors
listlengths
1
1
author_id
stringlengths
0
212
11f1d76b4e086305e4e4a2a36419be02ba47ce95
222b221878eeec7f5c1e61e4b5cdb9f83aff7ffa
/modules/app/schemas/address.py
f1c48fc55c686e233dcb7fc5e7867b68ede73234
[]
no_license
sumaikun/flaskApi
d85ed25297245610333d689074bfc05af451155c
97446277a63dba6d33388558af4111239f675106
refs/heads/master
2022-10-12T01:33:30.328853
2020-06-09T16:56:44
2020-06-09T16:56:44
271,062,011
0
0
null
null
null
null
UTF-8
Python
false
false
1,166
py
from jsonschema import validate from jsonschema.exceptions import ValidationError from jsonschema.exceptions import SchemaError address_schema = { "type": "object", "properties": { "city": { "type": "string", }, "country":{ "type": "string" }, "pr...
[ "ventas.javc@gmail.com" ]
ventas.javc@gmail.com
b04305f109a7f6222d39d666b9d65f277cae3196
ce972e94fcdf19d6809d94c2a73595233d1f741d
/catkin_ws/build/tf/cmake/tf-genmsg-context.py
552ade3ed0568d977725f0742c6cd2ff5e746bcd
[]
no_license
WilliamZipanHe/reward_shaping_ttr
cfa0e26579f31837c61af3e09621b4dad7eaaba2
df56cc0153147bb067bc3a0eee0e1e4e1044407f
refs/heads/master
2022-02-23T05:02:00.120626
2019-08-07T21:52:50
2019-08-07T21:52:50
null
0
0
null
null
null
null
UTF-8
Python
false
false
830
py
# generated from genmsg/cmake/pkg-genmsg.context.in messages_str = "/local-scratch/xlv/catkin_ws/src/geometry/tf/msg/tfMessage.msg" services_str = "/local-scratch/xlv/catkin_ws/src/geometry/tf/srv/FrameGraph.srv" pkg_name = "tf" dependencies_str = "geometry_msgs;sensor_msgs;std_msgs" langs = "gencpp;geneus;genlisp;gen...
[ "xlv@cs-mars-01.cmpt.sfu.ca" ]
xlv@cs-mars-01.cmpt.sfu.ca
93386444824de36660862624f86cf8f1086943d5
3f6bc5034691e52ff5fe4d8c6666539c87ae1594
/pbar.py
ac5e4c2356ef8af60fff1e9b32daa96a0520becd
[]
no_license
andresthor/pbar
34696e6e05ebc6b8433e1c35240f5e8e087e97d8
403946d15ad9a7c9aab660c0fe514078288ec2d8
refs/heads/master
2021-01-21T21:05:48.934162
2017-06-20T10:57:44
2017-06-20T10:57:44
94,774,828
0
0
null
null
null
null
UTF-8
Python
false
false
6,650
py
#!/usr/bin/env python # ============================================================================== # Title: Progress bar # File: pbar.py # Author: Andres Saemundsson, andresthor@gmail.com # # Description: Create a simple progress bar that displays on the terminal. The # appearance of the progress bar ...
[ "andressa@axis.com" ]
andressa@axis.com
c1f2cdad0c15be0461cfad4fc0ce8cad5a672d6f
eca90951b53822740812e40572e209728f71c261
/models.py
a109ee157f955568d9590b918a0010e3fee55a02
[]
no_license
tungvx/reporting
b7117879be773fccd90dbdb36a9e1220edc1d202
98f54c821aad761c0ab0ab83a8faad232ece1b41
refs/heads/master
2021-01-16T18:20:46.613907
2012-03-25T13:42:06
2012-03-25T13:42:06
3,491,504
0
0
null
null
null
null
UTF-8
Python
false
false
1,661
py
# -*- coding: utf-8 -*- import datetime from django.db import models from django import forms class Upload(models.Model): #Upload files table in databases filename = models.CharField(max_length=255) upload_time = models.DateTimeField('time uploaded') description = models.Cha...
[ "toilatung90@gmail.com" ]
toilatung90@gmail.com
ede19815e880082d79936d9cd70e6f8e3e80d2d2
0ceb9ffeb2c087b8ae75c1a1179387fe36379f17
/test_users.py
31f33f5ba427527d4314a2b07fc4c576bc50f3d0
[]
no_license
chetat/eveno
47a3a99ebe4c5ea10252e1a21c45129e61b3e2ba
dbc138cde6e48039614cea52d3dc7bcad869a1dd
refs/heads/master
2022-12-09T13:51:46.923622
2021-03-09T10:21:25
2021-03-09T10:21:25
224,212,711
0
0
null
2022-09-16T18:20:10
2019-11-26T14:34:12
Python
UTF-8
Python
false
false
1,623
py
import os import json from app import create_app, sqlalchemy as db from sqlalchemy import create_engine, text from flask_sqlalchemy import SQLAlchemy from app.config import TestingConfig from models import initialize_db import unittest class UsersTestCase(unittest.TestCase): """This class represents the Event App...
[ "yekuwilfred@gmail.com" ]
yekuwilfred@gmail.com
219de91e7efebdee151be72ea0490b3c3dbe3679
cba33579055ba0e961d7d5aa971066940ae4aaa3
/brdashsite/batchrecords/utils.py
607fa6851a870108d9dd38b1cfc92c5e89d37b63
[ "MIT" ]
permissive
JNDib/brdashproject
b8106c8cedb05af6b974b8f3a7b45026344d9c9e
f9a7cb543024bfb6bb3556b9affdcddb46add2e1
refs/heads/master
2020-05-07T11:38:24.573877
2019-04-10T00:25:21
2019-04-10T00:25:21
180,468,277
0
0
null
null
null
null
UTF-8
Python
false
false
594
py
import io from xhtml2pdf import pisa from django.template.loader import get_template from django.template import Context from django.http import HttpResponse from cgi import escape def render_to_pdf(template_src, context_dict): template = get_template(template_src) context = Context(context_dict) html = template....
[ "jdiblin@gmail.com" ]
jdiblin@gmail.com
14fae3132d30eb687a966988fcbb3f2a788e9de5
247ed85b891edd371f5fc957417bc6003cff69ff
/meshscraper/scraper.py
c81c1469307d1bc38ee859b377aadf2289c279bf
[]
no_license
achenxu/mesh-scraper
613d22651dce33b5cc6ce11afba422346013c259
d439da8af0185de7209e16474fadf70cffaadc01
refs/heads/master
2020-03-18T08:42:51.729197
2018-05-20T06:58:36
2018-05-20T06:58:36
134,524,155
5
2
null
2018-05-23T06:32:13
2018-05-23T06:32:13
null
UTF-8
Python
false
false
3,238
py
from queue import Queue import threading import time from meshscraper.util import convert_to_pid, create_logger from meshscraper.scrapehandler import ScrapeHandler from meshscraper.poster import Poster from meshscraper.saver import Saver class Scraper(threading.Thread): """Create and control collection checker(sc...
[ "idontcop@gmail.com" ]
idontcop@gmail.com
85c78d4660cc78ae84d9016627643af0ae840fbc
da348f525a4256c95bee7c71358fd3441e5189ca
/章15/15.1-15.3/random_walk_2.py
f649d1be530e17017816a7385c98838b9eda2c17
[]
no_license
bwz3891923/LearningLog
5c7aa4a0f08fc5523f8642af41e4cf56ad3f83ec
742cff9dfac50aa5266a4996ea65e980f8c66282
refs/heads/master
2020-04-23T13:39:26.123005
2019-02-20T07:32:02
2019-02-20T07:32:02
171,204,390
0
0
null
null
null
null
UTF-8
Python
false
false
809
py
from random import choice class RandomWalk(): def __init__(self,num_points=5000): self.num_points=num_points self.x_values=[0] self.y_values=[0] def fill_walk(self): while len(self.x_values)<self.num_points: x_step=self.get_step() y_step...
[ "noreply@github.com" ]
bwz3891923.noreply@github.com
0cc046943de4f6e8e84509edc6055886e1602b1e
024a515e8741ecc88b4cc20c067a5ef7785375f2
/preproc_dataset.py
0241efc2f5bb8f421152bf5b2a64df8c226e9aa6
[ "MIT" ]
permissive
PCJohn/maml
e3752a842557210e955f68479e0a056766647d54
17362ed5f9d85863ead5774c3e08e163c260bd16
refs/heads/master
2020-03-28T11:37:42.014350
2018-10-01T17:08:12
2018-10-01T17:08:12
148,232,484
0
0
null
2018-09-10T23:35:04
2018-09-10T23:35:03
null
UTF-8
Python
false
false
1,756
py
import os import numpy as np from PIL import Image dataset = 'miniimagenet' train_count = 10 # train samples per class val_count = 590 # val samples per class mnist_dir = '/home/prithvi/dsets/MNIST/trainingSet/' omniglot_dir = '/home/prithvi/dsets/Omniglot/train' miniimagenet_dir = '/home/prithvi/dsets/miniimagenet/t...
[ "prithvichakra@gmail.com" ]
prithvichakra@gmail.com
ac19e584ba3f246006ecee4a4204482d58b8c9f4
1d4061bc020d36af1cfea41ee28ffb03831ad62f
/monster_encounter_randomizer/files/lib/random_encounter_for_gui.py
de2b58c327ae4f1afc2b836020e43fde0621a6e6
[]
no_license
Pentrimex333/DND_Tools_and_Libraries_1
b6cb49a2c568af2113e3f7c31cf0ea38ba40eceb
0845429a56218ad6cc8fc5f296a8880a2421f548
refs/heads/master
2022-07-15T15:24:55.371862
2022-07-07T22:29:09
2022-07-07T22:29:09
238,807,859
0
0
null
null
null
null
UTF-8
Python
false
false
4,901
py
# Function that produces a group of monsters that a party can fight import json from random import choice, randint from lib import monster_search as monsters from lib import mon_xp_modifier as xp_mod def encounter(party_size, xp_threshold, mon_type, min_xp=0, max_xp=160000, location=''): #'''T...
[ "noreply@github.com" ]
Pentrimex333.noreply@github.com
26ea85dc9baf97526ab0814ac0e6364be3581783
e34cf899de4ba2a99c40049500bd4f435422f129
/lib/sqlalchemymonitor/__init__.py
be5bd0da4869862c1257e155324636bc564eaf68
[ "MIT" ]
permissive
limeiralucas/sqlalchemymonitor
8589c36317417e25d77ca89c01a7f587269c7aee
830cbd1cfb4dcbefa04b531066ad3293ca79ba79
refs/heads/master
2022-01-04T14:33:55.768292
2020-01-29T14:03:55
2020-01-29T14:03:55
null
0
0
null
null
null
null
UTF-8
Python
false
false
500
py
from .handler import SqlAchemyLogHandler import logging __version__ = '0.1' def init_sql_alchemy_monitor(default_action, on_select=None, on_insert=None, on_update=None, on_not_recognized=None, logger_name='sqlalchemy.engine.base.Engine'): handler = SqlAchemyLogHandler(default_action, on_select, on_insert, on_upd...
[ "lucasalveslm@gmail.com" ]
lucasalveslm@gmail.com
a85268becbc22108817aae858c058934d5ffef70
1d1a6eb5627c907cae3d2adb325eeb1e87161558
/sentinel-api.py
45ca002f0ef6bf475f4815b6e484b94e25ba0ece
[]
no_license
sirparis/Sentinel-API
37e3c3aa2e7104656c3ab72cab8ca6fcc7fb4ffc
4790e48c2c674081674a44e1ab1289d018445821
refs/heads/master
2020-03-17T13:59:51.141328
2016-06-28T09:54:06
2016-06-28T09:54:06
null
0
0
null
null
null
null
UTF-8
Python
false
false
24,874
py
#! /usr/bin/env python # -*- coding: iso-8859-1 -*- import os,sys import os import optparse from xml.dom import minidom import time ########################################################################### class OptionParser (optparse.OptionParser): def check_required (self, opt): option = self.get_opti...
[ "noreply@github.com" ]
sirparis.noreply@github.com
755cace209dee6ddbfb2f3b305e5c59a6d1438b7
204550bca20d023e46abfdd1504d7905722e1496
/Red_White_Blue.py
32c1755d88d4f27a60d53cd055c1f38d4e5b351d
[]
no_license
BenjaRogers/finance
432a506d28ca7ff083c53f0158971dcb9f11e224
309a48c39ec967353217bc91d56adbae91ad56c3
refs/heads/main
2023-02-05T23:33:57.381802
2020-12-28T21:25:50
2020-12-28T21:25:50
null
0
0
null
null
null
null
UTF-8
Python
false
false
1,510
py
import datetime as dt from pandas_datareader import data as pdr import yfinance as yf import pandas as pd symbol_list = pd.read_csv('bats_symbols.csv') yf.pdr_override() EMA_USED = [3,5,8,10,12,15,30,40,45,50,60] now = dt.datetime.now() start = dt.datetime(now.year-1, now.month, now.day) def get_rwb_li...
[ "noreply@github.com" ]
BenjaRogers.noreply@github.com
58e05b15043f77a989ebc6a6c0a5e86af3ff2053
e4ea9d3a1acf2395acd57848fbbef9e7a68624ca
/features/I-cities/__init__.py
3712f2f1e5b3edacaa8cc0915f7e93964b77fe78
[]
no_license
khoshsoroor/Product-Test
6f49694ddf0298d4a0033633b25c6e4e71ca9c0b
b3e9b2b0eb223dade9378db43d30c8eb35ff1991
refs/heads/master
2020-09-28T15:40:39.344422
2019-12-09T07:13:04
2019-12-09T07:13:04
226,807,793
0
0
null
null
null
null
UTF-8
Python
false
false
4,891
py
from aloe import * from aloe import tools import requests from .. import config, logger from .. import call # region city list is empty @step(r'Get the list of all city and specify city (\S+)') def get_not_found_city_list(_, city_slug): call.delete_cities() res = requests.get(f"{config.base_api_uri}/cities") ...
[ "noreply@github.com" ]
khoshsoroor.noreply@github.com
ba265bb9d96f3ceeec3b311c1c36ce36f9c18206
f50114692187a054bf2627695c6380d5ac79a20c
/q0028.py
26642f410f3a67d77ed2d7e0af65fad57a49ecc3
[]
no_license
petitepirate/interviewQuestions
c0cb8775932f90ff5c8e4ef80be468ef4155052f
209322c1f1ddbe8111dc2c5e9c35aaf787e0196a
refs/heads/master
2023-07-17T12:15:22.847440
2021-06-14T02:32:39
2021-06-14T02:32:39
286,884,022
1
0
null
null
null
null
UTF-8
Python
false
false
4,685
py
# This problem was asked by Palantir. # Write an algorithm to justify text. Given a sequence of words and an integer line length # k, return a list of strings which represents each line, fully justified. # More specifically, you should have as many words as possible in each line. There should # be at least one ...
[ "msmeganmcmanus@gmail.com" ]
msmeganmcmanus@gmail.com
155e8c87cb6505d3c4c342a6f963eff4ceba8679
446d5ab35d8d57fa1589530d1f702c4b3c46ba0d
/TrainDetails/TrainInfo/migrations/0001_initial.py
1ccaf29a56f42a1aaade87133b680e86aa449469
[]
no_license
krishanchetiwal/Train-Information-Project
3ba5b44984db94b9d0a0ea019c2a823dce51b137
5be9b9b760ec669cbb727a9faf3b4c072e06c0c8
refs/heads/master
2020-04-14T17:27:51.198146
2019-01-03T14:26:15
2019-01-03T14:26:15
163,981,581
0
0
null
null
null
null
UTF-8
Python
false
false
2,381
py
# Generated by Django 2.1.3 on 2018-12-21 15:33 from django.db import migrations, models class Migration(migrations.Migration): initial = True dependencies = [ ] operations = [ migrations.CreateModel( name='Sysdiagrams', fields=[ ('na...
[ "noreply@github.com" ]
krishanchetiwal.noreply@github.com
e1f8fcafc1beeeabe6530ac0563b90b23859e6f4
d958beddc22644249156844e5cc476721d30b8a4
/src/day17.py
dc88ee2772fa747e8e954f3b1c99a5f539debcab
[]
no_license
seeba8/advent_of_code_2018
68cc9441ee7ea572c9d886e6acfefba06d339635
c1f5990abce7b41e4a10cd94618928ce403b664f
refs/heads/master
2020-04-12T21:15:00.346726
2019-03-23T23:42:04
2019-03-23T23:42:04
162,758,581
0
0
null
null
null
null
UTF-8
Python
false
false
4,964
py
import re class STATES: SAND = 0 CLAY = 1 STILL_WATER = 2 FLOWING_WATER = 3 SPRING = 4 OUT_OF_BOUNDS = -1 class Arctic: def __init__(self, w, h, spring_x, spring_y): self.ground = [STATES.SAND] * w * h self.w = w self.h = h self.moving = set() self...
[ "ober.sebastian@googlemail.com" ]
ober.sebastian@googlemail.com
c8ddccca52adc5db2481375fed03e00824280b87
b6da4b5578a545b4ed72913e04770238cf595fb3
/hackathon/parser.py
f91259d92a7764b0c03dfa16d8d4649a4857dd1d
[]
no_license
basnetbik/SocietyRecommenderSystem
d3837520f34cf6f0e0d48dbd635b03a59d5ab164
6e9bd14d5f6eef095952d3f862d6ca4d86354ea4
refs/heads/master
2021-01-10T19:38:57.434689
2014-08-01T05:10:21
2014-08-01T05:10:21
22,495,810
2
3
null
null
null
null
UTF-8
Python
false
false
751
py
""" Parse the world bank data country-wise """ import csv def dump_csv(data): with open('Countries/%s.csv'%(data[0]['Country Name']),'wb') as outfile: csvwriter = csv.DictWriter(outfile, data[0].keys()) outfile.write(','.join(data[0].keys())+'\n') for i in data: csvwriter.write...
[ "basnet.bik@gmail.com" ]
basnet.bik@gmail.com
b933996beccf98942c4493de2f34fce12b01d4db
4ca9e34daf2b700246888050c4cc2d2170ad8a52
/app/events/serializers.py
586d82b8594f16298fa2db4db003770e7fa457eb
[]
no_license
combios/covid19-backend
c9619e831b819ddf581b06429911dc2826989691
819acc94c67e199c2324dcef9fd4d8698d2efdf1
refs/heads/master
2023-08-06T06:47:14.417942
2020-04-01T18:59:45
2020-04-01T18:59:45
250,376,209
1
3
null
2021-09-22T18:56:06
2020-03-26T21:32:02
Python
UTF-8
Python
false
false
486
py
from rest_framework import serializers from .models import * class QuestionnaireResponseItemSerializer(serializers.ModelSerializer): class Meta: model = QuestionnaireResponseItem fields = ['code','value',] class QuestionnaireResponseSerializer(serializers.ModelSerializer): answers = Questionn...
[ "1499698+wjforero@users.noreply.github.com" ]
1499698+wjforero@users.noreply.github.com
b6cf52d52680484324e288071e2fd55acfdf94f2
a02275767a7e4abeef8bb79bf1466599b03e98cf
/Code/SRCNN/model_sam.py
39896b443171c843e126139196f6201020a7f85e
[]
no_license
XinyiYing/SAM
f145bae019ea617739fe62d3576b2f5fbbd87166
78e68686cf37484303cf4e9ce96f758a5395e9b5
refs/heads/master
2022-12-24T12:27:37.164041
2022-12-12T13:46:12
2022-12-12T13:46:12
239,094,857
52
12
null
2020-04-14T04:40:30
2020-02-08T08:40:21
Python
UTF-8
Python
false
false
4,450
py
from torch import nn import torch class Net_SAM(nn.Module): def __init__(self, num_channels=1): super(Net_SAM, self).__init__() self.conv1 = nn.Conv2d(num_channels, 64, kernel_size=9, padding=9 // 2) self.conv2 = nn.Conv2d(64, 32, kernel_size=5, padding=5 // 2) self.conv3 = ...
[ "noreply@github.com" ]
XinyiYing.noreply@github.com
150cd355067ec7d2b31ccd7602084de2e5d33e9a
005bbef9de33552823f738d5b5033b1914295ec7
/mysite/settings.py
f3440d2138b2dde6dbf2a08e083d3bcb8ec95d96
[]
no_license
subjoooo/my-first-blog
12388fca1ffd710c758486bff4bda71bd23be18f
4a0605c56cf577b7164bdcdb8e0fec3987075d48
refs/heads/master
2020-06-29T21:34:11.079905
2019-08-05T11:00:30
2019-08-05T11:00:30
200,630,555
0
0
null
null
null
null
UTF-8
Python
false
false
3,188
py
""" Django settings for mysite project. Generated by 'django-admin startproject' using Django 2.0.13. For more information on this file, see https://docs.djangoproject.com/en/2.0/topics/settings/ For the full list of settings and their values, see https://docs.djangoproject.com/en/2.0/ref/settings/ """ import os #...
[ "seongwhan106@naver.com" ]
seongwhan106@naver.com
03d8d151bc1223cad792f68132b3f16cdc1fc9f3
7f4393da71b78b26ec8aa9d3eae63d675f118620
/posts/views.py
910e1606d75d800588a34c436067bd53357c7692
[]
no_license
Moriango/blog-clone
0bcb87b2c85ee97c4a55d4cb1d783a2ea9509ea6
2c766bc10c63ebd1b0767bc46d57a487683b63f4
refs/heads/master
2022-04-21T00:38:21.698726
2020-04-23T22:02:11
2020-04-23T22:02:11
258,340,697
0
0
null
null
null
null
UTF-8
Python
false
false
2,589
py
from django.shortcuts import render, redirect from django.contrib.auth.mixins import LoginRequiredMixin from django.urls import reverse_lazy from django.contrib import messages from django.views import generic from django.http import Http404 from braces.views import SelectRelatedMixin from . import models from . imp...
[ "toddnealstallworth@gmail.com" ]
toddnealstallworth@gmail.com
01aa4accd9d56ede58cc7d689aec16d99e03379c
cd469e5295fabba07efad622533c5ff900db6f53
/reload.py
ed90c804a17305364cf459c8b280c0131e013f44
[ "MIT" ]
permissive
aspyct/shout
f8f8d74e8e1ee4b329c608e1ef863fba75479250
38853fddfb051412e1847a0e479b9b82510f88e2
refs/heads/master
2021-01-02T08:45:18.166142
2014-07-07T17:54:18
2014-07-07T17:59:04
null
0
0
null
null
null
null
UTF-8
Python
false
false
658
py
import os import os.path import sys import time import subprocess args = sys.argv[:] this_script = args.pop(0) target_script = args.pop(0) if not os.path.isfile(target_script): print("Not a file: " + target_script) sys.exit(0) def run(): command = [sys.executable, target_script] command.extend(args) ...
[ "antoine@Antoines-MacBook-Pro.local" ]
antoine@Antoines-MacBook-Pro.local
abd1cf269880279ea91f1ef5fd333d7a9efbd17d
8f9daf08250f09269aeb8d57fcbb6f335e2d985a
/Algorithms&DataStructures/reverse_array_in-place.py
eb3f0bc935b2a40f280fdb8b85c26243b7484cf5
[]
no_license
Extomvi/GDGUnilag
0927a213e43fc4c463e6866e5ca4dbf137311b91
e8ac9c61af43bb99542c5bd6dcfe35fa64fee957
refs/heads/master
2023-06-22T06:32:53.793377
2023-06-14T08:15:39
2023-06-14T08:15:39
100,798,237
2
0
null
2023-04-04T16:43:17
2017-08-19T14:05:15
Jupyter Notebook
UTF-8
Python
false
false
310
py
"""Reversing an array in-place""" def reverse_array(nums): start = 0 end = len(nums) - 1 while start<end: nums[start], nums[end] = nums[end], nums[start] start += 1 end -= 1 return nums if __name__ == "__main__": nums = [1,2,3,4,5] print(reverse_array(nums))
[ "exceltadedokun@gmail.com" ]
exceltadedokun@gmail.com
a6687c9ad18d1bab96a4cd5b3a1d2c60f4ba81dc
1267940f420c4378ad0a8ecf9f6fd23b4526b9a0
/tests/q3_2_3.py
2409e6ae1c24d85acaaca92e0cbb75b3e299563d
[]
no_license
citlallivillarreal/movie-classifier
27a168740b569c18c8a6efc840f08f01f143578c
cff62584cf71b47c9fd3a7062eb1a726a170c2e2
refs/heads/master
2023-06-06T07:58:08.193339
2021-06-16T02:23:56
2021-06-16T02:23:56
377,346,780
0
0
null
null
null
null
UTF-8
Python
false
false
888
py
test = { 'name': 'Question 3.2.3', 'points': 3, 'suites': [ { 'cases': [ { 'code': r""" >>> check(0) True >>> check(1) True >>> check(2) True >>> check(3) True >>> check(4) True ...
[ "citlallicgutierrez@outlook.com" ]
citlallicgutierrez@outlook.com
976fe04075eb0ae35fbceb4cf4f95288fd19f182
9a0ada115978e9600ad7f1eab65fcc8825f637cf
/work_in_progress/kezhi_paper/classification/intermedia_classification_WT_new.py
23736c730b2fe6d41790fd9dfaa294059b6a9fd6
[]
no_license
ver228/work-in-progress
c1971f8d72b9685f688a10e4c5a1b150fa0812da
ef5baecc324da4550f81edb0513d38f039ee3429
refs/heads/master
2018-12-16T22:18:55.457290
2018-09-14T09:27:49
2018-09-14T09:27:49
56,165,301
0
0
null
null
null
null
UTF-8
Python
false
false
1,223
py
# -*- coding: utf-8 -*- """ Created on Tue Jun 06 16:16:01 2017 @author: kezhili """ import numpy as np import tables from sklearn.ensemble import RandomForestClassifier from sklearn.model_selection import cross_val_score no_neuron = 1040 # step size in the mesh no_fea = 30 fea_no = 30 names = ["Near...
[ "ver228@gmail.com" ]
ver228@gmail.com
a9359767d8ff682c41a5a4a8e2ea83cd12d1942f
e07bac74a16f99a3efdeac388eb6fb45617bb952
/test1./maximum.py
6312fa8cf8ed99819a7f1fa5f57f357f4c729904
[]
no_license
SIVAPRASATH101/GUVI-CODING
b27cebe488349b6677d87a5dd6897a7745546919
2df069c819130d51f525fd7fa8676642c979a4db
refs/heads/master
2020-05-28T02:28:28.985167
2019-06-08T07:23:49
2019-06-08T07:23:49
188,854,291
0
1
null
null
null
null
UTF-8
Python
false
false
54
py
l=[int(x) for x in input().split()] a=max(l) print(a)
[ "noreply@github.com" ]
SIVAPRASATH101.noreply@github.com
ac83f37408f9ce4faeb63627ab445bf3739bee2e
99aec7b0cfe6ef23ad515d52a0972e3b1f97b5b3
/asgn3/src/parser_yacc.py
ecfe4434ac98b0b3c5c92de2cd422df2ae1263fc
[]
no_license
shubhag/compiler
f021525c7c999167bd4831ea17965d45ac89b7c4
c8f43f54ec610586575c8457a9258d9389f9ce49
refs/heads/master
2021-01-18T14:20:43.386841
2015-04-14T15:17:18
2015-04-14T15:17:18
29,200,534
3
1
null
null
null
null
UTF-8
Python
false
false
38,395
py
import ply.yacc as yacc, sys import symbol as symbolTbl import tac as tac # Get the token map from the lexer. This is required. from lexer_yacc import tokens ST = symbolTbl.symbTbl() TAC = tac.threeAddressCode(ST) def p_compilationunit(p): '''CompilationUnit : ProgramFile ''' # ST.printSymbTbl() TAC.printTAC() ...
[ "shubhamagrawal094@gmail.com" ]
shubhamagrawal094@gmail.com
b4a2c09e170cf0fe85da7a4f9de778ac91b5b3cf
898349df123c9a7c18f00d205ef1ca9169edbb7c
/map_composition_to_crossover_depths.py
f0dbfd945f98eec7f82b94b8d8e94faf146e1a1f
[]
no_license
ScottHull/analyze_exoplanet_pocketknife_results
13b5fb7d60c63bb43b4b634c65352d4849d10063
979a6d3a29bfb8d56d8e09f2de02c09f5ce70506
refs/heads/master
2023-05-17T04:19:08.305820
2021-06-05T03:25:31
2021-06-05T03:25:31
274,940,888
0
0
null
null
null
null
UTF-8
Python
false
false
6,757
py
import pandas as pd import numpy as np import matplotlib.pyplot as plt from src.atomic import Convert # BSP temperature, MORB F temperature, MORB temperature runs = [ (1600, 1600, 1600), (1600, 1600, 1400), (1600, 1600, 1200), (1600, 1400, 1400), (1600, 1400, 1200), (1400, 1400, 1400), (140...
[ "scottdhull21@gmail.com" ]
scottdhull21@gmail.com
504b3aed95121b7d1c9739af685bf627afa773aa
a18cb87400d3e7929daaa2440d729aa81e01d31d
/recikeep/lib/__init__.py
5d30369fd761fbe943113f6a82eba3f06ea4172e
[]
no_license
juliomistral/recikeep
ecbfd222b5efedce00632c1c82e322239994d0f9
79ea280be97c05f8ef896f36b39c520b435a45e1
refs/heads/master
2016-09-06T00:36:51.490052
2013-02-01T18:01:57
2013-02-01T18:01:57
null
0
0
null
null
null
null
UTF-8
Python
false
false
180
py
from unittest import TestCase class BaseException(Exception): def __init__(self, value=None): self.value = value def __str__(self): return repr(self.value)
[ "jmistral@grio.com" ]
jmistral@grio.com
66c3328ec755153a4cb76049b29251cb03925f04
549f1a013ef290c8a0dd1bd9c68488bb51bd95b8
/Introduction to Using MongoDB for Data Science in Py/02. Working with Distinct Values and Sets.py
e5a51103f22633f406c0bc270f7e8c60ec6300da
[]
no_license
arslanugur/db
1522243a8101bbb7b94c24665d9302a36b9cb5ce
a8286b10f29d9c990626aa22aaa379ac2c832997
refs/heads/master
2023-08-11T02:22:33.175122
2021-09-21T14:52:20
2021-09-21T14:52:20
361,018,458
1
0
null
null
null
null
UTF-8
Python
false
false
26,999
py
2. Working with Distinct Values and Sets """Now you have a sense of the data's structure. This chapter is about dipping your toes into the pools of values for various fields. You'll collect distinct values, test for membership in sets, and match values to patterns.""" 2.1. Survey Distinct Values 1. The distinct() ...
[ "noreply@github.com" ]
arslanugur.noreply@github.com
560fdb3d52af6376d45501eee8ac244cb1ef5a7f
e52a2f9b4db1348afe8f32c76f7e327ad3d25ce3
/RUMS/Python_files/Deep_Neural_Network.py
34409e78a6aa77454343d08001ba3fc55d32a594
[]
no_license
takaya0/Institutional-paper2019
b614a15839ac13bbf3ced889c6a7a51ff847f531
485e516c6d881c8b38b19317c30e28ac4152d021
refs/heads/master
2021-07-24T06:23:45.985669
2020-06-20T14:55:51
2020-06-20T14:55:51
188,521,059
1
0
null
null
null
null
UTF-8
Python
false
false
603
py
import numpy as np from matplotlib import pyplot as plt class activation(): def Sigmoid(self, x): return 1/(1 + np.exp(-x)) def ReLU(self, x): return np.max(x, 0) def leaky_ReLU(self, a, x): return np.max(a * x, 0) def identity(self, x): return x class Neural_Netwo...
[ "yataka@yatakanoMacBook-Pro.local" ]
yataka@yatakanoMacBook-Pro.local
7f808fe64232d40adb579077f74dc031e6c4267e
2c4cd47c12f1bf3880c97a42a8444556a2b4aca8
/excel.py
00f89c3abff7e2694b198c877bdc4917f52cc854
[]
no_license
urkup/Pulling-information-from-json-to-excel
8db0c5432a869054f3c076dd0d1ae3b75206fdc8
8caad834ad619745e99dd6ce627113d84ef2140c
refs/heads/main
2023-03-21T19:08:27.663408
2021-03-20T20:58:46
2021-03-20T20:58:46
349,833,310
0
0
null
null
null
null
UTF-8
Python
false
false
367
py
import json import csv with open("./users10.json") as file: data = json.load(file) fname = "output3.csv" with open(fname, "w") as file: csv_file = csv.writer(file) csv_file.writerow(["first_name","custom_email","username"]) for item in data["results"]: csv_file.writerow([item["first...
[ "noreply@github.com" ]
urkup.noreply@github.com
fee1fee1846bf026d468c1ece6e948cbdc4af9f9
a41857a9caf09e5afe370c2222b12f907cfe526f
/robot.py
b696669fda05369ad1b2c71e7e66381fe1c7484e
[]
no_license
josearchi15/IPC2_Proyecto1_201314386
f2fe38b0a731ea2b6cba46c200f99b6015723030
f3cfc8c2f720b328b934ac0faeb16bf0a14de591
refs/heads/main
2023-07-15T15:39:39.338985
2021-08-28T23:54:51
2021-08-28T23:54:51
393,745,420
0
0
null
null
null
null
UTF-8
Python
false
false
3,986
py
from listaSimpleEnlazada import ListaNoOrdenada from dijkstra import dijkstra class Robot: def __init__(self,nombre,terreno): #constructor (nombre, objeto terreno) self.nombre = nombre self.terreno = terreno self.listaVertices = {} self.listaDeAdyacencia = {} def setVericesMat...
[ "chijolx3@gmail.com" ]
chijolx3@gmail.com
694c9e252cceb994dcb65e0a0c42be5b6500d395
10e89eb922a5c122079a55234169e5b0e7af0819
/histore/cli/base.py
06f81c1b370a21633cbbc13230aeb3a0d81faa09
[ "BSD-3-Clause" ]
permissive
Sandy4321/histore
5753dd0008d1ae3400506181f22789aa9fdb43ba
d600052514a1c5f672137f76a6e1388184b17cd4
refs/heads/master
2023-04-15T07:57:49.762415
2021-04-28T11:12:31
2021-04-28T11:12:31
null
0
0
null
null
null
null
UTF-8
Python
false
false
2,101
py
# This file is part of the History Store (histore). # # Copyright (C) 2018-2021 New York University. # # The History Store (histore) is released under the Revised BSD License. See # file LICENSE for full license details. """Command line interface to interact with a manager for archives on the local file system. """ i...
[ "heiko.muller@gmail.com" ]
heiko.muller@gmail.com
c7164b11022960dd940302fb45717e389b9a42c7
081207834468897520a327260165c64466aefb8a
/contrib/devtools/test-security-check.py
5c69ef133e47fffed65b4c6ebca7bdab130923ff
[ "MIT", "LicenseRef-scancode-public-domain" ]
permissive
gotaproblem/AuxPowCoin
eb61cd8dc03d021d3317ffb178ea6a685c74cb7c
eea038edf893677e85ca45eed047ff81092d3a0f
refs/heads/master
2021-12-12T17:46:50.535108
2021-12-11T07:23:48
2021-12-11T07:23:48
227,309,159
0
0
null
null
null
null
UTF-8
Python
false
false
2,643
py
#!/usr/bin/env python2 # Copyright (c) 2015-2016 The Apcoin Core developers # Distributed under the MIT software license, see the accompanying # file COPYING or http://www.opensource.org/licenses/mit-license.php. ''' Test script for security-check.py ''' from __future__ import division,print_function import subprocess ...
[ "steve664npc@gmail.com" ]
steve664npc@gmail.com
8c8c0f407803a6d1d73f88221236034dfd1a132e
7325479ff4074cb71096a1b192cb8bfce9729189
/19 Python Built-in Functions/Python bytearray.py
6fecd53cd7405429ce7c0fbcf99041653ae82c6a
[]
no_license
riyadhswe/Python_Javatpoint
2220ab3818d7eb9b25f07e3b70e5c9f46f3cccbc
e42953c3fe0567040de850dddd0656b3ed1a17c2
refs/heads/master
2023-02-02T02:56:07.974814
2020-12-15T11:45:38
2020-12-15T11:45:38
293,787,032
4
0
null
null
null
null
UTF-8
Python
false
false
120
py
string = "Python is programming language." # string with encoding 'utf-8' arr = bytearray(string, 'utf-8') print(arr)
[ "riyadhswe@gmail.com" ]
riyadhswe@gmail.com
7b4029c8b2039d20fcfa67a38e0af84120540d04
21e35e3889cd0064474343a3b84aa289a01f8fac
/third_example_flask_app/classes.py
89d5863ab289c20518eb2bebec2bf9439ba3ca5f
[]
no_license
EricSchles/learn_python
b8fbc2b38647efb8e7176ac0d20708ffe1691007
8a5eb76aa333253a6c01f76d36dacad6bcf931ea
refs/heads/master
2021-01-13T16:45:53.606240
2017-01-31T21:10:53
2017-01-31T21:10:53
77,006,920
0
1
null
null
null
null
UTF-8
Python
false
false
368
py
class Integer: def __init__(self,number): self.number = number def add(self,other_integer): self.number += other_integer def subtract(self,other_integer): self.number -= other_integer def __str__(self): return repr(self.number) if __name__ == '__main__': number =...
[ "ericschles@gmail.com" ]
ericschles@gmail.com
6013dd2ddd2bf166f6079ab2bc6d3a45189aff07
c771478ca39417f41b0ffd5093dc8e6463f62524
/Baseline/bin/p_classification/p_train.py
35eadedc6752927a79b16e307181baeaa2f699f2
[ "Apache-2.0", "LicenseRef-scancode-warranty-disclaimer" ]
permissive
CharlotteSean/HDU-AILab
a6c1b4b70d6954d3db1c7ad0a56ba61cdf680b7d
0e9672b37afd2342af52f8de92fc0176ac958739
refs/heads/master
2020-05-07T18:29:37.388689
2019-04-15T12:54:14
2019-04-15T12:54:14
180,769,008
2
0
null
null
null
null
UTF-8
Python
false
false
5,819
py
# -*- coding: utf-8 -*- ######################################################## # Copyright (c) 2019, Baidu 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 # # ht...
[ "2308798518@qq.com" ]
2308798518@qq.com
d605f5ceb43331ec9fadb7f52b44bb25329cddd3
ca7aa979e7059467e158830b76673f5b77a0f5a3
/Python_codes/p03860/s390012203.py
a8bd0d3f0f60bc1222c64af89e721898ed697180
[]
no_license
Aasthaengg/IBMdataset
7abb6cbcc4fb03ef5ca68ac64ba460c4a64f8901
f33f1c5c3b16d0ea8d1f5a7d479ad288bb3f48d8
refs/heads/main
2023-04-22T10:22:44.763102
2021-05-13T17:27:22
2021-05-13T17:27:22
367,112,348
0
0
null
null
null
null
UTF-8
Python
false
false
68
py
a = input() initial_middle = a[8] print('A'+ initial_middle +'C')
[ "66529651+Aastha2104@users.noreply.github.com" ]
66529651+Aastha2104@users.noreply.github.com
e8a65b29d8f745add8ba7f64dbbc7c7044bb8505
25004e75b2461c85b506ffbbe41bd1daed964198
/task7.py
d473daa1702ad51a531867cf1699bc71b1470f31
[]
no_license
IslyamUmarov/STP_tasks
605fdb1f5083514bdb905e5e5e1f17610840459a
072e9968ef3dc78f04a3480fb55c5548905c0d8f
refs/heads/main
2023-05-10T19:07:40.331761
2021-06-02T16:39:36
2021-06-02T16:39:36
373,237,303
0
0
null
null
null
null
UTF-8
Python
false
false
1,225
py
import math def getNumber01(num): while type: getNumber = input('Введите число ' + num + ': ') try: getTempNumber = int(getNumber) except ValueError: print('"' + getNumber + '"' + ' - не является числом') else: break return int(ge...
[ "noreply@github.com" ]
IslyamUmarov.noreply@github.com
1eb189ae65d0e595f75658cb9e990349ad5f7c32
26cd1e49030341b8ce532a79211493e8bd8962af
/rl backup 20131126.py
8972b46d638c8163b962307a50fe001940ba82d9
[]
no_license
cgibbs/PyRoguelike
3d05520f2fdfc54998720eee2699cbaad4cea5cc
049a0418dac5a0e924407af1018eebcf38663498
refs/heads/master
2021-03-13T00:07:09.338283
2014-12-03T19:58:20
2014-12-03T19:58:20
null
0
0
null
null
null
null
UTF-8
Python
false
false
66,768
py
import libtcodpy as libtcod import math import textwrap import shelve import string import time SCREEN_WIDTH = 80 SCREEN_HEIGHT = 50 LIMIT_FPS = 20 BAR_WIDTH = 20 PANEL_HEIGHT = 7 PANEL_Y = SCREEN_HEIGHT - PANEL_HEIGHT INVENTORY_WIDTH = 50 MSG_X = BAR_WIDTH + 2 MSG_WIDTH = SCREEN_WIDTH - BAR_WIDTH - 2 MSG_HEIGHT = ...
[ "kcg005@shsu.edu" ]
kcg005@shsu.edu
6c264fb862c23b5fa93f7539724f224842f39b3f
87fca6e0bcedf27acddd3f329f710d8bfd15b9a1
/dp/differential_privacy/privacy_accountant/tf/accountant.py
a1a5cb7001cceb8232fc5a90daf25c2400350bf1
[]
no_license
saramccarthy/DP_federatedlearning
31fb5fe09f86a607a403e745e8de80bd27e2464a
1a2adddc74bf8821e4bc1f5aa65c86bf43cb3b57
refs/heads/master
2021-09-12T16:49:29.796968
2018-04-18T23:54:36
2018-04-18T23:54:36
111,263,675
3
0
null
null
null
null
UTF-8
Python
false
false
17,960
py
# Copyright 2016 The TensorFlow Authors. All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by...
[ "sara.m.mccarthy@gmail.com" ]
sara.m.mccarthy@gmail.com
f23109c9200a2ba579cae9bc17af8668d3da8123
59c6728976844b8003d4fc61cc9942b086df10d4
/39/p39.py
ef99cb8e64aa8dc81e6823611321d8a6a4114552
[]
no_license
hacatu/project-euler
dcafa013c3f9d630fe007357716f1408a31876ba
af43ffc5c1cd0f59fb1eea8215d4a5d48bdfc808
refs/heads/master
2022-06-19T21:43:52.693907
2022-03-08T09:29:30
2022-03-08T09:29:30
23,130,533
0
0
null
null
null
null
UTF-8
Python
false
false
296
py
from math import sqrt p=[] for a in range(1,999): for b in range(1,min(a,1001-2*a)): c=sqrt(a*a+b*b) if c%1==0: p.append((a,b,c,a+b+c)) p.sort(key=lambda t:t[3]) v=p[0][3] l=0 m=0 n=0 for t in p: if t[3]!=v: if l>m: m=l n=v l=0 v=t[3] l+=1 print(n)
[ "hacatu5000@gmail.com" ]
hacatu5000@gmail.com
2924ecd026a7be9109e89a1ce2001fbe9027dd62
3880459de628e19d82891b2d27b18db925c81dcf
/utils.py
98921ebcb43ec3f931b955e31b9e575f042812ce
[]
no_license
sjchasel/FinancialIntelligence
027388335831344f9dca98483b559cc45121d316
cc0db12ef95eed1901df51347b42e080ec37abdf
refs/heads/main
2023-06-27T15:16:03.088496
2021-08-03T09:19:54
2021-08-03T09:19:54
376,996,210
0
0
null
null
null
null
UTF-8
Python
false
false
8,285
py
#!/usr/bin/env python # _*_ coding:utf-8 _*_ import torch import torch.nn as nn import torch.nn.functional as F from tqdm import trange from transformers import AutoModel, AutoTokenizer from transformers import BertTokenizer, BertModel from torch.utils.data import DataLoader, TensorDataset from sklearn.metrics import a...
[ "1296841437@qq.com" ]
1296841437@qq.com
460f9023457721eeccd00d823d1f460ffb2421dc
f8a3b942c8dd7ce3bed181f03a5f853a335a96c5
/packages/ml_api/tests/conftest.py
7c55d2bb9b35b6a6ad9559891eb5ff82da0c5173
[ "BSD-3-Clause" ]
permissive
djoguns/testing-and-monitoring-ml-deployments
2b9e2b7382635842cd0a6942cb54e9c04e2c23d2
9a1e5b17a71e7be700a93a3467f24f94f0df03e9
refs/heads/master
2020-11-26T14:29:57.676961
2019-12-15T17:22:54
2019-12-15T17:22:54
null
0
0
null
null
null
null
UTF-8
Python
false
false
355
py
import pytest from api.config import TestingConfig from api.app import create_app @pytest.fixture def app(): app = create_app(config_object=TestingConfig()).app with app.app_context(): yield app @pytest.fixture def client(app): with app.test_client() as client: yield client # Has to be...
[ "christopher.samiullah@gmail.com" ]
christopher.samiullah@gmail.com
7d88372dbdd8eded47db730d15016ad14104f03f
be6ce03d62c4fb79550fd83395729594ce8b5299
/02_python_core_programming/03_network_programming/04_concurrent_server_http/09_gevent_coroutine.py
51992feb5412f6f8f4198ceea5b589d7eeeeaaeb
[]
no_license
gutianyu520/python_test_demo
b407dabfc974e4ed42578565355ddd13a0429fa6
708edb2acbc701074e882de5fc975e11426114de
refs/heads/master
2023-02-28T19:48:10.512796
2021-02-13T10:46:14
2021-02-13T10:46:14
334,833,946
1
0
null
null
null
null
UTF-8
Python
false
false
981
py
# -*- coding: utf-8 -*- # @Time : 2021/2/5 21:03 # @Author : Lim Yoona # @Site : # @File : 09_gevent_coroutine.py # @Software: PyCharm from gevent import monkey import gevent from urllib import request """ 协程--gevent 在greenlet基础上实现了自动切换 调用gevent.sleep()实现自由切换 """ def f(n): for...
[ "965238929@qq.com" ]
965238929@qq.com
9629e60fd5a07f4f2ca46385317661d71bf72660
26d5c795d8aa83bf5cb3f228675ff51e2f704f57
/scripts/s3stream-dl
7676dcc4c1287bba92fbf83a97df5657a705d475
[]
no_license
binarymachines/mercury
8e13bb10c67a056fe88e02f558d73f1f1b95d028
db3e2425f4e77a44a97c740f7fff90312a1bd33f
refs/heads/master
2023-07-08T11:35:26.867494
2023-06-25T00:46:23
2023-06-25T00:46:23
94,708,610
2
6
null
2023-02-15T21:50:06
2017-06-18T19:31:50
Python
UTF-8
Python
false
false
8,504
#!/usr/bin/env python ''' Usage: s3stream-dl --manifest_uri <s3_uri> --format=<fmt> --list s3stream-dl --manifest_uri <s3_uri> --format=<fmt> [--delimiter=<delimiter>] s3stream-dl [-p] --path <s3_uri> --pfx <prefix> --format <fmt> [--d=<delimiter>] --xcfg=<xfile_cfg> --xmap=<xfile_map> --ncfg=<ngst_cfg> ...
[ "binarymachineshop@gmail.com" ]
binarymachineshop@gmail.com
2e8f924b05c6e8e8cef867d8da3e3b6134fb8fa5
14f20e3b066a16be1ccea690d235ad0e7792aa6b
/preprocessing/DictionaryImporter.py
ce9d1fba100876d4618ac8ab22c98ec0fcc8c4aa
[]
no_license
molybdaen/Sentiment
9fb8cc9137166336451f4bd0ee84c46d3b59d39a
8c5c44581f19b2b016f7ea39b3821a17aa594834
refs/heads/master
2020-04-05T23:44:16.051110
2014-03-16T14:37:07
2014-03-16T14:37:07
null
0
0
null
null
null
null
UTF-8
Python
false
false
2,433
py
__author__ = 'Johannes' import os import json import numpy as np from sklearn.neural_network import BernoulliRBM class DictionaryImporter(object): chars = {'\'':0, 'a':1, 'b':2, 'c':3, 'd':4, 'e':5, 'f':6, 'g':7, 'h':8, 'i':9, 'j':10, 'k':11, 'l':12, 'm':13, 'n':14, 'o':15, 'p':16, 'q':17, 'r':18, 's':19, 't':20...
[ "j.jurgovsky@web.de" ]
j.jurgovsky@web.de
d40c0da8a02749008fbb1299986e327792b6b037
096eb739e8abfcfc387e21f416db023c184696cf
/django_test/mysite/apps/blog/models.py
1a1cc2f36d0f7b79f0f1d5b7a758d4ba21f1b1a5
[ "MIT" ]
permissive
Muix2015/Personal_Website
34d8f2a30a01543688ca036b184f827e3d09e144
87f6247046a84cb524691f512775673eeeb25a5d
refs/heads/master
2020-06-23T23:28:43.426689
2019-08-02T02:42:58
2019-08-02T02:42:58
198,784,537
0
0
null
null
null
null
UTF-8
Python
false
false
2,058
py
from django.db import models from django.conf import settings # Create your models here. # 文章分类model class Catalogue(models.Model): name = models.CharField('分类名称', max_length=20) slug = models.SlugField('唯一标识', unique=True, default='cata_slug_default(请修改)') disc = models.TextField('分类介绍', max_...
[ "mixer2010@126.com" ]
mixer2010@126.com
76ffe62acb560a5f6efa818a203b727cdbf4b491
8de315bcf5e699f4f4014a52103a83949e8c8dfe
/entertaiment_center.py
2d8db1bbb04f1cb01d5a0c2697224dd757f2421b
[]
no_license
sviridovartem/Python-MovieWebsite
eca4da230bca38acd24678d7cbb764479814f170
ded8331795098c5375f834599cbb549a952eabb9
refs/heads/master
2021-05-01T13:58:50.975777
2017-01-20T18:24:55
2017-01-20T18:24:55
79,585,464
0
0
null
null
null
null
UTF-8
Python
false
false
48,401
py
import media import fresh_tomatoes grandTour1 = media.Movie("The Grand Tour", "Jeremy Clarkson, Richard Hammond and James May travel the globe as the hosts of this Amazon original series. At each location -- including Johannesburg, Lapland, Rotterdam, Stuttgart Whitby, Scotland, California, Na...
[ "SvyrydovArtem@gmail.com" ]
SvyrydovArtem@gmail.com
f1fa19fbbe5ab20300801c58ecef9397b9ea91ed
b5615027c68fd8b9231c0b3a6a09afc8170e10ef
/battery.py
5ba72ef54503a2cad1e25a1345dbe08d489155d5
[]
no_license
zelut/dwm
9f67cc8a829bc8e42e9bdf76011a4f2e22e82deb
c587f6405cba131cc30edda7131253bcaa8d1611
refs/heads/master
2021-01-10T19:41:08.277134
2011-06-04T01:37:05
2011-06-04T01:37:05
514,364
0
0
null
null
null
null
UTF-8
Python
false
false
239
py
#!/usr/bin/env python import re, sys pattern = re.compile(r'Battery\s+(\d+):\s+(\w+),\s+(\d+)%') items = pattern.findall(sys.stdin.read()) new = [] for item in items: new.append('Battery %s: %s, %s%%' % item) print ' | '.join(new)
[ "christer.edwards@ubuntu.com" ]
christer.edwards@ubuntu.com
7b49c5935c6662a70085097b581992922e499ee2
900379ae0f67d58e6aff9861fcdafc4fff9b634e
/HTMLparser/beautifulsoup4-4.4.1/setuptools-20.2.2/setup.py
a59d374d4f2597c7ef582b24bbc36dcbff699c03
[ "MIT" ]
permissive
a514514772/lol_replayer_for_tencent
cd444707b963561a20c15a13e4898712f844e34a
ae92c1c11621946b1feac2cb3e474865e99a8f4e
refs/heads/master
2020-12-11T07:31:35.117032
2016-04-07T18:10:22
2016-04-07T18:10:22
53,326,771
4
0
null
2016-03-07T13:15:17
2016-03-07T13:15:16
null
UTF-8
Python
false
false
6,700
py
#!/usr/bin/env python """ Distutils setup file, used to install or test 'setuptools' """ import io import os import sys import textwrap # Allow to run setup.py from another directory. os.chdir(os.path.dirname(os.path.abspath(__file__))) src_root = None from distutils.util import convert_path command_ns = {} init_p...
[ "a88575847@gmail.com" ]
a88575847@gmail.com
5a0b3271ed81ec8672e77a7284e2e7c0c3368600
75c56c42eda7c1b4c976fd25b0e16ecbab22b7ca
/submissions/Brock/myBayes.py
d694409501c92a6f8fe1a5d97d7f006173a2791e
[ "MIT" ]
permissive
WmHHooper/aima-python
6139edb75c4ebb524df80035ef369bffec18f534
9792b128bbc192b27cc33ab6c084834a82a2d664
refs/heads/master
2021-01-21T08:54:50.370881
2018-12-13T03:11:00
2018-12-13T03:11:00
64,494,943
4
103
MIT
2018-12-13T02:54:04
2016-07-29T16:29:20
Python
UTF-8
Python
false
false
1,401
py
from probability import BayesNet T, F = True, False depressedStudent = BayesNet([ ('Sad', '', 0.45), ('Homework', '', 0.32), ('Tired', '', 0.7), ('Sleeping', 'Sad Homework Tired', {(T, T, T): 0.12, (T, T, F): 0.05, (T, F, T): 0.65, (T, F, F): 0.33, (F, T, T): 0.10, ...
[ "jbrock3852@gmail.com" ]
jbrock3852@gmail.com
d9fe6f00109d7ea449564f348bea0fbcf2feca43
001184c168b93118f0429b11bab55fe108928b5d
/Week 3- Programming Assignments/Orientation2.py
533af81246e273eec244ce942ae5e3e9300f2085
[]
no_license
harrypotter0/ml-robot
caee1f9695427b8a83f64a41420f89b948fdb801
06e6672ba47fd73d4077ff5a6f48bdfafaea6597
refs/heads/master
2021-09-14T04:28:31.987037
2018-05-08T14:30:04
2018-05-08T14:30:04
115,803,231
1
0
null
null
null
null
UTF-8
Python
false
false
4,177
py
# In this exercise, write a program that will # run your previous code twice. # Please only modify the indicated area below! from math import * import random landmarks = [[20.0, 20.0], [80.0, 80.0], [20.0, 80.0], [80.0, 20.0]] world_size = 100.0 class robot: def __init__(self): self.x = random.random() ...
[ "9654263057akashkandpal@gmail.com" ]
9654263057akashkandpal@gmail.com
6c81ceed055c2d375b64725926e5208cb180263e
4e96f383d4703ad8ee58869ed91a0c8432c8a051
/Cura/Cura/plugins/VersionUpgrade/VersionUpgrade25to26/__init__.py
c74b3218b6ee2cb2b18f90149702826398f3ef7d
[ "GPL-3.0-only", "LGPL-3.0-only" ]
permissive
flight7788/3d-printing-with-moveo-1
b2dba26010c4fa31815bc1d2d0966161a8600081
7fcb9c6b5da9245d54ac917de8c2a7f5148e42b0
refs/heads/Feature_Marlin_with_AlanBoy
2022-08-30T18:36:44.785058
2020-05-30T07:52:58
2020-05-30T07:52:58
212,583,912
0
0
MIT
2020-05-16T07:39:47
2019-10-03T13:13:01
C
UTF-8
Python
false
false
2,027
py
# Copyright (c) 2018 Ultimaker B.V. # Cura is released under the terms of the LGPLv3 or higher. from typing import Any, Dict, TYPE_CHECKING from . import VersionUpgrade25to26 if TYPE_CHECKING: from UM.Application import Application upgrade = VersionUpgrade25to26.VersionUpgrade25to26() def getMetaData() -> Dict...
[ "t106360212@ntut.org.tw" ]
t106360212@ntut.org.tw
cc322034c38f2bc31f1b1aceb9adcad7b001e1a3
236a073b6a2b6b9ca978c730a19518a3226f60e0
/RLDashboard/wsgi.py
f6b75183dd0f3a1c67164158e394944a42387478
[]
no_license
Rankith/RLDashboard
468150b59c88c268ce79d9f44cb2988cf0786d10
b398408ad6f65550d18262167a3d1eb5c8f645b8
refs/heads/master
2022-12-09T11:00:09.031194
2019-04-24T22:11:55
2019-04-24T22:11:55
169,513,573
0
0
null
null
null
null
UTF-8
Python
false
false
1,144
py
""" WSGI config for RLDashboard project. This module contains the WSGI application used by Django's development server and any production WSGI deployments. It should expose a module-level variable named ``application``. Django's ``runserver`` and ``runfcgi`` commands discover this application via the ``WSGI_APPLICATIO...
[ "Julian@MAIN-PC" ]
Julian@MAIN-PC
f1b0e64e128c29c8a8b410a5640b304254597c00
718cfe57ab0930d0f9c9e46deed51caa3231b676
/docs/_ext/djangodocs.py
f9ff6ffcbf37ef50f800fed0e90747707edaf825
[ "BSD-3-Clause" ]
permissive
allanice001/django
146886d4195fc8b0641d3f48c30eaa4175c96b49
aac75fa30af22965f993c6dd8da8cd9882ba2f21
refs/heads/master
2020-03-28T17:07:04.061584
2018-09-14T08:30:27
2018-09-14T08:30:27
148,759,493
0
0
null
null
null
null
UTF-8
Python
false
false
12,014
py
""" Sphinx plugins for Django documentation. """ import json import os import re from docutils import nodes from docutils.parsers.rst import Directive, directives from sphinx import addnodes from sphinx.builders.html import StandaloneHTMLBuilder from sphinx.util.console import bold from sphinx.util.nodes import set_so...
[ "allanice001@gmail.com" ]
allanice001@gmail.com
0cf69877d3d3387e6620566be46b35d6430bd28b
0b671777768c5912889fac1401f0f02978817afa
/day_05/2.py
986eed9061041e7a80d2fe11b5ee4029b6e88fd6
[]
no_license
Alekaei/AdventOfCode2018
d1e61dc538cbef5a8f59fd21d548ba32ae1c8477
813c84f59a7edf3405ac19fb740b141b62329c7c
refs/heads/master
2020-04-09T19:39:02.226056
2018-12-16T18:24:23
2018-12-16T18:24:23
160,549,436
0
0
null
null
null
null
UTF-8
Python
false
false
546
py
polymer = open('input.txt', 'r').read().strip('\n') possible = [l + l.upper() if i == 0 else l.upper()+l for l in 'abcdefghijklmnopqrstuvwxyz' for i in range(2)] polyLengths = {} for l in 'abcdefghijklmnopqrstuvwxyz': polyLengths[l] = polymer.replace(l, '').replace(l.upper(), '') clearPass = False while not clearPa...
[ "alekaei522@gmail.com" ]
alekaei522@gmail.com
d5bbd6060bcdbf6577231502c87702616b5efea7
3217e1e8f64ee25674222b09a85b059a93fad9a3
/deck_collector.py
c254d513dc0cfc82909bcbb32ee3b9a3fd3d82cc
[]
no_license
Wizwizard/mtgtool
5589b21b2bc7452510b5e948e87f1f64699091ec
6642a7a971a1536af2549c1089b74794aede886e
refs/heads/master
2023-03-25T15:25:23.188233
2021-03-15T15:19:27
2021-03-15T15:19:27
311,638,052
0
0
null
null
null
null
UTF-8
Python
false
false
1,332
py
import mtgazone_crawler import db import time import math # 1 standard 2 historic # source, deck_name, deck_code, deck_meta, deck_color, create_dt, create_ts def mtgazone_decks_collector(): source = "mtgazone" today_dt = time.strftime("%Y%m%d", time.localtime()) deck_color = 00000 def insert_mtgazon...
[ "303704668@qq.com" ]
303704668@qq.com
2958ed47b882930510e522479343667bd0f70966
3843da3c397cc4f251cc8558b10486cb2dbffd45
/Fibonacci/Aplicacion_Fibonacci.py
98274d9436365bfa09dba2a26ccf82e6ceb33017
[]
no_license
manolosierra99/FIBONACCI
e6736db4ac2164cce8ae5fc1b19cf1cfeb27a4a8
5eb8c0f1275b6c2c593203627f1a594e01f0de54
refs/heads/master
2020-01-23T21:16:42.865984
2016-11-23T10:36:54
2016-11-23T10:36:54
74,568,941
0
0
null
null
null
null
UTF-8
Python
false
false
267
py
''' Created on 23 nov. 2016 @author: usuario ''' from Fibonacci_package.Funcion_Fibonacci import Fibonacci if __name__ =="__main__": numero=int(input("Escribe un numero sobre el que desea saber la funcion de Fibonacci:")) print(Fibonacci(numero))
[ "manolo.sierra99@gmail.com" ]
manolo.sierra99@gmail.com
96180f3134882c4ef5c7da63ee14db2f4aacead8
a552866df96c40c22096eddbc5316522c2de2e1d
/SR BANKING PVT. Ltd/Terms.py
37a88e0229e266131004da60f1a97acb124f4474
[]
no_license
AnonWolf99/S-R-BANK
5dc3d6b5fc20fa9b4048c30759b9c8ec44d0c68d
cba4047999e4afcf9763f983605c8695cb394922
refs/heads/master
2021-01-20T11:10:55.820125
2017-08-28T17:40:50
2017-08-28T17:40:50
101,668,962
0
0
null
null
null
null
UTF-8
Python
false
false
6,180
py
import time print """You agree to the following TERMS AND CONDITIONS by opening an account with us:-""" time.sleep(2) print""" 1.1 I agree to abide by the Bank's Terms and Conditions and rules in force and the changes thereto in Terms and Conditions from time to time relating to my account as communicated and made ...
[ "noreply@github.com" ]
AnonWolf99.noreply@github.com
c2b06340672afdd111ed8495629bc667dc414581
85e6d039205878475e05957219aa6fb32b04b086
/21-merge-two-sorted-lists.py
fe8d58c771b3bbbfc84fc60686a46266cd299bf2
[ "MIT" ]
permissive
LGX95/leetcode
e4e3fd98527a8559b60beb572b1f728b97357c14
a25813975beca8e24e8b0c920d6e2ef488c848da
refs/heads/master
2023-01-28T13:00:16.624801
2020-12-07T15:17:58
2020-12-07T15:17:58
292,799,111
0
0
null
null
null
null
UTF-8
Python
false
false
723
py
"""Question: https://leetcode.com/problems/merge-two-sorted-lists/ """ from datastruct import ListNode class Solution: def mergeTwoLists(self, l1: ListNode, l2: ListNode) -> ListNode: curr = dummy = ListNode() while l1 and l2: if l1.val < l2.val: curr.next = l1 ...
[ "ligengxin95@gmail.com" ]
ligengxin95@gmail.com
50779c927afec635a78a23666d1fd869c6611a99
e5fb0bc07bfeb901ce9f390c28d689c65acd4d90
/solutions/prob1.py
493bc5477ef66d31ccf0740e20365cfcad1c72cd
[ "Apache-2.0", "MIT" ]
permissive
Han0nly/crypto
b8c426b5d65a10f3ef5c3e45e9b28369a79a1db1
7718344247e8f87530d2f4c6299c311501a6f2d3
refs/heads/master
2021-01-10T17:45:50.956931
2015-11-26T14:34:11
2015-11-26T14:34:11
46,762,998
0
0
null
null
null
null
UTF-8
Python
false
false
3,434
py
#!/usr/bin/env python # Written against python 3.3.1 # Matasano Problem 1 # Convert hex to base64 # Example hex: 49276d206b696c6c696e6720796f757220627261696e206c696b65206120706f69736f6e6f7573206d757368726f6f6d # Example base64: SSdtIGtpbGxpbmcgeW91ciBicmFpbiBsaWtlIGEgcG9pc29ub3VzIG11c2hyb29t import base64 impo...
[ "646861172@qq.com" ]
646861172@qq.com
397901e01becec7e4703b0b2a662c94bfabcba7b
0f0791ba7d5fb15034bf084b2a0898f7d8e8c326
/python3/051-100/094-str.py
7dc6c68d087296d14384f0df62d55e26410d6a2a
[]
no_license
songseonghun/kagglestruggle
3314aae21aca33af89ea7a22e0090b7ff3d981de
468ffd8c5ff45e412d5138a7533c207371ce95c6
refs/heads/master
2020-04-30T01:50:38.072980
2019-07-19T00:26:32
2019-07-19T00:26:32
176,541,172
0
0
null
null
null
null
UTF-8
Python
false
false
188
py
#Custom object formatting class C: def __init__(self, value): self.value = value def __str__(self): return str(self.value) c = C(42) print(c) print(type(c))
[ "48725949+songseonghun@users.noreply.github.com" ]
48725949+songseonghun@users.noreply.github.com
1564996a59aed6a91a7494bbe86e79f0eb22aaca
275c4026d99059341e9ddcbaf834f3863d4a7b71
/src/fiximports.py
74f94eb442e0a49072e5ab688d80268d5e99c911
[ "BSD-3-Clause" ]
permissive
sr-lab/verified-pam-cracklib
fad014dbaf2d6a63543104a1bae57950e91524cc
f2fe95c54c1085a9577490f06a22e797c3697375
refs/heads/master
2021-01-19T07:36:19.538160
2018-05-23T22:24:05
2018-05-23T22:24:05
82,292,192
1
0
null
null
null
null
UTF-8
Python
false
false
601
py
#!/usr/bin/env python # preprocessor: add extra imports # preprocessor: ghc -F -pgmF import os, sys imports = """ import qualified Data.Bits import qualified Data.Char import qualified GHC.Prim """ filename = sys.argv[2] out = open(sys.argv[3], "w") out.write("{-# LINE 1 \"%s\" #-}\n" % (filename)) for n, line in e...
[ "saul.a.johnson@gmail.com" ]
saul.a.johnson@gmail.com
c81059988c5dd0c4f6ab9e0838d2642382177278
c95b3489d2eb78169e18e045f8b94fe7eabbdb5a
/test/issues/issue27_test.py
a78ed39a04e8a53590a81dca9df15df7333d4f8f
[ "Apache-2.0" ]
permissive
chaimleib/intervaltree
51d337990b6b02807ff858a1e11694c1a347ac56
01a30a8df977a02e1b6e25eee3838b8d6b340995
refs/heads/master
2023-08-30T21:37:44.419160
2023-03-29T17:43:06
2023-03-29T17:43:06
18,158,381
581
116
Apache-2.0
2023-02-22T00:15:54
2014-03-26T23:54:47
Python
UTF-8
Python
false
false
1,909
py
""" intervaltree: A mutable, self-balancing interval tree for Python 2 and 3. Queries may be by point, by range overlap, or by range envelopment. Test module: IntervalTree, insertion and removal of float intervals Submitted as issue #26 (Pop from empty list error) by sciencectn Ensure that rotations that promote Inter...
[ "chaim.leib.halbert@gmail.com" ]
chaim.leib.halbert@gmail.com
e166b8410337e791d70cb27ce11b98e02c6b4ca8
6c3edb74805fd4008038747daab549f423a74cd0
/DataStructures/linkedlist/linkedlist.py
676f4b61865ac485421ee1aa368474fce41e637d
[]
no_license
layanabushaweesh/data-structures-and-algorithms-401
d27da0051605fc942e2bc56db1b69dff09f8bf21
d2e0a166e0a63e433ca4266ba7b1a850249f14fa
refs/heads/main
2023-06-28T05:13:01.220804
2021-08-03T04:10:25
2021-08-03T04:10:25
376,221,155
0
0
null
2021-08-03T04:10:25
2021-06-12T06:41:34
Python
UTF-8
Python
false
false
4,360
py
#Create a Node class that has properties for the value stored in the Node, and a pointer to the next Node. from typing import Counter, cast class Node: def __init__(self, value): # Assign data self.value = value # Initialize next as null self.next = None # Within your LinkedList...
[ "layanabushaweesh@gmail.com" ]
layanabushaweesh@gmail.com
6017959ca8b24f96799feb4c4d7d782a199cab41
2d195a727e2c006ca7a9614016e5a18d06b4bc2b
/17drill.py
a37a1adf923430a1d111dd466c17b42ca1332581
[]
no_license
semosso/lpthw
fc500456fabd39b3919b4b631b26fa4dda2172e5
83c2e7c6a9a879ed3cd6b5c11c504c6d11a4717b
refs/heads/master
2020-04-07T05:48:14.730969
2019-03-24T22:28:59
2019-03-24T22:28:59
158,110,697
0
0
null
null
null
null
UTF-8
Python
false
false
802
py
# SD from sys import argv; from os.path import exists script, from_file, to_file = argv print(f'Copying from {from_file} to {to_file}.') indata = open(from_file).read() print(f'The input file is {len(indata)} bytes long. Does the output file exist? {exists(to_file)}') out_file = open(to_file, 'w') # SD 4 related...
[ "vnazambuja@gmail.com" ]
vnazambuja@gmail.com
987eefa3b4567bac22ef4aa1bb712480e2cf395b
e7669caf1a4ce9053bb720bcfa2d85a4ee35ea65
/pyrosetta_toolkit/window_modules/protocol_builder/ProtocolBuilder.py
9317ac4215847ebde667e595866fa8e5255693b9
[ "BSD-3-Clause" ]
permissive
SchiefLab/Jade
f81190321df061f8317db869a64a7b87a13d664a
791d26892aacf21bca733aa9c1c6ea3f2be51958
refs/heads/master
2023-01-10T15:14:08.431470
2018-11-07T17:11:02
2018-11-07T17:11:02
41,381,258
7
2
NOASSERTION
2022-12-26T20:35:53
2015-08-25T18:39:20
Python
UTF-8
Python
false
false
25,209
py
#!/usr/bin/env python # # (c) Copyright Rosetta Commons Member Institutions. # (c) This file is part of the Rosetta software suite and is made available under license. # (c) The Rosetta software is developed by the contributing members of the Rosetta Commons. # (c) For more information, see http://www.rosettacommons.or...
[ "jadolfbr@gmail.com" ]
jadolfbr@gmail.com
858f6123ce2a85f7c7c16b36c09c7fa59fb9ca1a
b7a4e5b4216ccd3be0922326f8e3c5da4f19265c
/Project 2 - demographic_data_analyzer/test_module.py
f55b015fc45207b10cb7257dfe8290f3c3b2722a
[]
no_license
CzarneckaAnna/Data-Analysis-with-Python
bb2ce09b766ded8affb46afe17e89aad3e774098
50e7a296aca1805b93c1b97a495336194b84bfa1
refs/heads/main
2023-06-12T21:50:37.024196
2021-06-29T07:15:57
2021-06-29T07:15:57
376,090,091
0
0
null
null
null
null
UTF-8
Python
false
false
2,675
py
import unittest import demographic_data_analyzer class DemographicAnalyzerTestCase(unittest.TestCase): def setUp(self): self.data = demographic_data_analyzer.calculate_demographic_data(print_data = False) def test_race_count(self): actual = self.data['race_count'].tolist() expected = [...
[ "77941142+CzarneckaAnna@users.noreply.github.com" ]
77941142+CzarneckaAnna@users.noreply.github.com
4d49e6a6ebef6ee3656c669671bf466d09be810f
cad821661e025a83b37db741bc8c680ed3e85055
/utils/init.py
54a39a97884b5e4a50dcf1441205d63d8c366435
[ "MIT" ]
permissive
Flyfoxs/DFL-CNN
96eb30c0c6e7dfdccb2f0bf5f98e01317c54040d
49ef653488aabbcc2495305d39b63f5f4c5093ea
refs/heads/master
2021-02-18T08:37:05.384326
2020-03-08T15:11:34
2020-03-08T15:11:34
245,178,577
0
0
MIT
2020-03-05T14:04:03
2020-03-05T14:04:02
null
UTF-8
Python
false
false
1,283
py
from torch.nn import init def init_net(net, init_type='normal'): init_weights(net, init_type) return net def init_weights(net, init_type='normal', gain=0.02): def init_func(m): # this will apply to each layer classname = m.__class__.__name__ if hasattr(m, 'weight') and (cla...
[ "noreply@github.com" ]
Flyfoxs.noreply@github.com
a82cdbdc538afca933f90a5e2880ccdcce52f870
621d0b65820c529b44ee06eea9ca1523fd158cd8
/flask_questions.py
d3b41d4691abcdbd5ca1b43fe70a65db6c0db56d
[]
no_license
aparnapr121/python_practice
99fbe646a8ebe482074322722c9010a7997961de
6460f67e7ba7c2fc701ec8a27518c1b834c4ec8c
refs/heads/master
2020-04-27T15:49:10.989048
2019-09-30T04:55:07
2019-09-30T04:55:07
174,461,448
0
0
null
null
null
null
UTF-8
Python
false
false
420
py
""" Flask db migrations """ from flask import Flask from flask_sqlalchemy import SQLAlchemy from flask_migrate import Migrate app =Flask(__name__) app.config['SQLALCHEMY_DATABASE_URI'] = 'sqlite:///app.db' db = SQLAlchemy(app) migrate = Migrate(app, db) class User(db.Model): id = db.Column(db.Integer, primary_...
[ "aparnapr121@gmail.com" ]
aparnapr121@gmail.com
84920513cb1563a1d74030b4b122dcb70823892e
bbcc6cbeedf6bf4feaa95dedd6ce2ba0049f2bae
/example/gesture_recognition/gesture_rgb_demo_keras.py
bf654c017796023a607f6ccf463040b7cc5a74d7
[]
no_license
rocking5566/deep-learning-docker
5cb74e1ff1684236187d282e2b133d26efafa1ed
d8d8186495eb71b10bbf68fa6b4b47f141549455
refs/heads/master
2021-07-12T16:17:15.640411
2020-07-15T07:05:48
2020-07-15T07:47:05
146,019,058
4
3
null
2019-04-27T15:35:40
2018-08-24T17:08:37
Python
UTF-8
Python
false
false
2,432
py
import cv2 import numpy as np import time from keras.models import load_model skinkernel = cv2.getStructuringElement(cv2.MORPH_ELLIPSE,(5,5)) labels = ['Five_Finger', 'Four_Finger', 'Good_Sign', 'One_Finger', 'Three_Finger', 'Two_Finger', 'other'] def skin_mask(frame, x0, y0, width, height): # HSV values lo...
[ "aa155495.cs01g@nctu.edu.tw" ]
aa155495.cs01g@nctu.edu.tw
baa5c5fefc9c8ea942dc377a5fc819bcabc8897a
36b7139a9ba0a0fb0181605950b26aa2971c8c35
/lib/config/default.py
3763ebf44d83c4769e213464dd1e80f4da5b1e96
[ "MIT" ]
permissive
Re3write/deepresolution
845962d27cae4a1a7bd6929ebedf6211f2e2e1f8
2ad7e67beae89d181a5c7c9bcf553b65c6327faa
refs/heads/master
2020-04-28T21:26:16.515656
2019-03-14T08:48:50
2019-03-14T08:48:50
175,581,514
0
0
null
null
null
null
UTF-8
Python
false
false
3,471
py
# ------------------------------------------------------------------------------ # Copyright (c) Microsoft # Licensed under the MIT License. # Written by Bin Xiao (Bin.Xiao@microsoft.com) # ------------------------------------------------------------------------------ from __future__ import absolute_import from __fut...
[ "1936929110@qq.com" ]
1936929110@qq.com
6d9ced454145fc2b7691e9934b6e754a3ceb726d
18536f8145457a193b976eec44ee92535f588e54
/tests/functional/s3api/test_select_object_content.py
87750a30e5124bb75e76a8d9613cd5c8052055b8
[ "Apache-2.0" ]
permissive
jamsheedsaeed/awsapp
07e4ec6b9e07f679106db8e61f104ee9065e6af0
5498a3652b1d471a8695e14ca9739140e88a4b29
refs/heads/master
2023-01-01T23:44:16.181967
2020-06-19T06:56:48
2020-06-19T06:56:48
273,418,893
0
0
NOASSERTION
2022-12-26T20:16:39
2020-06-19T06:16:31
Python
UTF-8
Python
false
false
4,758
py
#!/usr/bin/env python # Copyright 2018 Amazon.com, Inc. or its affiliates. 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. A copy of # the License is located at # # http://aws.amazon.com/apache2.0/ # # or in ...
[ "jamsheedsaeed786@gmail.com" ]
jamsheedsaeed786@gmail.com
71fd3ac1332d7bf2b5e91a0def54ccd030a76166
e344e4b9ae7a73bcb04c5525968972763856c3d0
/ICP 1/Source/venv/Scripts/pip3-script.py
95a8214579a56e4341997eed069163eab1128119
[]
no_license
sai-kolla/Python
1d68589a395f5e19f76d57e4201c735d2a12337d
1116635b42029d5e7adccca584315869f5c16cf1
refs/heads/master
2022-02-10T04:23:16.919632
2022-01-20T19:21:56
2022-01-20T19:21:56
167,486,447
1
0
null
null
null
null
UTF-8
Python
false
false
418
py
#!C:\Users\sainagarjuna\Desktop\Python\part-1\venv\Scripts\python.exe # EASY-INSTALL-ENTRY-SCRIPT: 'pip==10.0.1','console_scripts','pip3' __requires__ = 'pip==10.0.1' import re import sys from pkg_resources import load_entry_point if __name__ == '__main__': sys.argv[0] = re.sub(r'(-script\.pyw?|\.exe)?$', '', sys....
[ "nagarjunaguf17062@gmail.com" ]
nagarjunaguf17062@gmail.com
d91241e28a7781f4e1b8d3e0aaae4e0162f0622f
a3eccc652f83815318bdb033a33573c5b1e073e9
/nac/crm/views/add_lead.py
7d6cf4cdf3c36cb198817a0d24a038fb42afd38d
[]
no_license
jsvelu/coms-dev--old
8139fa511e2985b4d71550f1c59402069d09edf3
de300ad6ef947d29380972a6efe809f4ef05d7e1
refs/heads/main
2023-07-17T20:44:36.101738
2021-09-04T21:56:38
2021-09-04T21:56:38
403,158,834
0
0
null
null
null
null
UTF-8
Python
false
false
1,615
py
from authtools.views import resolve_url_lazy from django.urls import reverse_lazy from django.views.generic.edit import FormView from rules.contrib.views import PermissionRequiredMixin from crm.forms.lead import LeadForm from customers.models import Customer from dealerships.models import Dealership class AddLeadVie...
[ "velu@qrsolutions.in" ]
velu@qrsolutions.in
5e6d52adf01b93ef37a0657c9724b59153a22997
b4463b2c4434251003733b1e2082a7bca906dd0d
/bug.py
d46aae30716092e5ae0bdb6bb768daa912eb6b7d
[]
no_license
JeanLouisDufour/smtlib
cca2d6f32c0f7f385f279a128c0fb8a4d760b7dc
c8b193736b7eee42d9efe704de86b3044c3a9b87
refs/heads/master
2021-10-22T12:16:35.835203
2021-10-21T06:26:31
2021-10-21T06:26:31
232,175,869
0
0
null
null
null
null
UTF-8
Python
false
false
640
py
import sys #sys.setrecursionlimit(10**6) rec_lim = sys.getrecursionlimit() print('rec lim : {}'.format(rec_lim)) def depth(t): "" if isinstance(t,(list,tuple)) and t: d = max(depth(ti) for ti in t)+1 else: d = 0 return d if len(sys.argv) == 2: lim = int(sys.argv[1]) else: lim = 30000 # rec...
[ "jeanlouis.dufour7@gmail.com" ]
jeanlouis.dufour7@gmail.com
d7b26fb31c391f73723ea82312f6d38eee6913cc
0d7ce029df04852763f63b8d148eeac5d7dbb89c
/web_6/MVC/Controller/routes/routes_login.py
10f6ad8cb26882d253913b29d9750d9fd7148cc1
[]
no_license
lph4stalin/xiao
f42a3961326468125c82a764349deeb1a6b1fd42
ce2bf2aa215f823c448fe079ff04524ca4128aed
refs/heads/master
2020-05-31T14:40:04.126333
2019-08-04T04:00:12
2019-08-04T04:00:12
190,334,174
0
0
null
null
null
null
UTF-8
Python
false
false
1,118
py
from Model import * from .utils import * import sys sys.path.append('../') import Controller.session def route_login(request): """ login 的函数,传入 POST 的 Body,返回页面 会把原始页面中{{result}}部分替换为自定义内容 """ r = page(request).decode(encoding='utf-8') if request.method == 'POST': # 把 body 解析成字典 ...
[ "34419569+lph4stalin@users.noreply.github.com" ]
34419569+lph4stalin@users.noreply.github.com
f2df0a5b18ace630467007d86e19afacb3556e85
673f9b85708affe260b892a4eb3b1f6a0bd39d44
/Botnets/App/App Web/PDG-env/lib/python3.6/site-packages/scapy/utils.py
5b1a8f7bb5902f7ffccbf08702bef25a0a6f3395
[ "MIT" ]
permissive
i2tResearch/Ciberseguridad_web
feee3fe299029bef96b158d173ce2d28ef1418e4
e6cccba69335816442c515d65d9aedea9e7dc58b
refs/heads/master
2023-07-06T00:43:51.126684
2023-06-26T00:53:53
2023-06-26T00:53:53
94,152,032
14
0
MIT
2023-09-04T02:53:29
2017-06-13T00:21:00
Jupyter Notebook
UTF-8
Python
false
false
61,921
py
# This file is part of Scapy # See http://www.secdev.org/projects/scapy for more information # Copyright (C) Philippe Biondi <phil@secdev.org> # This program is published under a GPLv2 license """ General utility functions. """ from __future__ import absolute_import from __future__ import print_function from decimal ...
[ "ulcamilo@gmail.com" ]
ulcamilo@gmail.com
2bb2a509afadc7c3f3ff75189c8a831aca872153
e2e8b2997801d506fcf9336d57910dbcb7d4030a
/apart/board1.py
4381897844844b71bcf558ff4f568403974fd4fd
[]
no_license
Logan-kim7/studycrawl_test
0d67e928f7e6ce7ef668360d8347e6f45fe3a154
98c8ac88bd139cb6ff1163a3f4623a024123c25f
refs/heads/master
2023-07-06T21:03:16.203198
2020-06-22T07:44:04
2020-06-22T07:44:04
null
0
0
null
null
null
null
UTF-8
Python
false
false
721
py
# 제목, 내용, 작성일자, 작성자 import requests from bs4 import BeautifulSoup url = 'http://news.sarangbang.com/talk/bbs/free/163831?url=%2F%2Fnews.sarangbang.com%2Fbbs.html%3Ftab%3Dfree' resp = requests.get(url) if resp.status_code != 200: print('WARNING: 잘못된 URL 접근') soup = BeautifulSoup(resp.text, 'html.parser') title =...
[ "skynate22@naver.com" ]
skynate22@naver.com
466afc3c2f8ea5e751d48b901d7493e5f8b27c5b
80022966e020bb3c4e0a5888362d7c9fa087ee49
/High_Pass_Filter.py
2e54886a7f6b387387c15881625644416dc4bcd0
[]
no_license
Temuujin-Natsagnyam/Electronic-simulations
2baa485243aee2a354ae99c96eeaa015c40ead8c
7b7f44e286dd846559dbb7874487a9e917395921
refs/heads/master
2021-05-12T02:56:31.329335
2018-02-02T22:45:30
2018-02-02T22:45:30
117,602,164
0
1
null
null
null
null
UTF-8
Python
false
false
1,603
py
#This filter blocks out low frequencies. Try changing values for f on line 16 to see effects. import matplotlib.pyplot as plt from matplotlib.pyplot import * import numpy as np def lag(V_input,T,V_previous_output): #lag function V_new_output = V_previous_output + (V_input - V_previous_output)/T return ...
[ "noreply@github.com" ]
Temuujin-Natsagnyam.noreply@github.com
9f07b9a1f2bbe353e56d790b97862ed6285cfadd
f339663cece2424266828d72316bc45e918ff20b
/run_tests.py
e3b9b8d3e5b87497e66f3b21fee42b825259143d
[]
no_license
sharly2012/api_auto
d106b9506d9ab53c9963a3c6ba743aae9ac815dc
0ce10afd7984800e27ba7e330adc3d40f61ebfe3
refs/heads/master
2020-03-27T02:29:18.097906
2018-08-23T03:22:23
2018-08-23T03:22:23
145,695,829
0
0
null
null
null
null
UTF-8
Python
false
false
881
py
import os import sys import time import unittest curPath = os.path.abspath(os.path.dirname(__file__)) rootPath = os.path.split(curPath)[0] sys.path.append(rootPath) from util.BaseUtil import BaseUtil from runner.HTMLTestRunner import HTMLTestRunner test_suits = unittest.TestSuite() test_dir = BaseUtil().get_root_path...
[ "sharly2012@sina.com" ]
sharly2012@sina.com
bbe75444d302d73114f2dc23cf5b7892d1e85103
1f007dc6cf88326f67bdba951dd35e2903bbe63d
/first.py
db1cb219e4d2e204e309dff65617843a800f1857
[]
no_license
SemihBogaz/voice_command
18775c0d3a8549a4c1515dc525e89d309ad1e685
c582274782c2f9b4eeb6bba090e7ba0b9ce66b8f
refs/heads/master
2020-07-05T04:09:44.318374
2019-08-15T09:57:36
2019-08-15T09:57:36
202,517,297
0
0
null
null
null
null
UTF-8
Python
false
false
1,011
py
import speech_recognition as sr from os import system as command import voice_command.shrink as func # Record Audio r = sr.Recognizer() with sr.Microphone() as source: command("cls") print("Say something!") audio = r.listen(source) flag = False # Speech recognition using Google Speech Recognition try: ...
[ "sbogazq@gmail.com" ]
sbogazq@gmail.com
65604f5a94139165f1c75b887f7aa3d6cb7948f1
cc648007dc85e231af7de608f52dd6782aa3f067
/tests/keras/applications/applications_test.py
909e99cf03d7feb9c6130bc66ce0a0429ba34bb1
[ "MIT" ]
permissive
reemaRaven/AgeGenderRecognitionPython
1eb02547d5aabeead8ab1b978280da4a6bf8d18a
bdd749685840822350687618aaadad0a5d7d84ea
refs/heads/master
2022-10-05T11:07:28.855190
2022-09-15T15:59:45
2022-09-15T15:59:45
135,426,703
2
0
null
null
null
null
UTF-8
Python
false
false
5,453
py
import pytest import random import os from multiprocessing import Process, Queue from keras.utils.test_utils import keras_test from keras.utils.test_utils import layer_test from keras.models import Sequential from keras import applications from keras import backend as K pytestmark = pytest.mark.skipif( os.environ...
[ "noreply@github.com" ]
reemaRaven.noreply@github.com
c08c9abb26256773f2ac17246a3403395039613f
b16c4781907e4db38b9c153dea3d72fb4bf05e42
/gui.py
fdc3eeaf7b2472a864f2af34208ac64a99d97e5d
[]
no_license
conformist-mw/underground-chat
1dc0d89395d4b379d6d68cd5c53240c645e0f9e7
20bdb7588ebe268efec216508dc4fa041f0c0e67
refs/heads/master
2023-07-08T11:01:58.101500
2021-08-19T20:48:15
2021-08-19T20:48:15
389,193,294
1
0
null
null
null
null
UTF-8
Python
false
false
4,473
py
import asyncio import tkinter as tk from enum import Enum from tkinter.scrolledtext import ScrolledText class TkAppClosed(Exception): pass class ReadConnectionStateChanged(Enum): INITIATED = 'устанавливаем соединение' ESTABLISHED = 'соединение установлено' CLOSED = 'соединение закрыто' def __st...
[ "conformist.mw@gmail.com" ]
conformist.mw@gmail.com
4fe25f4e150b0ce7ed9875fb9d679c0ed7a8c3e4
9889523fe76d03aa90e4e692ce28db9ba1e4ad4a
/f-anoGAN/encode2.py
108b7a4ee200cc0422cf52e8ecef44ae0b61fbe0
[]
no_license
zhangziquan/Anomaly-Detection
d7014333409f5adf652f3beb060f4d417121163a
df2d548b84326a253ae03efa1b928039ff73b9de
refs/heads/master
2022-10-05T08:49:51.334663
2020-05-24T06:55:57
2020-05-24T06:55:57
266,486,511
0
0
null
null
null
null
UTF-8
Python
false
false
2,018
py
import argparse import torch from torch import optim from loader import get_loader from models import Discriminator, Generator from Etrainer2 import Trainer from utils import PlotHelper from wgan64x64 import GoodGenerator, GoodDiscriminator, Encoder def main(): torch.random.manual_seed(0) torch.backends.cud...
[ "ziquanzhang@126.com" ]
ziquanzhang@126.com
0d6f16c184e2ce478047763e87b14aba93f6cafa
2b86301d5ad3fecaa5a300cabfe6b4dfc82b78ed
/venv/Lib/site-packages/tornado/web.py
bb2684eb81a0c172288230f3ed046e2ddf4ec3c2
[ "MIT" ]
permissive
sserrot/champion_relationships
72823bbe73e15973007e032470d7efdf72af3be0
91315d6b7f6e7e678d9f8083b4b3e63574e97d2b
refs/heads/master
2022-12-21T05:15:36.780768
2021-12-05T15:19:09
2021-12-05T15:19:09
71,414,425
1
2
MIT
2022-12-18T07:42:59
2016-10-20T01:35:56
Python
UTF-8
Python
false
false
138,290
py
# # Copyright 2009 Facebook # # 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 agreed to in writing, s...
[ "sserrot@users.noreply.github.com" ]
sserrot@users.noreply.github.com
76b5f00b33e1e1c14706ac0d49c7aa81282dd5c1
773c18637235a55dc3b2c716338f2d1bbe2b1672
/migue/migue/urls.py
6d56d1ffd7ba49547d58bce2082a68e9e60b07c2
[]
no_license
ElDumah/fase2GonzalezVaras008V
f0e28058ee1df986d6fd65286ea8397ca535c5be
ea1c798c338fffa49b94c222f7e50b5dec3b31c0
refs/heads/main
2023-01-13T04:09:57.948179
2020-11-06T03:09:34
2020-11-06T03:09:34
310,417,851
0
0
null
null
null
null
UTF-8
Python
false
false
985
py
"""migue URL Configuration The `urlpatterns` list routes URLs to views. For more information please see: https://docs.djangoproject.com/en/3.1/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 v...
[ "felipegg140@gmail.com" ]
felipegg140@gmail.com
74424ac3e6d93d62acb824c11f9c1c939a91b9e4
285085d0a6388c9fab93ad1863403d60c3b07141
/LeetCode/有效的括号.py
e3c0d6d1562ded4346cc68811f07324799ae73fc
[]
no_license
winstonfy/python_life
8fa978bd4f9371bd0c51894a72453971b230a955
79e238403419cba922b3fb9cc24571398d7b14cd
refs/heads/master
2022-04-19T00:16:35.476738
2020-04-16T07:19:08
2020-04-16T07:19:08
256,140,529
1
0
null
null
null
null
UTF-8
Python
false
false
292
py
#__author__ = 'Winston' #date: 2020/2/22 def isValid(s): dic = {'{': '}', '[': ']', '(': ')', '?': '?'} stack = ['?'] for c in s: if c in dic: stack.append(c) elif dic[stack.pop()] != c: return False return len(stack) == 1 aa=isValid('([)]') print(aa)
[ "withong_1314@163.com" ]
withong_1314@163.com
b9c002459698dfe723cf7ba8bd912fba77f75fde
9ecc9daad0ed04264a3ab1e33e13631c297f5e4c
/backend/migrations/0001_initial.py
c20dff19f441d342a5950c4e48b1fe8c40b2713c
[]
no_license
denisqa2h/django_tractorsPTZ
4822272ed317b104b132a9a5c1c80e44be795f0b
b1d6fccbcf626b9750078a5b14aba29e207ada90
refs/heads/main
2023-09-02T11:43:31.577469
2021-11-23T20:16:58
2021-11-23T20:16:58
431,236,560
0
0
null
null
null
null
UTF-8
Python
false
false
2,513
py
# Generated by Django 3.2.8 on 2021-11-18 19:39 from django.conf import settings from django.db import migrations, models import django.db.models.deletion class Migration(migrations.Migration): initial = True dependencies = [ migrations.swappable_dependency(settings.AUTH_USER_MODEL), ] ope...
[ "denisqa2h@yandex.ru" ]
denisqa2h@yandex.ru
77388ef09898130d90f9cc56214733cdd9160d06
4b60c34ba37e7c0611257e7934791fb43d01e254
/src/Lib/pysparseSuperLU.py
2524ee2635966f53d120c079893e98ac0bbfb303
[]
no_license
regmi/pysparse
0913ff69b5d07b58c20deb5b6f44caeaa8498d64
ebc2ad045382c69e6bb41217c9431e51736ac4a0
refs/heads/master
2021-01-01T16:20:10.075871
2010-04-09T22:56:51
2010-04-09T22:56:51
null
0
0
null
null
null
null
UTF-8
Python
false
false
5,502
py
""" A framework for solving sparse linear systems of equations using an LU factorization, by means of the supernodal sparse LU factorization package SuperLU ([DEGLL99]_, [DGL99]_, [LD03]_). This package is appropriate for factorizing sparse square unsymmetric or rectangular matrices. See [SLU]_ for more information. ...
[ "regmisk@gmail.com" ]
regmisk@gmail.com
db4c2df17484709e6b6cdd077329a69a586eaeef
1d6f5f94870cd7959848235c2dabc408e9f71ce8
/test/untitled.py
edcbd32ef0bad40556d997e361e2ce702cc43b4f
[]
no_license
Raphael-Nyphalem/eclidien
1d0af79bc2313a86b6c815d42f621c6499690877
0423627133f1e77cced8967adc591720d232dd47
refs/heads/master
2021-04-04T13:14:48.095085
2020-03-31T08:14:22
2020-03-31T08:14:22
248,460,495
1
0
null
null
null
null
UTF-8
Python
false
false
2,363
py
#!/usr/bin/python3.4 # -*- coding: utf-8 -*- import math import csv import numpy as np import matplotlib.pyplot as plt from mpl_toolkits import mplot3d import pylab def import_tableau_float_csv(filename): tableau_valeur=[] spreadsheet = csv.reader(open(filename, 'r'), delimiter=';') for row in spreadsh...
[ "r8louisl@enib.fr" ]
r8louisl@enib.fr
d9742b6ce4662d7db2e2be406cb2ba38ea2c387a
de6e0b0c90cdbaa268da6780821152e8c889fe28
/layers/NCF.py
0848feb6d1a7a10a5e930dfabe3597df742eddf1
[]
no_license
kihongmin/NCF
8e1a841fef4149986fe482944552bcaa69c3d4ba
f235f6ff3421ccb8c6a05c3c3cd774ddb38b3909
refs/heads/master
2022-11-09T09:12:53.411409
2020-06-30T05:58:49
2020-06-30T05:58:49
270,998,511
1
0
null
null
null
null
UTF-8
Python
false
false
2,432
py
import tensorflow as tf from tensorflow.keras import Input,Model from tensorflow.keras.layers import Embedding,Flatten,Concatenate, Dense, Layer class GMF_layer(Layer): def __init__(self,n_plylst,n_items,embed_dim,name='GMF_layer',**kwargs): self.mf_embedding_plylst = Embedding(input_dim=n_plylst, output_d...
[ "minkh93@gmail.com" ]
minkh93@gmail.com
9824125bb2e5cc4986006dddbe094514e3617d37
163bbb4e0920dedd5941e3edfb2d8706ba75627d
/Code/CodeRecords/2975/60678/236000.py
f7743095883cfe2fd3eb8728f8d5bdd8c431f04d
[]
no_license
AdamZhouSE/pythonHomework
a25c120b03a158d60aaa9fdc5fb203b1bb377a19
ffc5606817a666aa6241cfab27364326f5c066ff
refs/heads/master
2022-11-24T08:05:22.122011
2020-07-28T16:21:24
2020-07-28T16:21:24
259,576,640
2
1
null
null
null
null
UTF-8
Python
false
false
92
py
a=input() j=0 b=[]; for i in a: b.append(i) b.sort() a='' for i in b: a=a+i print(a)
[ "1069583789@qq.com" ]
1069583789@qq.com
f3403aedc03d17a697f9c7b08f4240e87c455671
72ab4456e58990937e0bace6bc9f2e7a4075aaaf
/session/main.py
e9c99414d025cce2e74ca861c7c3e08a74e2b3d3
[]
no_license
saviocamacam/minicurso-flask
659af2575eef91b38dcebecb94d0caeaece1c327
b7ed618a4b25d0c8b3ef442fee570c0c3fa6bc1d
refs/heads/master
2021-01-20T21:19:57.896336
2017-08-29T19:50:06
2017-08-29T19:50:06
null
0
0
null
null
null
null
UTF-8
Python
false
false
104
py
from flask import Flask, session, redirect @app.route("/") def index(): if 'username' in session:
[ "a1648160@debian9-dacom.dacom" ]
a1648160@debian9-dacom.dacom
7bb39738e94a5b5e9dc321265e095891bac887f7
edd0ad7c9956c30feee1c6e9bfccc71226c55d55
/FlaskerNews/FlaskerNews/views/vote.py
a5056bbe6a53d20dbaebb0492b47da862963f08f
[]
no_license
plutokid/FlaskerNews
30761f1074e994b1f61f5c8fede77277a381dd86
99a145ab2d36b50517bb0eee20e1c80331996a4a
refs/heads/master
2020-07-12T09:56:09.642408
2015-04-10T03:41:25
2015-04-10T03:41:25
null
0
0
null
null
null
null
UTF-8
Python
false
false
443
py
from flask import Blueprint, g, redirect, url_for, session routes = Blueprint('vote', __name__) @routes.route('/vote/<int:link_id>') def vote(link_id): """ Increment the links votes by one :param link_id: int Id of the link :return: View """ if session.get('logged_in'): g.db.execute('U...
[ "rmcgr467@mtroyal.ca" ]
rmcgr467@mtroyal.ca
5e3f127541774244db776a2ad4ca2f70cd1d14b9
dfdbc9118742bc09d7c7fe6fe42f53b7d1d7977a
/spacegame_ii/parralax.py
3ef67de9c8ce5c05576be44f185131d62e7cf4e6
[]
no_license
602p/spacegame
d1c3a34233ed7c7128d5cbe4c470c168a84700ac
1350beeb6df2b65a0c041f512fa944cbae4dba2b
refs/heads/master
2021-01-10T19:28:19.220218
2015-04-27T20:37:14
2015-04-27T20:37:14
27,309,904
0
0
null
2015-04-20T15:12:11
2014-11-29T17:39:59
Python
UTF-8
Python
false
false
1,454
py
from __future__ import division import pygame, random import logging module_logger=logging.getLogger("sg.parralax") debug, info, warning, error, critical = module_logger.debug, module_logger.info, module_logger.warning, module_logger.error, module_logger.critical class StarfieldLayer: def __init__(self, density, col...
[ "louis@goessling.com" ]
louis@goessling.com
557b03cc273636b6aec6e63858471538c5db84b4
64f528739e65a5dfb8b085b9dac85584ed15833d
/batch_helpers/s3_helpers.py
86fafa9adc82969deb3e97affbf72553b0228c4e
[]
no_license
FredHutch/docker-mothur
e61da21fc4c1dce37c9a29b65f07719e6cab9ae5
b78b7867c1d2f5d6c99f80a4b6606740d88d899c
refs/heads/master
2018-11-11T19:18:59.436879
2018-08-22T18:39:20
2018-08-22T18:39:20
113,611,146
2
0
null
null
null
null
UTF-8
Python
false
false
3,242
py
#!/usr/bin/python """Functions that help with downloading or uploading files to S3.""" import os import boto3 import logging from exec_helpers import run_cmds from exec_helpers import fastq_to_fasta from sra_helpers import get_sra def s3_path_exists(s3_url): """Check to see whether a given path exists on S3.""" ...
[ "sam@fredhutch.org" ]
sam@fredhutch.org