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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
2582af6476aaa57b460d1979815cf654b2556508 | 6ab022b549cfd105cedb3acd84679a663b770103 | /home/migrations/0002_auto_20210123_0010.py | 5a25e027d92b06540a1c45f6fc30104fb125e3bf | [
"Apache-2.0"
] | permissive | d-shaktiranjan/WebifyTask | 2b358d6b80bbe723f10a8ebabeb0ff4f701a2c53 | 188c9519dd5d9fe406ed7ce4e27dd491240302da | refs/heads/main | 2023-04-23T17:07:38.930584 | 2021-05-18T05:48:10 | 2021-05-18T05:48:10 | 331,989,003 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,011 | py | # Generated by Django 3.1.4 on 2021-01-22 18:40
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('home', '0001_initial'),
]
operations = [
migrations.RemoveField(
model_name='alltask',
name='id',
),
... | [
"debatashaktiranjan@gmail.com"
] | debatashaktiranjan@gmail.com |
b6aedc802e87484a48e035f95f533be5d35b6c1d | 8d90e93d5c7c430bba840783efea760eb37d4f3c | /Sword Offer/31.py | bf77d964602d4c023a1a558211a271d34b9607f5 | [] | no_license | handsome-fish/Leetcode | a0639735d27979dc7c8c0a1e7fa381f17904b0ad | b3893a5cc6ff0f2311dcdef55766e3ba2a3ba812 | refs/heads/master | 2021-07-22T01:30:09.859679 | 2021-07-14T15:05:27 | 2021-07-14T15:05:27 | 178,343,527 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,240 | py | """
剑指 Offer 31. 栈的压入、弹出序列
输入两个整数序列,第一个序列表示栈的压入顺序,请判断第二个序列是否为该栈的弹出顺序。
假设压入栈的所有数字均不相等。例如,序列 {1,2,3,4,5} 是某栈的压栈序列,序列 {4,5,3,2,1} 是该压栈序列对应的一个弹出序列,
但 {4,3,5,1,2} 就不可能是该压栈序列的弹出序列。
示例 1:
输入:pushed = [1,2,3,4,5], popped = [4,5,3,2,1]
输出:true
解释:我们可以按以下顺序执行:
push(1), push(2), push(3), push(4), pop() -> 4,
push(5), pop() -> ... | [
"gitfish@163.com"
] | gitfish@163.com |
700e1bb227aa8d04f4608999e5cb91fc629ffc26 | 0bc1cf3ce50a035dc85b56e32bd930c91a8776c0 | /blog/migrations/0001_initial.py | 91ae6deba16376ca31124388427bb7421762a9a4 | [] | no_license | RiaLolwut/djangogirls | 7c2fa64a2824b48fbbafc2f980d654f511562063 | a81c14065bbf74ff04f5e8874b3acacc347651e9 | refs/heads/master | 2020-04-29T06:35:30.459881 | 2019-03-16T06:20:00 | 2019-03-16T06:20:00 | 175,921,534 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 987 | py | # Generated by Django 2.0.13 on 2019-03-16 03:10
from django.conf import settings
from django.db import migrations, models
import django.db.models.deletion
import django.utils.timezone
class Migration(migrations.Migration):
initial = True
dependencies = [
migrations.swappable_dependency(settings.AU... | [
"riaparishseo@gmail.com"
] | riaparishseo@gmail.com |
3d97b330f77024758577eaa3b15f7e554fac1016 | d880f73ae1b791f73789ab51916e5eb74c6c2a23 | /aiologger/filters.py | 87cbba86d9771928ce63e25b5a45686b14645b7b | [
"MIT"
] | permissive | decaz/aiologger | d16e651f1358416e51f84d4103fb037f39f085c8 | 94e9c126280d1ede315a6fc3531ac17c21a2c33a | refs/heads/master | 2020-05-01T05:00:02.343984 | 2019-03-03T16:57:51 | 2019-03-03T16:57:51 | 177,288,933 | 0 | 0 | MIT | 2019-03-23T12:56:44 | 2019-03-23T12:56:43 | null | UTF-8 | Python | false | false | 146 | py | import logging
class StdoutFilter(logging.Filter):
def filter(self, record):
return record.levelno in (logging.DEBUG, logging.INFO)
| [
"magalhaesmartins@icloud.com"
] | magalhaesmartins@icloud.com |
3b4b65765a6275e2b4fed60d9412aac3f7fb9665 | d12b59b33df5c467abf081d48e043dac70cc5a9c | /ixnetwork_restpy/testplatform/sessions/ixnetwork/quicktest/passcriteria_985f11fda90dc3b8dac84a4a881b8740.py | 6920d6cfe8478b76037b42d0c156e50d2daa5519 | [
"MIT"
] | permissive | ajbalogh/ixnetwork_restpy | 59ce20b88c1f99f95a980ff01106bda8f4ad5a0f | 60a107e84fd8c1a32e24500259738e11740069fd | refs/heads/master | 2023-04-02T22:01:51.088515 | 2021-04-09T18:39:28 | 2021-04-09T18:39:28 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 7,492 | py | # MIT LICENSE
#
# Copyright 1997 - 2020 by IXIA Keysight
#
# Permission is hereby granted, free of charge, to any person obtaining a copy
# of this software and associated documentation files (the "Software"),
# to deal in the Software without restriction, including without limitation
# the rights to use, copy, modify,... | [
"andy.balogh@keysight.com"
] | andy.balogh@keysight.com |
4eff2793d09f4ab95e340f10730da9548630656b | f348191ea2ee92f4154f9f2819dbc11ba209dc8c | /app.py | 74b0f6f02805b342507aef2101c130969aa6cbb6 | [
"MIT"
] | permissive | ish-u/sparrow | f9be3e6bcd2df4a655fc18f4938fe7c95f2f09c6 | 18fb031a96c5443e6922c3b7d54f79cc4eb141bf | refs/heads/master | 2020-12-03T12:08:21.958397 | 2020-01-05T09:58:24 | 2020-01-05T09:58:24 | 231,310,037 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,732 | py | from hashlib import md5
import urllib, hashlib
from datetime import datetime
from flask import Flask, escape, request, render_template, redirect ,session ,flash
import sqlite3
from passlib.hash import sha256_crypt
from functools import wraps
from flask_avatars import Avatars
def login_required(f):
@wraps(f)
def wra... | [
"anmolgupta520@gmail.com"
] | anmolgupta520@gmail.com |
4698d40ef6e587e24e8f464698a390215afa3948 | 115bf3b584b489f34167e5e9d98eb53a6c03044b | /libcrowbar/configs/cpplint.py | e60e94019c192b30e58b7b1c196a6d53fa8cb4a4 | [] | no_license | npcardoso/PhDThesis | fe094414d695cf64db100d23997c0e347e2dea14 | 16062572cfe6e234856325c2a8c9e4c88a335236 | refs/heads/master | 2021-01-16T21:29:21.888085 | 2018-10-26T18:22:32 | 2018-10-26T18:22:32 | 63,144,416 | 37 | 15 | null | null | null | null | UTF-8 | Python | true | false | 234,786 | py | #!/usr/bin/python
#
# Copyright (c) 2009 Google Inc. All rights reserved.
#
# Redistribution and use in source and binary forms, with or without
# modification, are permitted provided that the following conditions are
# met:
#
# * Redistributions of source code must retain the above copyright
# notice, this list of ... | [
"alexandrecperez@gmail.com"
] | alexandrecperez@gmail.com |
954591c4ca9b4b8c04d67211df68bdaf6f07a24a | fdf616efcf505843621f830879ca3ff44e296772 | /myproject/accounts/tests/test_view_signup.py | 2c58c0ae28411268e1e00d0e5742581d73da65ba | [] | no_license | dym0080/learn-django | 5cbab1c9696638ffe47a3335cf33d7638fe77523 | 2d9450098f516ed887de0a953b0945ee5047d9f5 | refs/heads/master | 2022-05-05T12:00:23.127079 | 2020-01-09T07:52:37 | 2020-01-09T07:52:37 | 228,332,281 | 0 | 0 | null | 2022-04-22T22:58:00 | 2019-12-16T07:53:45 | Python | UTF-8 | Python | false | false | 2,749 | py | from django.urls import reverse, resolve
from django.contrib.auth.models import User
# from django.contrib.auth.forms import UserCreationForm
from django.test import TestCase
from ..views import signup
from ..forms import SignUpForm
class SignUpTests(TestCase):
def setUp(self):
url = reverse('signup')
... | [
"308960474@qq.com"
] | 308960474@qq.com |
f26a1a8661049360f37f28aae77619d1416b9783 | 25d8dd91bcdb2ae02e260d81a4c6e79417ee213e | /hw/project/text_classification/mapreduce/knn/map.py | fd155d3551f0310add2108b0b3053e14538b4875 | [] | no_license | huhuk/FBDP | 4b885c2cccda24ffea4edcaad90e4495a6870819 | 95a4d3271c95d13db9ff1f7396177e34148bc970 | refs/heads/master | 2021-04-25T15:37:28.086901 | 2018-02-28T07:25:50 | 2018-02-28T07:25:50 | 109,667,459 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,021 | py | #!/usr/bin/python3
import sys
import pickle
import numpy as np
import scipy as sp
from sklearn.feature_extraction.text import TfidfVectorizer
k = 3
def load(filename):
f = open(filename, 'rb')
obj = pickle.load(f)
f.close()
return obj
# count_vec = load('./tfidf.model')
x_train = load('./x_train.mod... | [
"huhu_qs@163.com"
] | huhu_qs@163.com |
4494b119785b3c4ad00149d3407d60b1f571ca22 | 4c7e44b17782f1f1823238cf874ff298900d98ef | /config.py | c2878ccab1deee984f877ba8569500e6dc40ab83 | [] | no_license | dynamodenis/blog-arena | c2195262f2dec199b159e6383a2b5f14a4046799 | 10be4fffe63c061b3c67c664458b45eee00e8b95 | refs/heads/master | 2022-06-29T18:36:06.261840 | 2020-05-09T07:10:48 | 2020-05-09T07:10:48 | 262,506,328 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 235 | py | class Config:
pass
class ProdConfig(Config):
pass
class DevConfig(Config):
DEBUG=True
class TestConfig(Config):
pass
config_options={
'development':DevConfig,
'production':ProdConfig,
'test':TestConfig
} | [
"dmbugua66@gmail.com"
] | dmbugua66@gmail.com |
b6061c81fb9c14cfe8a4b4a93e891fc90327de11 | 38444340385ab91a9148b10db3a981246b4496ff | /app/forms.py | cf23a56282b7fbe1de24973ded5f0f3faf55254e | [] | no_license | dannzii/info3180-lab3 | e27d7e82b18c27402f4e32ff2c8857f72b728b44 | 9a8c14c83ac8bad1c1895e05ebf03430caed6464 | refs/heads/master | 2020-04-22T06:15:11.017922 | 2019-02-14T20:28:16 | 2019-02-14T20:28:16 | 170,184,314 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 430 | py | from flask_wtf import FlaskForm
from wtforms import StringField, TextAreaField
from wtforms.validators import DataRequired, Email
class ContactForm(FlaskForm):
name = StringField('Name', validators=[DataRequired()])
email = StringField('Email', validators=[DataRequired(), Email()])
subject = StringField('... | [
"34076867+dannzii@users.noreply.github.com"
] | 34076867+dannzii@users.noreply.github.com |
0a884db25123476946a8d29963a9b291c969e426 | aa89d7e6dfcf1da91fd5dfed6b966f342c24cc16 | /p.py | b4757ebf5434fb383faf678e34598c858773c642 | [] | no_license | nanfeng-web/mine-pictures | 6aad709904b07acd288603f793759b707e9f4b04 | 7a7cd2f3de63feacac7fd6824b9fc030eb8e23b3 | refs/heads/main | 2023-08-07T09:52:05.801232 | 2021-10-01T09:02:44 | 2021-10-01T09:02:44 | 399,729,566 | 1 | 0 | null | 2021-09-23T23:58:45 | 2021-08-25T07:29:52 | null | UTF-8 | Python | false | false | 149 | py | import requests
response = requests.get("https://api.nmb.show/1985acg.php")
file = open("paqu","wb")
file.write(response.content)
file.close()
| [
"noreply@github.com"
] | nanfeng-web.noreply@github.com |
179abd03f2ae118cfb2b85da6360707ead06748a | 1b10b46afdf24b4ce4f2d57e315e09e17c0a9c2b | /winding_helix.py | 51d16cff03b2651355fadbdb7bd2a560ed49af5b | [] | no_license | tthtlc/sansagraphics | e6aad1541dabc85b3871e1890c9f79aa33055355 | 113e559fb128c93ed1f02155ec74e76878b86c37 | refs/heads/master | 2021-01-15T15:52:35.126301 | 2020-03-30T16:58:57 | 2020-03-30T16:58:57 | 15,507,431 | 2 | 1 | null | null | null | null | UTF-8 | Python | false | false | 3,415 | py | # Pygame/PyopenGL example by Bastiaan Zapf, Apr 2009
### From http://python-opengl-examples.blogspot.sg/
#
# Draw an helix, wiggle it pleasantly
#
# Keywords: Alpha Blending, Textures, Animation, Double Buffer
from OpenGL.GL import *
from OpenGL.GLU import *
from math import * # trigonometry
import pygame # just t... | [
"htmldeveloper@gmail.com"
] | htmldeveloper@gmail.com |
9a29224011fd3cca3b90735ed27fe0b1c8ed6bb9 | 699b767e854162231914f4bce177382a9880f221 | /LinkedList/AddTwoNumbers.py | 7f503cc9821d09b900119e244d002187998d27d2 | [] | no_license | XiwangLi/LeetcodeArchive | a66dc32f0a7248ff05cbe09dd0095191fefc602f | 3de4a48f9f7de2970cf02751c1620281bae0947d | refs/heads/master | 2021-04-28T02:57:55.604505 | 2019-02-28T01:07:51 | 2019-02-28T01:07:51 | 122,128,291 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 540 | py | class Solution(object):
def addTwoNumbers(self, l1, l2):
"""
:type l1: ListNode
:type l2: ListNode
:rtype: ListNode
"""
head=ListNode(0)
curr=head
val=0
ten=0
while l1 or l2 or val:
if l1:
val+=l1.val
... | [
"xiwangli2010@gmail.com"
] | xiwangli2010@gmail.com |
23c8d69f239e68820d41f4185adcd5f0106ad42c | 799a1bbafe9ceb6fcf6530d176633a7f97980dad | /rosExploration/rrt_exploration/scripts/functions.py | ff7a90d07e7e15a5893aa3a916f02fcd97deeea5 | [
"MIT"
] | permissive | dingjianfeng/rosExplorationNew | e6598ed4b0907d7bc8740acf4ea05d8bae9a1524 | 53b8b6bcdd3372c5e6fbaecae9f66f266dcf70c0 | refs/heads/master | 2021-09-01T06:38:27.366634 | 2017-12-25T11:45:22 | 2017-12-25T11:45:22 | 115,333,542 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 7,206 | py | #!/usr/bin/env python
#coding=utf-8
import rospy
import tf
from numpy import array
import actionlib
from move_base_msgs.msg import MoveBaseAction, MoveBaseGoal
from nav_msgs.srv import GetPlan
from geometry_msgs.msg import PoseStamped
from numpy import floor
from numpy.linalg import norm
from numpy import inf
#_______... | [
"623395241@qq.com"
] | 623395241@qq.com |
80540c5cae67b520926b96635014c4e26aefccd2 | 2f1f7d0711e054a96f10e849bdac5efcb45c4f39 | /deps/v8/SConstruct | c7b6cdd9f20818e0de94545202ba89fd4188bb46 | [
"BSD-3-Clause",
"MIT"
] | permissive | skyformat99/lbtt | ef25d0054ec539d6d77e25e5b0ce8febc4fdc0e8 | 6cf6418a639cc339615c3ecc6e78e1939a9cc1cb | refs/heads/master | 2021-05-27T18:13:03.711188 | 2009-09-12T01:17:41 | 2009-09-12T01:17:41 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 28,173 | # Copyright 2008 the V8 project authors. All rights reserved.
# Redistribution and use in source and binary forms, with or without
# modification, are permitted provided that the following conditions are
# met:
#
# * Redistributions of source code must retain the above copyright
# notice, this list of conditi... | [
"lucas@l3f.org"
] | lucas@l3f.org | |
30bf23cbb12bb828a340c74a0d91fa08a504b30e | 777e23a382d7dd84232795a929c4004c768d1837 | /www/orm.py | beb91d24c8bdbfe88c890b3f0be0725751427fef | [] | no_license | Altkaka/Altkaka-Web | 542126c2ec72453fb1ca8495892ef1bd4282f2e7 | 64773d579aa3097a1b3af2d071358105f388cf04 | refs/heads/master | 2021-05-04T19:14:23.648750 | 2017-10-12T08:40:16 | 2017-10-12T08:40:16 | 106,657,692 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 13,659 | py | import logging; logging.basicConfig(level = logging.INFO)
import asyncio
import aiomysql
from myapis import APIError
from myapis import *
async def create_pool(loop, **kw):
logging.info('create database connection pool...')
global __pool
__pool = await aiomysql.create_pool(
host = kw.get('host','l... | [
"dongjiwukl@163.com"
] | dongjiwukl@163.com |
796a852c4ccdd0bc598e0b373567c854094d0cfd | 45fb509bf21ac003a40fd404d7c0cc995e741672 | /perceptron_algorithm/perceptron_algo_2nd_method.py | 59807adb1a2c854110b8644f2b103f49899851f4 | [] | no_license | FarahAgha/MachineLearning | 0d17511f7495190dfd2368554428208c7d0eadf7 | cf385135e016a63fb16bd326586fcd8ecb3c4355 | refs/heads/master | 2021-01-04T01:03:08.810401 | 2020-03-15T18:42:16 | 2020-03-15T18:42:16 | 240,314,331 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,011 | py | # Perceptron Algorithm perceptron_algo_2nd_method.py
# See https://medium.com/@thomascountz/19-line-line-by-line-python-perceptron-b6f113b161f3 for details.
import numpy as np
class Perceptron(object):
def __init__(self, no_of_inputs, threshold=100, learning_rate=0.01):
self.threshold = threshold
... | [
"you@example.com"
] | you@example.com |
affeefebfe3fea12f782e19ec9b4436fcfec1e64 | 8489a961a13492fea2ef76f18b86fa2ecaec93c2 | /web_app_interface/marfSite/manage.py | 67388189c584ba2d010e526d7c135676b6f18c5e | [] | no_license | kavanomo/teamMarf | 84ff8496488cc8f27a997fddbd550798ee6218d4 | 461d23144d26e8836e04e6c930a961fccef28465 | refs/heads/master | 2020-03-30T05:14:15.681749 | 2019-03-15T03:33:35 | 2019-03-15T03:33:35 | 150,788,570 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 540 | py | #!/usr/bin/env python
import os
import sys
if __name__ == '__main__':
os.environ.setdefault('DJANGO_SETTINGS_MODULE', 'marfSite.settings')
try:
from django.core.management import execute_from_command_line
except ImportError as exc:
raise ImportError(
"Couldn't import Django. Are... | [
"robbie.windsor+git@gmail.com"
] | robbie.windsor+git@gmail.com |
f85417abce36ad169336e4c143d0ed7ba2a666ea | 1082d5cde908e101c51f69923212dcae4b4b60f4 | /examples/sub_menu.py | 9d7901f2f97b295d736199ba1b9a578957e289d8 | [
"MIT"
] | permissive | SaxonRah/UnrealEnginePython | 88039c62024d01672138c4adeecac0fc9729bed0 | d5f3b2e7a42209af31cbbd47377633e8d452439c | refs/heads/master | 2021-01-04T23:56:44.556697 | 2020-02-16T00:38:43 | 2020-02-16T00:38:43 | 240,805,780 | 7 | 1 | MIT | 2020-02-16T00:03:20 | 2020-02-16T00:03:19 | null | UTF-8 | Python | false | false | 1,313 | py | import unreal_engine as ue
def open_submenu001(builder):
builder.begin_section('submenu001', 'i am a tooltip')
builder.add_menu_entry('sub_one', 'tooltip', lambda: ue.log('hello from submenu001'))
builder.add_menu_entry('sub_one_2', 'tooltip 2', lambda: ue.log('hello again'))
builder.end_section()
def... | [
"roberto.deioris@gmail.com"
] | roberto.deioris@gmail.com |
0dd2cef3dc56c4a4f8d361b8c08ba8662f40f907 | 1fd5f886a0cf83d30e95792036ffbafc2d3d12fe | /utils/affichage.py | a6992e28990667e0b213ae69265871a69cc8ca05 | [] | no_license | constance-scherer/PLDAC_Recommandation_analyse_sous_titres | 9a2358bdf4b564bceccedd9588f7f4d2cb8e8e67 | 92106d497ffceb65df35d3884dec1072913ce8d1 | refs/heads/master | 2020-04-20T06:59:08.606057 | 2019-05-29T10:50:21 | 2019-05-29T10:50:21 | 168,699,380 | 4 | 0 | null | 2019-02-10T16:42:26 | 2019-02-01T13:11:40 | Jupyter Notebook | UTF-8 | Python | false | false | 524 | py | #!/usr/bin/env python3
# -*- coding: utf-8 -*-
import pandas as pd
def get_hist(df, x_axis, y_axis, titre, colour, font_size=None, horizontal=False):
if horizontal:
hist = df.plot.barh(x=x_axis, y=y_axis, color=colour, title =titre, fontsize = font_size, edgecolor = "none").get_figure()
else:
h... | [
"amina.djelloul@hotmail.fr"
] | amina.djelloul@hotmail.fr |
db93795161562c704ef128162efea62145d2f060 | 0b80b985d83f9999658f0039472af20eec97f60d | /dl_code.py | b7742e3308dd4d4b5a68b20cf86e523350536631 | [] | no_license | sahilm142/imdb-reviews-analysis | 83955edc362fea056b5b01270f0936118d9d6da5 | 0f19fd0d02c3b734936b14f569d85f5a47e16c53 | refs/heads/master | 2020-05-15T12:18:33.109597 | 2019-04-19T20:38:03 | 2019-04-19T20:38:03 | 182,245,570 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,094 | py | # -*- coding: utf-8 -*-
"""
Created on Thu Mar 7 11:30:32 2019
@author: Sahil
"""
import numpy as np
import pandas as pd
import csv
def create_dataset(folder_name,type_rev):
'''
Column names
0: Type of review from top 250s 1: TV 2: Movies
1: Serial no of type 0 in top 250
2: Ra... | [
"sahil.mansoori.143@gmail.com"
] | sahil.mansoori.143@gmail.com |
80830d2c4527373672b28a60f6897f9622dbb64d | 4b2df7b62246133fd3c8af2529f6544dcf2b4350 | /pushups/migrations/0005_auto_20181011_1118.py | b591fed36590ad62240012ec288faed71fe7cbe2 | [] | no_license | MrMacchew/LOL_CTS | 24b0904f2a4b2934d0c386511c269684cfe3b3ca | cf9c7e434d73365aded766ac8703cb02ddd06104 | refs/heads/master | 2020-04-01T03:02:19.267620 | 2018-10-20T07:51:37 | 2018-10-20T07:51:37 | 152,806,859 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 390 | py | # Generated by Django 2.1.1 on 2018-10-11 17:18
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('pushups', '0004_auto_20181011_1113'),
]
operations = [
migrations.AlterField(
model_name='match',
name='accountId',
... | [
"mattcain@weber.edu"
] | mattcain@weber.edu |
84eeb4e216661d1b5592535c6727d2131a0709a8 | 5c84c379978ac4c663d6193ea2e4e156f1fc0922 | /hard/149_maxpoints_on_a_line.py | ed5bf69070d34a3ddba151cc7ec4590f1eb836f8 | [] | no_license | nraghuveer/leetcode | a46483a9fd7f990410d6b9132c618e5d54baf9a7 | ca045ce2c6d23fb8f92ea9871565b21cbdbeef19 | refs/heads/master | 2021-07-01T15:43:43.249587 | 2020-10-15T17:47:38 | 2020-10-15T17:47:38 | 180,434,748 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,806 | py | # https://leetcode.com/problems/max-points-on-a-line/
# using slope ?
# if two points have same slope => colinear
# calculate slope for n points with n - 1 points => O(pow(n,2)) => not good
from collections import defaultdict
from typing import List
def gcd(x,y):
while y:
x, y = y, x % y
return x
c... | [
"raghuveernaraharisetti@gmail.com"
] | raghuveernaraharisetti@gmail.com |
1a406e49cacab5c4dcd0d7e60c97c70a3b1a7a36 | bb05e1fafef1a62b85d5c97f10c9557cf7a240cc | /task_07_01.py | 5bf2d6e493ddc44f970bb650a0474271f3285a79 | [] | no_license | Nafani4/Home_work | 3bbc192dc6a43c40fd0358dfec863241e7b3ab96 | 69ce5d4321b3fc6b4bf4db7191912c3d4f4f8907 | refs/heads/master | 2021-05-16T03:31:23.457108 | 2017-11-26T21:11:30 | 2017-11-26T21:11:30 | 105,476,626 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 199 | py | def fibonacci (num):
x, y = 0, 1
for i in range(num):
x, y = y, x + y
yield x
if __name__ == '__main__':
print(fibonacci(10))
for i in fibonacci(10):
print(i) | [
"grebennikov.mikhail@gmail.com"
] | grebennikov.mikhail@gmail.com |
c9830ab4f029b375f6bd3a3f24a0a151fc6d831a | 0454d50b12960ef3a4a1f101f6d3bee585c7cfe9 | /tests/parser/test_lieshu.py | 99032d9cec5ead06d147eba826352df9a8959c42 | [] | no_license | Syhen/hmqf_crawler_hy | 7a99c05d1ac87bc293872aeb5efec450db3fb689 | 80508040340d1c5a9fd5192e2f5f623fd77cac08 | refs/heads/master | 2021-09-19T23:31:38.730466 | 2018-08-01T09:51:40 | 2018-08-01T09:51:40 | 111,872,551 | 1 | 3 | null | 2018-01-05T10:07:00 | 2017-11-24T03:36:46 | Python | UTF-8 | Python | false | false | 1,586 | py | # -*- coding: utf-8 -*-
"""
create on 2017-11-27 上午11:15
author @heyao
"""
import json
from nose.tools import assert_list_equal, assert_is_instance, assert_dict_equal, assert_equal
from content_market.parser.lieshu import Lieshu
class TestLieshu(object):
def setUp(self):
self.lieshu = Lieshu()
de... | [
"lushangkun1228@hotmail.com"
] | lushangkun1228@hotmail.com |
c4bbebeeaa1fede9542e856ca68e24409905d33f | c0f808504dd3d7fd27c39f1503fbc14c1d37bf9f | /sources/scipy-scipy-414c1ab/scipy/io/tests/test_wavfile.py | 266775ecd99e28e8010c480d95ff5fce9e266339 | [] | no_license | georgiee/lip-sync-lpc | 7662102d4715e4985c693b316a02d11026ffb117 | e931cc14fe4e741edabd12471713bf84d53a4250 | refs/heads/master | 2018-09-16T08:47:26.368491 | 2018-06-05T17:01:08 | 2018-06-05T17:01:08 | 5,779,592 | 17 | 4 | null | null | null | null | UTF-8 | Python | false | false | 2,146 | py | import os
import tempfile
import warnings
import numpy as np
from numpy.testing import assert_equal, assert_, assert_raises, assert_array_equal
from numpy.testing.utils import WarningManager
from scipy.io import wavfile
def datafile(fn):
return os.path.join(os.path.dirname(__file__), 'data', fn)
def test_read_1... | [
"georgios@kaleadis.de"
] | georgios@kaleadis.de |
f9dd6d91e8aaee9919ed20cb74c14fc6f2d22c8b | 44c81d8cc9c148c93cf9a77faec345693059c973 | /fetch.py | 568adf1e9271c6ebe976f93a3b0c8306a2ea428a | [] | no_license | neoatlantis/currency-data | 26566a5131b814f324153db451ae9f879fda9b72 | c19bc94d6d6ba6706f625e94e176b77bee455b04 | refs/heads/master | 2020-06-10T19:02:58.973856 | 2016-12-08T06:35:46 | 2016-12-08T06:35:46 | 75,902,576 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,231 | py | #!/usr/bin/env python
import os
import time
import requests
import shelve
import sys
BASEPATH = os.path.realpath(os.path.dirname(sys.argv[0]))
filepath = lambda *i: os.path.join(BASEPATH, *i)
# check for api key
try:
apikeyFilepath = filepath('apikey')
apikey = open(apikeyFilepath).read().strip()
except:
... | [
"contact@chaobai.li"
] | contact@chaobai.li |
8dfab12c043371b1ac8d6e3cf94c374f2d82fae4 | bff707c5c0046350cc5a8f3d76b37c8403059380 | /mysite/blog/migrations/0015_auto_20180831_2354.py | afb7c4fe8e7fdba1178521619a9d5e686c9ae0e2 | [] | no_license | 0xArt/PersonalSite | 4c54259e72e3ef5971ad85490ea536e45b7603da | 02b092477fa69b78aa813398c6d18a79b94a7f97 | refs/heads/master | 2020-04-05T16:24:21.044320 | 2019-04-04T00:51:54 | 2019-04-04T00:51:54 | 157,010,755 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 383 | py | # Generated by Django 2.0.6 on 2018-09-01 06:54
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('blog', '0014_auto_20180831_2352'),
]
operations = [
migrations.AlterField(
model_name='post',
name='summary',
... | [
"artinisagholian@gmail.com"
] | artinisagholian@gmail.com |
d77e5c51f77650cf17fab3e34a6d2b3c30310516 | 7672706c2d285a6eef5689381eef56dc3d6e779c | /assignment4_4.py | 26bd85ba5395ef34dd76a3c0e7795f494e26d6ae | [] | no_license | AreRex14/netprog-assignment | 3fbf2f949d774f3a957297d5cb11f18b94e00815 | 1057bc2485a98c260320dc45c01c91a3e3a6ef18 | refs/heads/master | 2020-12-26T21:27:11.902369 | 2020-02-01T17:29:00 | 2020-02-01T17:29:00 | 237,649,985 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 656 | py | import dns.resolver
import json
def MX_lookup(host):
answers = dns.resolver.query(host, 'MX')
servers = []
for rdata in answers:
servers.append((rdata.preference, rdata.exchange))
servers_pref_ascend = sorted(servers, key=lambda server: server[0])
return servers_pref_ascend
def JSON_lookup(host):
answers... | [
"arerifxynwa@gmail.com"
] | arerifxynwa@gmail.com |
117fc293b953a162050b93cb0bc575cb49d741c8 | 30846dedeb87be7ba9894427122f6263fc99e67f | /courseSelection/urls.py | 32ccc9fee82c3d18a272e7fc0c3b235ddc065d70 | [] | no_license | nslam/jwsys | 003f2f6e5e4942182f6c2f9c35237a6127bc8015 | c6958e128109cdffd830d69fc3a9d0bae0fac3d3 | refs/heads/master | 2021-01-23T05:56:05.059336 | 2019-03-09T15:25:54 | 2019-03-09T15:25:54 | 93,001,593 | 4 | 8 | null | 2017-07-05T02:10:46 | 2017-06-01T00:50:34 | HTML | UTF-8 | Python | false | false | 1,825 | py | from django.conf.urls import url
from django.views.generic import RedirectView
from .views import student_views, instructor_views, manager_views, index_views
urlpatterns = [
url(r'^$', index_views.index),
# manager
url(r'^manager$', RedirectView.as_view(url='manager/index')),
url(r'^manager/index$', mana... | [
"hanfei.ren@foxmail.com"
] | hanfei.ren@foxmail.com |
3a2925faeb0eaad7e3a73932dba72170f81fdccb | 26629871a6c7eaa82dcf1d7f1adf8cae2ab24991 | /DressitUp/Home/views.py | fccfbe31e43ed74692670d210e631723d6a742cb | [] | no_license | RonakNandanwar26/DressitUp | 2421fb62ad5e47be36f66dc3920cafe49ee43eb9 | 4e7ac01a9411ad2b767efb2a80ad5dc6344449ab | refs/heads/master | 2022-11-30T23:14:38.989536 | 2020-07-11T12:17:08 | 2020-07-11T12:17:08 | 278,849,777 | 0 | 0 | null | 2022-11-18T10:56:10 | 2020-07-11T11:39:51 | Python | UTF-8 | Python | false | false | 2,563 | py | from django.shortcuts import render, redirect, get_object_or_404
from .forms import ContactForm, ProfileForm, UserForm
from django.contrib import messages
from django.core.mail import send_mail
from DressitUp import settings
from products.forms import ProductForm
# Create your views here.
def home(request):
templ... | [
"ronaknandanwar1999@gmail.com"
] | ronaknandanwar1999@gmail.com |
f2ebf591f742eb1433a9072d3c9826170e1cb8cd | 2f73a3d4daac2aa2c38c3443b4f5555c49faa1c8 | /Data.py | d8e917bf4fa96358299cdd241123799362a03919 | [] | no_license | 18021009/project | 656b6c8f9a0120c1185493d04405660895db93e9 | 0133f412e50e3dadd13bd0028832babf846070e5 | refs/heads/main | 2023-05-07T17:08:41.529766 | 2021-06-01T04:06:38 | 2021-06-01T04:06:38 | 372,696,937 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,718 | py | from math import nan
from os import name
from Station import station
import numpy as np
import datetime
import pandas as pd
from Map import map
from Point import point
# standardline date data.csv to college.csv
# ds = pd.read_csv('data.csv')
def changeToDate(output_file):
ds = pd.read_csv('data.csv')
day_d... | [
"myEmail@example.com"
] | myEmail@example.com |
649d3305c8a94ba9233b0341f2e5877d71f30475 | 79ea04b61afc43231dfdc76f290356af46598914 | /FRW/manager.py | 284daa87f29a5c755671f1ad31ca4ef1eac95ffb | [
"LicenseRef-scancode-unknown-license-reference",
"BSD-3-Clause"
] | permissive | PearseT/Maya_scripts | 21b3abd78b7c132e5b28182f23d181050ec2b112 | 037fe39b1b4928dce6f967c710ecc0d1d087502d | refs/heads/master | 2020-06-03T04:23:17.990529 | 2019-12-03T13:46:30 | 2019-12-03T13:46:30 | 191,436,434 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 26,731 | py | # TODO:
# importDeformerWeights to perform auto-binding for some of the more common deformers like skinCluster, cluster, etc.
# quadruped
import sys, os, imp, inspect, shutil, glob, platform, __main__
from functools import partial
import maya.cmds as mc
THIS_DIR, THIS_FILE = os.path.split(__file__)
sys.path.append(TH... | [
"pearsetoomey@gmail.com"
] | pearsetoomey@gmail.com |
92ed6a36ac6f7be76144f403a841125f2a79c943 | 633c18a9e1931f937f7f91f05ce9749a4ac169f6 | /work_with_pythest/tests/test_math.py | 05d5b8bf6daeef827b40a6d56148b1075e179af4 | [] | no_license | borko81/python_scripts | fb3ff79377f19233e18d20f4f150735cdbe52c29 | 4e8ed38550f3b90bc00c07605d7e92822b079206 | refs/heads/master | 2022-07-07T19:26:52.467714 | 2022-06-24T15:46:57 | 2022-06-24T15:46:57 | 224,904,971 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 280 | py | import pytest
def test_one_plus_one():
assert 1 + 1 == 2
def test_one_plust_two():
a = 1
b = 2
c = 3
assert a + b == c
def test_division_by_zero():
with pytest.raises(ZeroDivisionError) as e:
num = 1 / 0
assert 'division' in str(e.value)
| [
"bstoilov81@gmail.com"
] | bstoilov81@gmail.com |
40c19d84fb25f6fed0b4af8ac7f99c567eff0950 | 0d86664dd973242fdf895e515fe8df5847c03980 | /analyze/extensions/com.castsoftware.html5.2.0.8-funcrel/js_file_filters.py | 977bcb983f010c69e2264b2241d0ef05da06bb99 | [
"LicenseRef-scancode-warranty-disclaimer",
"LicenseRef-scancode-public-domain"
] | permissive | neel7h/engineering | 2de1ed914be924aabf7d3133c28efd250fc08e13 | 4afd87d1700a34d662453860526aef5ba1201268 | refs/heads/master | 2022-02-18T06:32:43.532951 | 2019-10-03T08:41:39 | 2019-10-03T08:41:39 | 212,519,749 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 9,701 | py | '''
Created on 26 nov. 2014
@author: iboillon
'''
import os
import json
import re
import cast.analysers
from cast.application import open_source_file # @UnresolvedImport
import traceback
class FileFilter:
def __init__(self):
jsonPath = os.path.abspath(os.path.join(os.path.dirname(__file__), ... | [
"a.kumar3@castsoftware.com"
] | a.kumar3@castsoftware.com |
f7c3fccd2351d12f60914ebd2d253e3434834656 | 48a29c558eba558cff4c40171d14ae92a29bccaa | /matrix/zero_matrix.py | d8982f5c0e6ab831d934c5118283c2e7cef71fb4 | [] | no_license | gammaseeker/DSA_Python | ea0a3cb526d7f71136c9a6134be0947c9be65ab0 | 70633cb7b53dbe628e7edd0fb2b6973872f90e50 | refs/heads/master | 2023-07-07T02:25:50.548688 | 2021-08-10T20:00:56 | 2021-08-10T20:00:56 | 196,867,646 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,237 | py | def zero_matrix(matrix):
# Check if top row has 0
row_zero = False
for col in range(0, len(matrix[0])):
if matrix[0][col] == 0:
row_zero = True
# Check if first col has 0
col_zero = False
for row in range(0, len(matrix)):
if matrix[row][0] == 0:
col_zero ... | [
"jjiemjitpolchai9540@bths.edu"
] | jjiemjitpolchai9540@bths.edu |
1c90d3231346ed0d9f466ab115158842a74a22cb | af73bf48ac21f0cdbfe1dffc9fba09172dbcfd4a | /youtube_parser.py | 2a9ae0a5a08ce1e77239d36f9b8adb55521b33c4 | [
"MIT"
] | permissive | cborao/youtube-xml-parser | 2d92e57d3d23339f9da74d90cfd7505dc75eacf3 | 0ed6377cf39ba59ec762589cb1f6399cb5786081 | refs/heads/master | 2023-06-05T10:10:45.294835 | 2021-06-22T16:55:12 | 2021-06-22T16:55:12 | 379,341,177 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,324 | py | #!/usr/bin/python3
#
# Simple XML parser for YouTube XML channels
# César Borao Moratinos
#
# Based on "ytparser.py" code:
#
# Jesus M. Gonzalez-Barahona
# jgb @ gsyc.es
# SARO and SAT subjects (Universidad Rey Juan Carlos)
# 2020
#
# The input is a valid channel ID. The parser produces a HTML document in standard out... | [
"c.borao.2017@alumnos.urjc.es"
] | c.borao.2017@alumnos.urjc.es |
af01032059305357b2406966e9ed3d432d2a7f77 | 0be6bb93eda9c8fb1798bd99f15ef4acb04fc504 | /src/pe0026.py | 61df838294b1fd130e79832d9c2ff856ba97bc98 | [] | no_license | neysene/project-euler | d7f9ec8c3a46fd7fd61eec4044632e6166146337 | 79f9170482000328dcddb4a34701b75ab8209638 | refs/heads/master | 2021-01-10T07:03:55.054443 | 2016-01-29T05:30:40 | 2016-01-29T05:30:40 | 49,287,376 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 461 | py | if __name__ == '__main__':
maxx, keep = 1, 3
for i in xrange(2, 1000):
num, denom, flag = 10, i, True
a = []
while flag:
k = num%denom
if k == 0:
break
elif k in a:
if len(a) > maxx:
maxx = len(a)
... | [
"ismailgonul@gmail.com"
] | ismailgonul@gmail.com |
41cc8cb8ec10ccb8c7eb432e8f3cc4602df5f651 | d043a51ff0ca2f9fb3943c3f0ea21c61055358e9 | /python3网络爬虫开发实战/数据存储/MySQL实验/删除数据2.py | 7af2d45b23cc102f658c4407ee7362981f7f0c80 | [] | no_license | lj1064201288/dell_python | 2f7fd9dbcd91174d66a2107c7b7f7a47dff4a4d5 | 529985e0e04b9bde2c9e0873ea7593e338b0a295 | refs/heads/master | 2020-03-30T03:51:51.263975 | 2018-12-11T13:21:13 | 2018-12-11T13:21:13 | 150,707,725 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 382 | py | import pymysql
db = pymysql.connect(host="localhost", user='root', password='123456', port=3306, db='django')
cursor = db.cursor()
table = "friends"
age = "age > 30"
sql = 'DELETE FROM {table} WHERE {age}'.format(table=table, age=age)
try:
cursor.execute(sql)
print("Successful...")
db.commit()
except:
... | [
"1064201288@qq.com"
] | 1064201288@qq.com |
7373cab884ab98deb78bcd0b60f131314c4adecb | 42a5c898a3a750c54dc746429e306b9f40a8638e | /pizza/orders/admin.py | bd3ee529187b49a87581f033cfc17e3d0e95696a | [] | no_license | selbieh/Pizza | 16f4198714b88ad93f354e6c0eb98d92a19e364b | c10bd78b1318d7e81128e66fa67d09241618e00d | refs/heads/master | 2022-05-18T04:25:46.431748 | 2020-01-13T13:45:59 | 2020-01-13T13:45:59 | 233,557,658 | 0 | 0 | null | 2022-04-22T22:59:33 | 2020-01-13T09:24:18 | Python | UTF-8 | Python | false | false | 120 | py | from django.contrib import admin
from .models import orderPizzaItem,order
admin.site.register([orderPizzaItem,order]) | [
"selbieh@gmail.com"
] | selbieh@gmail.com |
5b82ca7833330ee0646d306a6cef65cb5c33df37 | 762742b3c5cb5706e93e12dbdc3f8c46fc65f0db | /Packs/GreyNoise/Integrations/GreyNoise/GreyNoise_test.py | bc42620c600a89f5bf9c62f42f621c88f3b2320f | [
"MIT"
] | permissive | EmersonElectricCo/content | 018f95f7fe7de13819e093a3661587a18407e348 | 82c82bbee7d428f0b14991a88c67672e2c02f5af | refs/heads/master | 2021-06-17T04:54:22.938033 | 2021-05-06T16:39:59 | 2021-05-06T16:39:59 | 161,693,191 | 2 | 0 | MIT | 2018-12-18T15:16:49 | 2018-12-13T20:47:26 | Python | UTF-8 | Python | false | false | 8,763 | py | import pytest
import json
import GreyNoise
from test_data.input_data import ( # type: ignore
parse_code_and_body_data,
get_ip_reputation_score_data,
test_module_data,
ip_reputation_command_data,
ip_quick_check_command_data,
generate_advanced_query_data,
query_command_data,
get_ip_contex... | [
"noreply@github.com"
] | EmersonElectricCo.noreply@github.com |
c47eb54349cc1aaf6624d4dd8dda17bbcb9f3a10 | e1c4b32f23d8622be21db1445c9877f0de1680f1 | /backend/app/controllers/home.py | c6b483330ecfcd0750b79fd1d46b35e43bca8be4 | [] | no_license | AngCosmin/api-flask | 8d212f0393b9a7590eeafd1b704f1a2b51bfe0a3 | 7c09d78cda9160b60a162ac15761ad5817c17917 | refs/heads/master | 2022-12-15T04:36:43.692837 | 2019-04-05T20:30:15 | 2019-04-05T20:30:15 | 179,749,615 | 0 | 0 | null | 2022-09-16T17:58:57 | 2019-04-05T20:24:59 | Python | UTF-8 | Python | false | false | 133 | py | from flask import Blueprint
blueprint = Blueprint('home', __name__)
@blueprint.route('/')
def index():
return 'Hello World'
| [
"cosminzorr@gmail.com"
] | cosminzorr@gmail.com |
a7ac6aca6ae6303875db1502f4c7a1f188290a7d | bead792530ab007addd60ce777e9ce19bc45cc74 | /inception-google/utils.py | b797d03ecbf9e46c79fdd3249d8fbd5b928d25c1 | [] | no_license | knowmefly/Youth-AI-SelfImprovement | aefb47bf13284509372cfd6c1ea14a81e2be21ce | bb15cdc07dc6c231b5d44acae088f98a44f97761 | refs/heads/master | 2020-04-25T04:26:20.997249 | 2019-03-06T20:33:08 | 2019-03-06T20:33:08 | 172,510,073 | 2 | 1 | null | null | null | null | UTF-8 | Python | false | false | 1,371 | py | # -*- coding: utf-8 -*-
import tensorflow as tf
slim = tf.contrib.slim
# 定义默认的arg scope
def inception_arg_scope(weight_decay=0.00004,
use_batch_norm=True,
batch_norm_decay=0.9997,
batch_norm_epsilon=0.001,
activati... | [
"knowmefly@qq.com"
] | knowmefly@qq.com |
46cda83c4132a39c6286332ab4240e378fc2e4e7 | e4ab9d29abcadd76e4f540d3ea5487aff4259004 | /lab_7.1.py | 0255a13ca5b7f91bd5fb38e43f948cf43ecf9a42 | [] | no_license | swyatik/python-KPI | 83332ed2fa3a49acd6c521416a08c005f4be78d2 | 10adac7d76790256ebe72339455a0a081433d4f6 | refs/heads/master | 2020-06-04T22:27:10.463697 | 2019-06-16T16:52:02 | 2019-06-16T16:52:02 | 192,215,205 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,796 | py |
class Sphere(object):
def __init__(self, radius = 1.0, x = 0.0, y = 0.0, z = 0.0):
self.radius = float(radius)
self.x = float(x)
self.y = float(y)
self.z = float(z)
def get_volume(self):
v = 4 / 3 * 3.1415926535897932384626433 * self.radius ** 3
re... | [
"noreply@github.com"
] | swyatik.noreply@github.com |
2d3d1b442af9336be133c309201d7efd2fff5c15 | 19692e21e740eca07b493cf4ebf22ad833ce827d | /lawsite_nogit/lawsite/wsgi.py | 11149264db289cadfe32f7a73806afab1794e05b | [] | no_license | reedharder/bending_the_law | 6033082d78175285983e98dc8cda0c9da72b97b2 | bd85f6a3f91c3f9bb28da87177a5578a7fffb9c6 | refs/heads/master | 2020-04-09T11:55:49.036953 | 2016-08-05T15:58:47 | 2016-08-05T15:58:47 | 40,094,227 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 565 | py | """
WSGI config for lawsite project.
It exposes the WSGI callable as a module-level variable named ``application``.
For more information on this file, see
https://docs.djangoproject.com/en/1.8/howto/deployment/wsgi/
"""
import os
from django.core.wsgi import get_wsgi_application
os.environ.setdefault("DJANGO_SETTI... | [
"reedharder@gmail.com"
] | reedharder@gmail.com |
181a7dc33b61cdc418e9314d9e6ba8faa6a0d378 | 0d7d344edf0dc4b905b12a96a004a773191aa26f | /visas/admin.py | b00da55229665e711a24d095008554baee723958 | [] | no_license | BoughezalaMohamedAimen/Amine | ae615ca64c5d0c8977e26aee2906e606439250d5 | 6060d48ab1308c217fe1bd8bd419369f83cb733a | refs/heads/master | 2020-06-27T11:57:30.682966 | 2019-08-04T22:56:41 | 2019-08-04T22:56:41 | 199,948,247 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 110 | py | from django.contrib import admin
from .models import *
# Register your models here.
admin.site.register(Visa)
| [
"mamoumou121@gmail.com"
] | mamoumou121@gmail.com |
21f4eac2a5d60a2dfe080bd75652381d18460ec0 | d37189d84ee0fe11969fb4b591899035a5533352 | /fun2.py | 1e86b8658e999401565ccd3b3f43d478390d1109 | [] | no_license | KebadSew/scratch_python | 5654e1fe2e13f88b630b26ace21e96bac3278da2 | aa460807200a6eb3b64ba17549769c4b0d023572 | refs/heads/master | 2023-02-16T15:34:42.924669 | 2021-01-19T00:58:07 | 2021-01-19T00:58:07 | 293,111,352 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 570 | py | # create a function which prints sum of two input number parameters
'''
def sum(x,y):
print("Sum is ",x+y)
sum(5, 7)
# subtract
def mekenes(x,y):
print("Mekenes of x-y is ",x-y)
mekenes(5, 7)
'''
def sum(x, y, z):
return x+y+z
s = sum(8, 6, 2)
# create a function which prints sum of two input n... | [
"lingering.quest@gmail.com"
] | lingering.quest@gmail.com |
3b5eb65cc24ada0602641c43bd8365025a109f61 | 43bd7dce16d5dd856d9755ee44b89316ab4dcfbd | /BakeryManagement/asgi.py | 7aa89e87c3a4ee6687a9cd753db29c46f5d449c9 | [] | no_license | rishabh-22/BakeryManagement | 86bc0e478ed954c46e734afc0ee2f9261d46b2a7 | 0b75306f1db2f42e047d1e65a1baeaf62c29919e | refs/heads/master | 2023-03-26T01:24:18.087439 | 2021-03-11T19:43:35 | 2021-03-11T19:43:35 | 344,091,099 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 409 | py | """
ASGI config for BakeryManagement project.
It exposes the ASGI callable as a module-level variable named ``application``.
For more information on this file, see
https://docs.djangoproject.com/en/3.1/howto/deployment/asgi/
"""
import os
from django.core.asgi import get_asgi_application
os.environ.setdefault('DJA... | [
"rishabh.bh22@gmail.com"
] | rishabh.bh22@gmail.com |
b749d4bcecade6a4c865a8f3a69ebd30954dfe41 | f09dc121f213f2881df3572288b7ee5b39246d73 | /aliyun-python-sdk-config/aliyunsdkconfig/request/v20190108/GetSupportedResourceTypesRequest.py | 8fb02d120fe982b0df0cc395179ce63061909e27 | [
"Apache-2.0"
] | permissive | hetw/aliyun-openapi-python-sdk | 2f31378ad6be0896fb8090423f607e9c7d3ae774 | 7443eacee9fbbaa93c7975c6dbec92d3c364c577 | refs/heads/master | 2023-01-19T22:42:36.214770 | 2020-12-04T10:55:14 | 2020-12-04T10:55:14 | 318,689,093 | 1 | 0 | NOASSERTION | 2020-12-05T03:03:03 | 2020-12-05T03:03:03 | null | UTF-8 | Python | false | false | 1,296 | 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... | [
"sdk-team@alibabacloud.com"
] | sdk-team@alibabacloud.com |
31377b78b9aa2c2a50c21500d418eb84e8d65b07 | ae5bc58aea259f9e633398b99e9705c89a0cea3d | /tasks/viewpoint_select/utils_data.py | 15883db86b9b6068ef4ef746b53f5f631cafb115 | [
"MIT-0"
] | permissive | ayshrv/visitron | 3bacefd4cf62c66864cfcdba4e24af7a576590dd | 2f30e6c002ed021d2be209a94a5e77c2d7e2117f | refs/heads/main | 2023-06-03T17:47:06.905510 | 2021-06-30T22:18:55 | 2021-06-30T22:18:55 | 302,179,557 | 1 | 0 | NOASSERTION | 2021-06-30T22:59:18 | 2020-10-07T22:56:49 | Python | UTF-8 | Python | false | false | 20,796 | py | # Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
# SPDX-License-Identifier: MIT-0
import base64
import csv
import json
import logging
import math
import os
import pickle
import re
import sys
import time
from itertools import chain
import lmdb
import networkx as nx
import numpy as np
from tqdm impo... | [
"shrivastava.ayush1996@gmail.com"
] | shrivastava.ayush1996@gmail.com |
30295c60432b3dc86a5982db72a44530415d66b1 | 893577de9978f7868e7a3608ab697a320adf55f1 | /python/Day1/problem1_3.py | 9c71c686b36cf77b1e2c9ff80693415d699a73b8 | [] | no_license | zealfory/xiyu-NLPTrainee | 0d8c6ab80cfc7b3a00e886f340f34e5ed4650fc2 | 3e63bad5d53b478563003d0c78fa1cab63fcefb4 | refs/heads/master | 2020-06-13T15:24:30.589485 | 2019-08-26T08:15:22 | 2019-08-26T08:15:22 | 194,693,706 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,079 | py | def longestValidParentheses(s):
"""
:para s: str -- 字符串
:return: int -- 最长有效括号串长度
"""
s_length = len(s)
stack = []
start = 0
maxlen = 0
for i in range(s_length):
# 左括号入栈
if s[i] == '(':
stack.append(i)
... | [
"noreply@github.com"
] | zealfory.noreply@github.com |
236f08e901aa2811beb0f5bc228a88b8b65cf996 | caf1d3bd64bbece382fcad9c38da28f8bfd7b6ea | /rules.py | 7788b1ed5ac7c146bbc9bc09e96d0aaab5aa965a | [] | no_license | PavelPylypenko/kz_tagging | bf5dc192f7a3d552d9edda97ec141050204e33df | a057d3e8c26ba914bf59bc7063519e4be4090f28 | refs/heads/master | 2022-11-25T16:23:01.810210 | 2020-08-06T09:33:06 | 2020-08-06T09:33:06 | 285,529,922 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 11,701 | py | NNATENDS = ['шык', 'шы', 'пыр', 'мпыр', 'алар', 'ашыщ', 'лар', 'елер', 'ды', 'рдан', 'рлан', 'рсақ', 'қтар', 'ылар', 'ылык', 'нші', 'лік', 'сшы', 'пша', 'хана', 'ашы', 'ші', 'паз', 'лық', 'йлар', 'қсы', 'ылық', 'ндық', 'ім', 'ар', 'ас', 'кер', 'уші', 'шілер', 'рік', 'ктер', 'қша', 'пан', 'лшы', 'дыр', 'тыр', 'рған', 'қ... | [
"pavlo.pylypenko@anvileight.com"
] | pavlo.pylypenko@anvileight.com |
1ce65bae1f1abca5f6f1b6dcf3dd5b53a58ec9b5 | a87ed28a5217101f57f387c8003ed73e4bb873d3 | /cracking-the-code-interview/queue.py | deb62c3fb3c1dda57e89705ad3572c070f678842 | [] | no_license | snahor/chicharron | 82f65836258462a900f2dba6b4192a436e16e7d0 | 710e7114d8768965cd50556cbbeeed0e3604cf92 | refs/heads/master | 2021-01-24T14:11:32.235253 | 2017-07-19T06:06:42 | 2017-07-19T06:06:42 | 41,190,005 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,003 | py | from linked_list import Node
class Queue:
'''
>>> q = Queue()
>>> q.enqueue(1)
>>> q.enqueue(2)
>>> q.enqueue(3)
>>> q.dequeue()
1
>>> q.dequeue()
2
>>> q.enqueue(4)
>>> q.enqueue(5)
>>> q.dequeue()
3
>>> q.dequeue()
4
>>> q.dequeue()
5
>>> q.deq... | [
"hans.r.69@gmail.com"
] | hans.r.69@gmail.com |
6fe04aaf0e701031982130a0f867b59e8d83e3ec | 42d18b5dba342099dae032ab2aa2bb19b995f9be | /ch/ch1/wxpy/helper/sendHelper.py | 836277903d0cc0bfb05cfdad56a0430e3bb0d0a0 | [] | no_license | wenyaodong777/python-workshop | 4e38ee7f3c96e8cdac3804c980b735db304ffb18 | 5f7bb9aa227ec46c89f793f592f3c90e9cd50603 | refs/heads/master | 2020-05-26T18:14:58.354116 | 2019-05-24T00:52:32 | 2019-05-24T00:52:42 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 158 | py | #!/usr/bin/python
# -*- coding: UTF-8 -*-
class WXSender():
def send(self, groups, content):
for group in groups:
group.send(content) | [
"wuchenbao@odc.cmbchina.cn"
] | wuchenbao@odc.cmbchina.cn |
c0fc1c5fe7e20c2b73669f3d38ce4eff71b3fa44 | 400f4a13784f93029dbe035392ba62f0956f1c1f | /sampler.py | 8ec1187020e92427b9f63246e08ea5c919a22c2b | [
"MIT"
] | permissive | ussama-azizun/Masked_Face_Recognition | 5e3516ec0d99380ef22decdd06c536bfe79a6cd1 | 2dc572573ebd9ac208314690b529ed69addf0913 | refs/heads/master | 2023-07-13T03:49:27.553385 | 2021-08-03T07:51:35 | 2021-08-03T07:51:35 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,331 | py | from torch.utils.data.sampler import Sampler
import itertools
import numpy as np
def samples(df):
label_to_samples = []
samples = []
label = 0
for index, row in df.iterrows():
if index == 0:
samples.append(index)
label = row['target']
else:
if row['ta... | [
"samyuan101234@gmail.com"
] | samyuan101234@gmail.com |
a6b9a81031ca5ebba259e3bfd9015c0ce85b1d1f | 3e0abf5d310edec9ac8cd939b83518d5f1cb753c | /feature-a.py | e0ef5294caaa47e7af55eaf6dd68035d8175d3a2 | [] | no_license | anushkhasingh30/git-1 | ebc13f9974bee04650e7a6aa0e8313d1ebe5eaac | 4516ce4a2ac811246c50a7b8012ff4a028959695 | refs/heads/master | 2023-06-25T00:04:15.593702 | 2021-07-27T10:38:00 | 2021-07-27T10:38:00 | 389,939,561 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 19 | py | print('feature a ') | [
"anushkhasingh30@gmail.com"
] | anushkhasingh30@gmail.com |
91c2e382f455de622a8bfb58b1df4f5bbe6b01ff | e13a79dec2668c1870b3fea05f071fe872d400f0 | /pde/storage/tests/test_generic_storages.py | 474649dd328980f34d7df91ecac637408b9e3bd6 | [
"MIT"
] | permissive | yiweizhang1025/py-pde | b27cc0b058b50d6af921e1ea84bf59a5bb0ff370 | 3862a35505b9ce4d62557bc65dfedd40638a90f3 | refs/heads/master | 2023-03-14T17:21:07.004742 | 2021-03-15T15:33:47 | 2021-03-15T15:33:47 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 7,739 | py | """
.. codeauthor:: David Zwicker <david.zwicker@ds.mpg.de>
"""
import functools
import numpy as np
import pytest
from pde import DiffusionPDE, FileStorage, MemoryStorage, UnitGrid
from pde.fields import FieldCollection, ScalarField, Tensor2Field, VectorField
from pde.tools.misc import module_available
def test_st... | [
"david.zwicker@ds.mpg.de"
] | david.zwicker@ds.mpg.de |
45bb0f11373a3220f0f4387907cff7b0eee4e3f3 | dc72589c38ba179524c2ee2e408c4f37b77cabf3 | /backend/lizz_mob_jul15_dev_7685/urls.py | 8827abab37592bfacf837a0176cebcca38cae754 | [] | no_license | crowdbotics-apps/lizz-mob-jul15-dev-7685 | cbcab97908bd568acc68b606d4c5becdb160364c | a41e88b463169443bcfdf12cf356a958c44f3400 | refs/heads/master | 2022-11-17T22:30:15.286209 | 2020-07-16T17:54:10 | 2020-07-16T17:54:10 | 280,012,855 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,958 | py | """lizz_mob_jul15_dev_7685 URL Configuration
The `urlpatterns` list routes URLs to views. For more information please see:
https://docs.djangoproject.com/en/2.2/topics/http/urls/
Examples:
Function views
1. Add an import: from my_app import views
2. Add a URL to urlpatterns: path('', views.home, name='ho... | [
"team@crowdbotics.com"
] | team@crowdbotics.com |
34659a2890a4b19d6a7a1abb7a98dd6fbe5adce9 | 0e1e643e864bcb96cf06f14f4cb559b034e114d0 | /Exps_7_v3/doc3d/Ablation4_ch016_ep003_7_10/Gather2_W_fixGood_C_change/train/pyr_4s/L6/step10_a.py | 2202753791e6d77741009c3408d45023e128a019 | [] | no_license | KongBOy/kong_model2 | 33a94a9d2be5b0f28f9d479b3744e1d0e0ebd307 | 1af20b168ffccf0d5293a393a40a9fa9519410b2 | refs/heads/master | 2022-10-14T03:09:22.543998 | 2022-10-06T11:33:42 | 2022-10-06T11:33:42 | 242,080,692 | 3 | 0 | null | null | null | null | UTF-8 | Python | false | false | 140,332 | py | #############################################################################################################################################################################################################
##################################################################################################################... | [
"s89334roy@yahoo.com.tw"
] | s89334roy@yahoo.com.tw |
241b062d29b2a2e895a396fb385dd2ffb44bab96 | 3ff9821b1984417a83a75c7d186da9228e13ead9 | /No_1410_HTML Entity Parser/by_re_replacement.py | c017682935944a4f3a73df684c4c097a91d80e6d | [
"MIT"
] | permissive | brianchiang-tw/leetcode | fd4df1917daef403c48cb5a3f5834579526ad0c2 | 6978acfb8cb767002cb953d02be68999845425f3 | refs/heads/master | 2023-06-11T00:44:01.423772 | 2023-06-01T03:52:00 | 2023-06-01T03:52:00 | 222,939,709 | 41 | 12 | null | null | null | null | UTF-8 | Python | false | false | 3,076 | py | '''
Description:
HTML entity parser is the parser that takes HTML code as input and replace all the entities of the special characters by the characters itself.
The special characters and their entities for HTML are:
Quotation Mark: the entity is " and symbol character is ".
Single Quote Mark: the entity is &a... | [
"brianchiang1988@icloud.com"
] | brianchiang1988@icloud.com |
516909e27870935ab937ccd022e1ac2e00a7cc98 | c9ddbdb5678ba6e1c5c7e64adf2802ca16df778c | /cases/synthetic/sieve-big-2404.py | 36bdabeba62a66987aa786e8dfdb76e27f414dcd | [] | no_license | Virtlink/ccbench-chocopy | c3f7f6af6349aff6503196f727ef89f210a1eac8 | c7efae43bf32696ee2b2ee781bdfe4f7730dec3f | refs/heads/main | 2023-04-07T15:07:12.464038 | 2022-02-03T15:42:39 | 2022-02-03T15:42:39 | 451,969,776 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 31,752 | py | # A resizable list of integers
class Vector(object):
items: [int] = None
size: int = 0
def __init__(self:"Vector"):
self.items = [0]
# Returns current capacity
def capacity(self:"Vector") -> int:
return len(self.items)
# Increases capacity of vector by one element
def incr... | [
"647530+Virtlink@users.noreply.github.com"
] | 647530+Virtlink@users.noreply.github.com |
04da31593f90e147dd4899029a36daa0fe6f87e5 | 867d946a375a3ad9808af45c15e8b2ea3274da0f | /Scripts/Linux/SQLTimeBasedColumns.py | 4bf2980aab49ca6f4911ed4cfa193946ca4187bf | [] | no_license | AmatheraeWorld/AmatheraeWorld | 5985a6731221d375750d30ca22c59fe3aed52a1f | 1b32d2d2fed410c9c486c1cbc21dc8fa0ac8d1a7 | refs/heads/master | 2023-06-16T13:41:32.443881 | 2021-07-11T20:26:51 | 2021-07-11T20:26:51 | 265,905,582 | 1 | 1 | null | null | null | null | UTF-8 | Python | false | false | 1,147 | py | #!/usr/bin/python3
import requests, time, sys, signal
from pwn import *
def def_handler(sig, frame):
log.faiulure("Saliendo")
sys.exit(1)
signal.signal(signal.SIGINT, def_handler)
url = 'http://admin.cronos.htb/index.php'
burp = {'http': 'http://127.0.0.1:8080'}
s = r'0123456789abcdefghijklmnopqrstuvwxyz'
... | [
"noreply@github.com"
] | AmatheraeWorld.noreply@github.com |
499cc74e02d9c9125a27b10ac84169ce55f05be3 | 7998125d3b2d3d1427f0715e9d7283b3108625c1 | /wcics/server/forms/forms/admin/topics/create.py | f6fdf0312231da71bbd9d63bced8582cbde4eebd | [
"MIT"
] | permissive | CS-Center/CS-Center | 042b74e1c1b829a241260159ee40bf9ffa5a7027 | 3cd09f29d214406e6618fc67b9faf59a18f3f11b | refs/heads/master | 2021-07-03T00:12:38.569492 | 2020-09-16T20:38:39 | 2020-09-16T20:38:39 | 209,430,258 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 418 | py | # -*- coding: utf-8 -*-
from wcics.server.forms.validator_sets import *
from flask_wtf import FlaskForm
from wtforms import StringField, SubmitField, TextAreaField
class TopicSudoCreateForm(FlaskForm):
tid = StringField("ID", admin_topic_create_tid)
name = StringField("Name", admin_topic_create_name)
descripti... | [
"keenan@cscenter.ca"
] | keenan@cscenter.ca |
233d511497513d1530a9e8ff0eb47948dc21f5d0 | d33065f76aa1a59142794364bb65526771ee71b3 | /PDS/tcpstats | 0bf7c29658d2db29425445bd767ee5578cad4f0f | [] | no_license | annaostroukh/University-projects | 31e300aa0674e13a6d3cb83dc4ccc0161e98bb02 | d16e64030f4230107130d770e3c15e472aed7319 | refs/heads/master | 2021-01-11T14:14:20.619238 | 2017-02-07T14:50:46 | 2017-02-07T14:50:46 | 81,216,867 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 10,103 | #!/usr/bin/env python2.7
import datetime
from decimal import Decimal
import socket
import struct
import sys
import webbrowser
import dpkt
from dpkt.tcp import TCP
from dpkt.ethernet import Ethernet
from dpkt.ip import IP, IP_PROTO_TCP
import json
def main():
computeTCPStat()
# function parse a... | [
"annaostroukh@gmail.com"
] | annaostroukh@gmail.com | |
c08ce6dd49ab813444d35c3c9349c72f052e228b | 5e255ad1360c90478393744586663741a9569c21 | /linebot/models/base.py | 164fca9d9e9240236cfe90b9b6b2b37ba835814f | [
"Apache-2.0"
] | permissive | line/line-bot-sdk-python | d76268e8b542060d6eccbacc5dbfab16960ecc35 | cffd35948238ae24982173e30b1ea1e595bbefd9 | refs/heads/master | 2023-08-31T22:12:31.698183 | 2023-08-28T01:10:09 | 2023-08-28T01:10:09 | 70,553,423 | 1,898 | 1,181 | Apache-2.0 | 2023-09-11T05:14:07 | 2016-10-11T03:42:26 | Python | UTF-8 | Python | false | false | 4,121 | py | # -*- coding: utf-8 -*-
# Licensed under the Apache License, Version 2.0 (the "License"); you may
# not use this file except in compliance with the License. You may obtain
# a copy of the License at
#
# https://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing,... | [
"noreply@github.com"
] | line.noreply@github.com |
6b09cc57289aebfadf3badeff4f9bef7c017e0dc | 04cd6250630b3aad49219acbae0b7682f4263afb | /sbaas/analysis/analysis_stage02_isotopomer/stage02_isotopomer_dependencies.py | 7813c8ad014ac51fbf424a16b962f14cfd089746 | [
"Apache-2.0"
] | permissive | SBRG/sbaas | ec04bd3a82248600328c053bc798d7d302fbaf9d | 9df76bbffdd620cf8566744a2b0503935998fbe0 | refs/heads/master | 2021-01-21T23:29:26.713889 | 2015-06-24T17:16:59 | 2015-06-24T17:16:59 | 28,518,590 | 1 | 2 | null | null | null | null | UTF-8 | Python | false | false | 297,680 | py | '''isotopomer metabolomics analysis class'''
from sbaas.analysis.analysis_base import *
from .stage02_isotopomer_query import *
from .stage02_isotopomer_io import *
# Dependencies
import operator, json, csv
from copy import copy
# Dependencies from 3rd party
import scipy.io
from numpy import histogram, mean, std, load... | [
"dmccloskey87@gmail.com"
] | dmccloskey87@gmail.com |
72f601d574e8d581120332421e096abfc29920f1 | 3280dd107a70e7d3637bfcfc2819f9b1477ed99a | /Myquizproject/Myquizproject/urls.py | 55bd04fcaf038ecb464df39accb26f55b4cbb00c | [] | no_license | pooja666-v/pv_Quiz_repo | 80b9cc3cb1c45a48e30f9e4f15392bbdf02bf22b | fc59c7fb7a92549b8cea3fac0f4cb451bdbcc2f7 | refs/heads/master | 2023-05-26T23:17:45.797984 | 2021-06-15T13:01:31 | 2021-06-15T13:01:31 | 376,889,813 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,568 | py | """Myquizproject URL Configuration
The `urlpatterns` list routes URLs to views. For more information please see:
https://docs.djangoproject.com/en/3.0/topics/http/urls/
Examples:
Function views
1. Add an import: from my_app import views
2. Add a URL to urlpatterns: path('', views.home, name='home')
Class... | [
"poojavasawade98@gmail.com"
] | poojavasawade98@gmail.com |
a0805ca69c9facac7d1aacfd3d9aa666d1741f76 | 94a27c14e31aeac3fe16980240e19634837679a8 | /max-frequency.py | a9828419afb5ee165a3274267b910be6b95e359b | [] | no_license | EEmery/anomaly-detection | 73762045eb317f0dc565f1199b28c61ce8fe1756 | 3fbb098ea483c85a7f0bec46ca33c3b3b417dbbf | refs/heads/master | 2020-04-05T23:28:35.698159 | 2017-09-10T00:35:39 | 2017-09-10T00:35:39 | 83,551,646 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,148 | py | # Imports necessary libraries
print "Importing packages\n"
import pandas as pd
import matplotlib.pyplot as plt
from warnings import filterwarnings
from numpy import nan
# Ignores warnings
filterwarnings("ignore")
input_file_path = "Data/preprocessed_v2/not-normalized/"
periods = ['WEEK', 'MONTH', 'QUARTER', 'SEMEST... | [
"emeryecs@gmail.com"
] | emeryecs@gmail.com |
7951551b827a4fe78a0de05909e4bf7b4a989c18 | 34dd52bca544fd483606667fd9f867d6af68ef28 | /exercise2/classification05.py | 5146516b8e14e60c85d27ad8f4ef7e39f92cd66d | [] | no_license | Anderbone/CS918NaturalLanguageProcessing | 8e68bd4a61758c2f127a344152fc1ad74f972e4c | ef1e68685e85e76354040c7359c2f29b0da7eff6 | refs/heads/master | 2020-05-24T18:15:00.075093 | 2019-05-18T21:26:42 | 2019-05-18T21:26:42 | 187,406,366 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 14,174 | py | #!/usr/bin/env python3
# -*- coding: utf-8 -*-
import testsets
import evaluation
import twokenize
import sklearn.feature_extraction
from nltk.classify.scikitlearn import SklearnClassifier
import sklearn
import pandas as pd
import numpy as np
from sklearn.feature_extraction.text import CountVectorizer, TfidfVe... | [
"noreply@github.com"
] | Anderbone.noreply@github.com |
ab0c75ec1d40b45a73b6375c1400520dda72e2cd | 1b9c4798836f7c38782995422efcdbe7b48ed459 | /fashion/urls.py | 96ad507ae51d691eb26decda0c9b1a42c8cd09c4 | [] | no_license | risa4an/fashion-blog | 44ccff27dbe330665f1eeae460d636f6e8fe2d0d | aa46877246aa61b28dfdaea2e495c8e887a24f06 | refs/heads/master | 2022-12-22T10:38:48.718814 | 2020-09-16T19:56:55 | 2020-09-16T19:56:55 | 260,867,007 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,138 | py | """fashion URL Configuration
The `urlpatterns` list routes URLs to views. For more information please see:
https://docs.djangoproject.com/en/3.0/topics/http/urls/
Examples:
Function views
1. Add an import: from my_app import views
2. Add a URL to urlpatterns: path('', views.home, name='home')
Class-based... | [
"katya.risunova@gmail.com"
] | katya.risunova@gmail.com |
56b5c5e6c185d48ef5ff9fdb8aa7c49f34eb9f35 | 055b8c0176f9036061c9abd56e18db28eb69111f | /venv/bin/pip2.7 | ff662bae4ff3be2065482ea43c0d8cb0caa9a617 | [] | no_license | patientplatypus/pythonsimpleskeleton | 0b56cc589db7ca91ecd7160b28f3556c3e3e153b | 8bb70d549b8c367fe39ebe73685fd765032e13f7 | refs/heads/master | 2021-05-12T08:38:20.330403 | 2018-01-13T21:30:34 | 2018-01-13T21:30:34 | 117,291,647 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 253 | 7 | #!/Users/patientplatypus/Documents/python_play/venv/bin/python2.7
# -*- coding: utf-8 -*-
import re
import sys
from pip import main
if __name__ == '__main__':
sys.argv[0] = re.sub(r'(-script\.pyw?|\.exe)?$', '', sys.argv[0])
sys.exit(main())
| [
"pweyand@gmail.com"
] | pweyand@gmail.com |
dd169cb46861b1832b662aacb471b515ebccff0e | afeed161a0bd0e92cdcfcf3c580db8f78719bae8 | /Milestone_One/bs4_scrape.py | 9fd1671a4ae3045c68b4492451484a6c4a36dccb | [] | no_license | changjung1995/WQD7005_Data_Mining | 07046b0c8088123c29c0a0eb65126570515b291d | 3e214835ff527b6e3d2fefa442efae4c60ae527a | refs/heads/master | 2023-05-27T15:10:29.562769 | 2020-06-20T06:46:01 | 2020-06-20T06:46:01 | 246,978,227 | 0 | 1 | null | 2023-05-22T22:45:37 | 2020-03-13T03:11:35 | Jupyter Notebook | UTF-8 | Python | false | false | 2,317 | py | # -*- coding: utf-8 -*-
"""
@author: Tan Chang Jung & Tan Sia Hong
"""
#%%
import requests
from bs4 import BeautifulSoup
from datetime import date
import time
import pandas as pd
#%%
headers = {'User-Agent' : 'Chrome/74.0.3729.169'}
# select the top 20 from the ranking of cryptocurrencies
cryptocurrency = ['bitcoin... | [
"wqd190008@siswa.um.edu.my"
] | wqd190008@siswa.um.edu.my |
1e84c539079a73cab67e9517c9c96f370c7348f8 | 4b8cde0ef35b67618eea421c20a7cf0c6882b75b | /motor-surprise-rage.py | 1b1a3ca04300174a8af7d846534b8936bad235e5 | [] | no_license | MeRuslan/thesis_work | 57aa2006711e33db33d47b576a0cce047045fa66 | 935b15c611c65f77eae26c5d768ad3f363873832 | refs/heads/master | 2021-01-21T21:06:58.803983 | 2017-06-19T13:35:12 | 2017-06-19T13:35:12 | 94,780,166 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 26,085 | py | from func import *
# ATTTENTION! Maybe there are some mistakes in neuron parameters!
logger = logging.getLogger('neuromodulation')
startbuild = datetime.datetime.now()
nest.ResetKernel()
nest.SetKernelStatus({'overwrite_files': True,
'local_num_threads': 8,
'resolution': 0... | [
"guyfulla@gmail.com"
] | guyfulla@gmail.com |
dcbe927e6b4d7e84a65d80d415af4b07cbf43625 | 7e64b95e39d9a0a95e25eae82b01bfef2b6e550c | /benchmarking/model_one_job_batched.py | 03714abbeeabd1ced60e64916c8e2a06568264bb | [
"MIT"
] | permissive | yuGithuuub/scCODA_reproducibility | a927075d9cbca2b0f1ff4d9ad74b872e286591dc | 1f2565eca4bc9e6ccd16aa6885ccde6c19caa196 | refs/heads/main | 2023-01-23T03:23:04.559234 | 2020-12-10T15:14:19 | 2020-12-10T15:14:19 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,832 | py | # Only relevant for server execution
import pickle as pkl
import sys
import os
import benchmark_utils as add
dataset_path = sys.argv[1]
save_path = sys.argv[2]
model_name = sys.argv[3]
count = int(sys.argv[4])
if sys.argv[5] == "True":
keep_sccoda_results = True
else:
keep_sccoda_results = False
print("model ... | [
"johannes.ostner@online.de"
] | johannes.ostner@online.de |
1db2de63ecb9a8bd60c598385a262b6e2b0785b9 | a20f8ae0c129927318792ec4547d534dbe38871a | /model/pcnn_att_adam.py | 053182fb9d612e4235924547884f5d4eb3d5a2cb | [
"MIT"
] | permissive | zhaohuiqiang/ONRE | dbc82abc31271c690252d3f2f5cf799c5f871f83 | 736fc5ff6f12be590d02cb66abb82c1616e1327c | refs/heads/master | 2020-03-31T17:14:35.197909 | 2018-11-20T01:00:47 | 2018-11-20T01:00:47 | 152,414,099 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,028 | py | from framework import Framework
import tensorflow as tf
FLAGS = tf.app.flags.FLAGS
def pcnn_att_adam(is_training):
if is_training:
framework = Framework(is_training=True)
else:
framework = Framework(is_training=False)
word_embedding = framework.embedding.word_embedding()
pos_embeddin... | [
"346091714@qq.com"
] | 346091714@qq.com |
e65631e729c8549976a81aa1a8b98e467e8c7c78 | 228dd278c875b9539908afffefcfe5b130a28a62 | /v2/src/code/measure_service2.py | 44431c1f5d47dc6869ce58091850202aa7bda78f | [] | no_license | sheriefvt/MARS-services | 57d9ca81f1f606ca8a8938e75b41fb806a36f8b9 | a5f6b6140b0c8a30cd083a41a465f0bc999017a1 | refs/heads/master | 2021-04-30T12:50:53.156082 | 2018-02-13T02:06:11 | 2018-02-13T02:06:11 | 121,283,295 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,415 | py | __author__ = 'Sherif Abdelhamid'
#Measure Service Version 1.0 Beta
from bottle import get, post, request, run # or route
import os
import threading
import time
import networkx as nx
import sqlite3
import json
import datetime
import ConfigParser,io
with open ('mars.config', "r") as myfile:
da... | [
"sherif@cos.io"
] | sherif@cos.io |
7f083320d95a03e5d1511f9b21545afc2344cbca | 3f0a0ee646326530c4cd6996276e8c819dfab65c | /battleship.py | 5bcc8530ea64006f289500c7ec2e3a8ebc74e6fa | [] | no_license | kidisty/Python-1 | bde878603283a6b3b966296ad2d4b0f89f70000f | 203cd35b07633610b3773c0100c342386e636935 | refs/heads/master | 2022-11-12T07:11:15.072699 | 2020-07-06T09:59:33 | 2020-07-06T09:59:33 | 277,503,399 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,215 | py | import random
board = []
for x in range(5):
board.append(["O"] * 5)
def print_board(board):
for row in board:
print " ".join(row)
print "Let's play Battleship!"
print_board(board)
def random_row(board):
return random.randint(0, len(board) - 1)
def random_col(board):
return random.randint(0... | [
"kidistyohannes@kidists-MacBook-Pro.local"
] | kidistyohannes@kidists-MacBook-Pro.local |
f9de853a23a36e10aefcbfd18bf0dfcea6055cfa | 19d47d47c9614dddcf2f8d744d883a90ade0ce82 | /pynsxt/swagger_client/models/ns_service_group_list_result.py | bbaee722d7f2d1956d8eea75ec65fa8637b79b2e | [] | no_license | darshanhuang1/pynsxt-1 | 9ed7c0da9b3a64e837a26cbbd8b228e811cee823 | fb1091dff1af7f8b8f01aec715682dea60765eb8 | refs/heads/master | 2020-05-25T14:51:09.932853 | 2018-05-16T12:43:48 | 2018-05-16T12:43:48 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 9,282 | py | # coding: utf-8
"""
NSX API
VMware NSX REST API # noqa: E501
OpenAPI spec version: 1.0.0
Generated by: https://github.com/swagger-api/swagger-codegen.git
"""
import pprint
import re # noqa: F401
import six
from swagger_client.models.list_result import ListResult # noqa: F401,E501
from swa... | [
"tcraft@pivotal.io"
] | tcraft@pivotal.io |
0e0fbfff7cc2527f4cf77872685c1eba72a8441b | 368f19de1a70535f3938da92d7278c0296a1b142 | /fb/manage.py | fa01778819c491bc93750de929e949753879bf33 | [] | no_license | viveksoundrapandi/chrome-aldown | 82a5f3c679108a146f0c9fd76d8809b868a2933b | 7a1915534ed90bc647e9775178a6f16a7be8e7a1 | refs/heads/master | 2022-11-05T02:12:32.272354 | 2022-10-07T11:29:36 | 2022-10-07T11:29:36 | 5,950,897 | 0 | 1 | null | 2022-10-07T11:29:37 | 2012-09-25T14:03:40 | Python | UTF-8 | Python | false | false | 245 | py | #!/usr/bin/env python
import os
import sys
if __name__ == "__main__":
os.environ.setdefault("DJANGO_SETTINGS_MODULE", "fb.settings")
from django.core.management import execute_from_command_line
execute_from_command_line(sys.argv)
| [
"vivekhas3@gmail.com"
] | vivekhas3@gmail.com |
7e9ed44cfcf4dfe7080d14f4c8a120d31b1b1584 | c025d4f76f37d4792299dd7239320d3327e1f7b2 | /main test2 | d175c5cb1966ce95b9d57093b43581e040469229 | [] | no_license | vadiz/TESTBOT | c49ac3faae4ad55e6448d1d5d0fe831e827f9d1d | 6ada4413a2767077db366b8dfc95d93df533b944 | refs/heads/master | 2021-09-05T21:28:00.296686 | 2018-01-31T04:51:34 | 2018-01-31T04:51:34 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 103,997 | #coding:utf-8
import telebot, config
from telebot import types
import datetime
from datetime import date
import time
import os
import sys
import subprocess
import string
import re
import random
from collections import Counter
knownUsers = [] # todo: save these in a file,
userStep = {} # so they won't reset every ti... | [
"makarishche@gmail.com"
] | makarishche@gmail.com | |
241ccb6c7c4ae0c34b892c9d317fbd849d3ea4ef | 7fba01da6426480612d7cef9ceb2e15f3df6d01c | /PYTHON/pythonDesafios/venv/lib/python3.9/site-packages/santos/santos.py | b862f2661c3fd15467cd45185f3ff2200ba50eaa | [
"MIT"
] | permissive | Santos1000/Curso-Python | f320fec1e7ced4c133ade69acaa798d431e14113 | 549223a1633f6f619c87554dd8078cf7841bb1df | refs/heads/main | 2023-05-26T12:01:23.868814 | 2021-05-26T13:22:58 | 2021-05-26T13:22:58 | 371,039,290 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 9,153 | py | __author__ = 'anderson'
# -*- coding: utf-8 -*-
from threading import Thread
from datetime import datetime
from exceptions import TaskException
import logging
log = logging.getLogger(__name__)
class ControlJobs:
__jobs = []
def stop(self, jobname):
log.debug("Job name %s" % jobname)
log.deb... | [
"83990871+Santos1000@users.noreply.github.com"
] | 83990871+Santos1000@users.noreply.github.com |
c19d323dd79ed8200a36279528eb8fd77c5d502e | b3122fec6858e1b4474889bc0b58cbdbec40ac34 | /DZ5/DZ5_5.py | bb40fae277a8a97cfcacfb80f5a0604210a86293 | [] | no_license | Mehalich/git-geekbrains | edb05ceb7643e02d1334d118d6e304720a266066 | e6833de99b5c2c37a4d16b7856fa85ba1f17117a | refs/heads/main | 2023-04-30T00:54:10.232243 | 2021-05-16T16:51:52 | 2021-05-16T16:51:52 | 359,473,465 | 1 | 0 | null | 2021-05-16T16:54:21 | 2021-04-19T13:40:34 | Python | UTF-8 | Python | false | false | 536 | py | """
5. Создать (программно) текстовый файл, записать в него программно набор чисел, разделенных пробелами.
Программа должна подсчитывать сумму чисел в файле и выводить ее на экран.
"""
f = open("DZ5_5.txt", "w+")
f.write("1 2 3 4 5 6 7 8 9 0")
f.seek(0)
line = f.readlines()
result = 0
line = str(line[0])
line = line.sp... | [
"yakovlev_mv@mail.ru"
] | yakovlev_mv@mail.ru |
038676f976925f63daee208e21804295dadcdee2 | 0581b790cf9feda6638084fca19a03137baa3ce1 | /Tron_niezainstalowany/Setup.py | e06af08aadc6917f538a6f807b07a7b5e67e0520 | [] | no_license | Frax123/TRON-GAME-PYTHON | 127eb4878093eb6419aaa3a7b051f5f54caf1343 | 2524efe0c9718d13f1cd8e74882fe316179d6d4e | refs/heads/master | 2020-05-04T21:54:46.401725 | 2019-04-04T12:35:33 | 2019-04-04T12:35:33 | 179,493,063 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 374 | py | # -*- coding: utf-8 -*-
import cx_Freeze
executables = [cx_Freeze.Executable('Tron.py')]
cx_Freeze.setup(name = 'Tron',
options = {'build_exe':{'packages': ['pygame'], 'include_files' : ['Red_player.png', 'Blue_player.png', 'Icon.png', 'Wybuch.png']}},
description = 'Tron: First... | [
"noreply@github.com"
] | Frax123.noreply@github.com |
f76d5f3aec244f5d33fcd7e2887d2eb61bb5658a | 0b25b1c2ea3e3f05ea388e1105cd2fab50e7ba54 | /mysite/blog/forms.py | 68ba9afdb13950be95db2f366aa5aebf783e6d1c | [] | no_license | webclinic017/Django-project | f8337aeb296d12760143951635d0297c13313a50 | e757aef633c63aaf857afd1f274d42d16703ca0c | refs/heads/master | 2022-12-25T17:30:14.503627 | 2020-10-12T08:47:08 | 2020-10-12T08:47:08 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 397 | py | from django import forms
from .models import Comment
class EmailPostForm(forms.Form):
name = forms.CharField()
email = forms.EmailField()
to = forms.EmailField()
comments = forms.CharField(required=False,
widget=forms.Textarea)
class CommentForm(forms.ModelForm):
c... | [
"moreshubham203@gmail.com"
] | moreshubham203@gmail.com |
cc1984673c8ca18f83d4bb875b6a0454c72c78f0 | d7bd5d5fd6114ceec28b190434958c5d3e8d0b8a | /install_nltk.py | 046937c12c7ca4cddcc380ea6f28482a1457f08d | [] | no_license | jay-cleveland/reddit_data_acquisition | 1c2529c6063a47c163aa73449004df433f7811b0 | c1e78b3328c87c7bff034cc63723076a7da89354 | refs/heads/master | 2022-10-16T08:52:12.591232 | 2022-09-30T02:08:33 | 2022-09-30T02:08:33 | 105,435,874 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 89 | py | import nltk
def main():
nltk.download('punkt')
nltk.download('all-corpora')
main()
| [
"clevelanjk18@uww.edu"
] | clevelanjk18@uww.edu |
4fb0d462d89a6686b3a67fd657cc1c0eb304bb7f | 38d1ef01184bbdb3898b8cf495eeee48eaa1a30a | /Newton_Optimization/newton_linesearch.py | 537cf2deab73ebdd2706c24882b81d41bace2821 | [] | no_license | LenCewa/MasterThesis | 39c86c8ab3c752fedc445fea14368bbd74ca8f3a | b2d4d67b7ae2f363dd627ecb4355de1ae6ef04a3 | refs/heads/master | 2020-06-16T15:47:29.971151 | 2020-04-15T09:29:43 | 2020-04-15T09:29:43 | 195,626,164 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 3,840 | py | import numpy as np
import matplotlib.pyplot as plt
from Fourier import *
from util import *
# Init Params for Fourier-Classes
N = 5
omega = 1
T = (2 * jnp.pi) / omega
step_size = 0.001
iterations = 450
fourier = Fourier(T, omega, step_size, N, iterations, [], [])
d_fourier = dFourier(T, omega, step_size, N, iteratio... | [
"len13@hotmail.de"
] | len13@hotmail.de |
5defb566e1ea2c00089fc94bb725b27db106978b | c092a30eb6e977cd021cb5d2670c5d3b4a3ac062 | /markliu/settings.py | 27f0f08471f7ec9cf0430cc6c6cdaba2053df9bd | [] | no_license | joskid/personal-django-blog | 28a1789034f92091e622079b583d3aa1e33c0c8c | 917a4182e9af49967280608f6a4378c8b386bb91 | refs/heads/master | 2020-12-25T02:30:36.280993 | 2012-12-14T15:52:59 | 2012-12-14T15:52:59 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,043 | py | # Django settings for the blog markliu.me
import os
import socket
import sys
import dj_database_url
# Test to see if local_settings exists. If it doesn't exist then this is on the live host.
if os.path.isfile('local_settings.py'):
LIVEHOST = False
else:
LIVEHOST = True
USE_STATICFILES = False
PROJECT_ROOT... | [
"markwayneliu@gmail.com"
] | markwayneliu@gmail.com |
16d09cbbcb9e2143dfe40093700361425c5394ed | d92bad5384d80cf0f7e073bb7484b06514174f7a | /code/run_emcee_plPeak_noEvol_no190412.py | 11ac3c75f9e4fae05fd3c145fe2fe6164833c64e | [] | no_license | tcallister/BBH-spin-q-correlations | 2abe399dc927a4cdbb47ac92ad6005cb3450e676 | 63dc9bbf9ca0c84a94ec0c616f8c2b3cfcceed26 | refs/heads/main | 2023-06-12T00:22:12.803326 | 2021-06-29T20:35:45 | 2021-06-29T20:35:45 | 348,101,610 | 2 | 1 | null | null | null | null | UTF-8 | Python | false | false | 3,874 | py | import numpy as np
import glob
import emcee as mc
import h5py
import sys
from support import *
from likelihoods import *
# -- Set prior bounds --
priorDict = {
'lmbda':(-5,4),
'mMax':(60,100),
'm0':(20,100),
'sigM':(1,10),
'fPeak':(0,1),
'bq':(-2,10),
'sig_kappa':6.,
'mu':(-1,1),
'l... | [
"thomas.a.callister@gmail.com"
] | thomas.a.callister@gmail.com |
90fcefb5891a9d1a1d6662ad1e564dc05696dc70 | 3eadfce7b2238f7d25256976e939b4d0e6c49ebb | /switchhello_pd.py | d744975e787c98bdb695c2c9c35d6bbe9cb98a3e | [
"BSD-2-Clause"
] | permissive | kyab/kazu | 591d3fc40a9845c9e8d6a22ae1fb1aef8a4441ba | 9ae0c3cec8ba09770b039825d99cdc53a627b6fd | refs/heads/master | 2021-01-19T04:02:07.279051 | 2016-06-24T23:40:40 | 2016-06-24T23:40:40 | 61,918,052 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 704 | py | import RPi.GPIO as G
import time
import os
import signal
import sys
print "switchhello_pd started."
COUNT = 5
PIN_LED = 17
PIN_SWITCH = 27
def signal_handler(signal, frame):
G.cleanup()
print "GPIO cleanup done."
sys.exit(0)
def wait_and_shout():
G.wait_for_edge(PIN_SWITCH, G.RISING)
print "SWITCH PUSHED"
i... | [
"kyossi212@gmail.com"
] | kyossi212@gmail.com |
52f20985a5f0c10e33313979e29aaeaca9acc59f | d806dd4a6791382813d2136283a602207fb4b43c | /sirius/blueprints/api/remote_service/tula/test/script.py | c571a235f8d6348648f5a6cb22945332ad0645a8 | [] | no_license | MarsStirner/sirius | 5bbf2a03dafb7248db481e13aff63ff989fabbc2 | 8839460726cca080ca8549bacd3a498e519c8f96 | refs/heads/master | 2021-03-24T12:09:14.673193 | 2017-06-06T16:28:53 | 2017-06-06T16:28:53 | 96,042,947 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 11,263 | py | #! coding:utf-8
"""
@author: BARS Group
@date: 25.10.2016
"""
from sirius.app import app
from sirius.blueprints.api.local_service.risar.active.test.test_data import \
get_mr_appointment_data
from sirius.blueprints.api.local_service.risar.passive.test.request import \
send_event_remote, request_local
from sir... | [
"paschenko@bars-open.ru"
] | paschenko@bars-open.ru |
11ffda3f83c07b96012a29d6f0df3a67e7760664 | c15d1e6e8396278aaf495a8f6949514791b6b2cb | /clonality.py | 5dea01b243347bfdddede61957f680797167d117 | [] | no_license | KnightsDiagnosticsLab/PeakFinder | c27615ac1179010e273511d4d4663f1966a06745 | cc9ea1e0e6b0d7c1eacde482fa72c965049f2e09 | refs/heads/master | 2020-09-04T17:12:55.374919 | 2020-01-29T01:07:24 | 2020-01-29T01:07:24 | 219,824,905 | 1 | 0 | null | 2020-01-28T19:22:52 | 2019-11-05T18:36:57 | Python | UTF-8 | Python | false | false | 27,235 | py | #!/usr/bin/env python3
# Importing Packages
import os
import sys
import re
import pandas as pd
import numpy as np
from scipy.signal import find_peaks, peak_prominences, peak_widths
from scipy.interpolate import InterpolatedUnivariateSpline, interp1d
from itertools import combinations
from outliers import smirnov_grubb... | [
"43114068+DocSupport@users.noreply.github.com"
] | 43114068+DocSupport@users.noreply.github.com |
a5f5ad934ab6b4548d185c57b55e75a4fe701d2d | 75dcb56e318688499bdab789262839e7f58bd4f6 | /_algorithms_challenges/pybites/bitesofpy-master/!201-300/239/test_fizzbuzz.py | 374796ea04fb39da68675115964e7be47e23b93c | [] | no_license | syurskyi/Algorithms_and_Data_Structure | 9a1f358577e51e89c862d0f93f373b7f20ddd261 | 929dde1723fb2f54870c8a9badc80fc23e8400d3 | refs/heads/master | 2023-02-22T17:55:55.453535 | 2022-12-23T03:15:00 | 2022-12-23T03:15:00 | 226,243,987 | 4 | 1 | null | 2023-02-07T21:01:45 | 2019-12-06T04:14:10 | Jupyter Notebook | UTF-8 | Python | false | false | 483 | py | from fizzbuzz import fizzbuzz
# write one or more pytest functions below, they need to start with test_
def test_fizzbuzz_base():
assert fizzbuzz(1) == 1
assert fizzbuzz(2) == 2
def test_fizzbuzz_fizz():
assert fizzbuzz(3) == 'Fizz'
assert fizzbuzz(6) == 'Fizz'
def test_fizzbuzz_buzz():
assert fi... | [
"sergejyurskyj@yahoo.com"
] | sergejyurskyj@yahoo.com |
bd0794483225cac132025003cb18438963984fcf | 178998aecae2aa9d52e43b702abd52fd6ba58b2b | /0517/defT.py | 6a4a7b45c745ddf7f69c664c45c1027a1ac5f75a | [] | no_license | www111111/git-new | 34d664cad5084d9d016f25131eb0d5a8f719d7d1 | 3fd96e79b3c3a67afbc6227db1c69294f75848c0 | refs/heads/master | 2020-03-17T10:30:24.560482 | 2018-05-28T12:24:20 | 2018-05-28T12:24:20 | 133,514,309 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 182 | py |
def sum():
a=int(input('a'))
b=input('+')
c=int(input('c'))
e=input('+')
d=int(input('d'))
if(b=='+' and e=='+'):
sum=a+c+d
return(sum)
| [
"1337872746@qq.com"
] | 1337872746@qq.com |
6a0a01d92744efe31045b17e0d9e6e64dba5448a | 8b2c5420f7e331fb6e48f3efd3cfc8a714291d4d | /finances/settings.py | 7a343222fcdb21fb5e62ad3f6c5589226c6c6412 | [] | no_license | jjjggg092/finalproject | bc297c8b623937f28565591138534c762bf36560 | 1159ca8ae47b364f84586e39176b678c3feb42f9 | refs/heads/master | 2021-06-22T12:27:34.707772 | 2019-12-10T23:13:46 | 2019-12-10T23:13:46 | 227,138,704 | 0 | 0 | null | 2021-06-10T22:22:57 | 2019-12-10T14:18:49 | Python | UTF-8 | Python | false | false | 3,124 | py | """
Django settings for finances project.
Generated by 'django-admin startproject' using Django 2.0.3.
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
... | [
"jhon.goyes@yahoo.com"
] | jhon.goyes@yahoo.com |
7b1bd474762dbf9fa0ad77e916a9a288222c806a | 44494598f8edcee0319f3b4ef69b704fbf6d88f2 | /code/twurtle/src/TestDCMotorRobot.py | aad26a3b8a287a62bb2e513d1e4b4b865f1e0879 | [] | no_license | whaleygeek/pyws | 3cebd7e88b41e14d9c1e4dbb8148de63dadbdd57 | e60724646e49287f1e12af609f325ac228b31512 | refs/heads/master | 2021-01-02T09:01:47.644851 | 2014-09-02T19:47:20 | 2014-09-02T19:47:20 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 168 | py | # This is mainly to test that the packaging has worked for robot correctly
import robot
r = robot.MotorRobot(robot.DCMotorDrive(a1=11, a2=12, b1=13, b2=14))
r.test()
| [
"david@thinkingbinaries.com"
] | david@thinkingbinaries.com |
524246a6a70b4894f83eeaef95da242ddd7c0ae0 | d5ab427f918849fabb5a6cc7efc15ebc71e3f9de | /graph.py | 31f3a8d623c797c9295444433c22b6b9108a29e8 | [] | no_license | wizacass/Intelektika_Proj | d189194b1f93e03614536fc272b704ad48cafb5e | 76700550eaeaa5483ee37a337455014a912bcbb4 | refs/heads/master | 2023-05-09T06:35:53.806076 | 2021-05-25T15:46:13 | 2021-05-25T15:46:13 | 370,747,206 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,682 | py | import matplotlib.pyplot as plt
import numpy as np
import math
from collections import Counter
class Grapher:
def __init__(self, dataset: str):
self.dataset = dataset
def histo(self, attribute, binary=False):
if binary:
counter = Counter(attribute.values)
plt.bar(coun... | [
"visak.pet0@gmail.com"
] | visak.pet0@gmail.com |
77aee12c7c33e199445d96492a54a4d8c66a7a51 | 3a4cc16bf5fa10feedbb26623f1df14594f05a25 | /jogodedados.py | abd944c9571c6f8756414a25fd04e1fdaa173ffe | [] | no_license | edsoncpsilva/Curso-Python | 12f89ae0049e7909cab5e98ff9adbf3dfa003d25 | 939ccccb9f3beb5ee7a72fa96dfd0240fbd185fa | refs/heads/master | 2020-03-24T02:21:57.707429 | 2018-08-17T20:19:45 | 2018-08-17T20:19:45 | 142,372,961 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,272 | py | #==> jogo de dados de 6 lados
#importar biblioteca
import random
#variaveis
sair = 's'
qtd = 0
#loop de interacao
while (sair == 's'):
#interacao
print()
numero = int(input('Digite o numero que irá sair entre 1 e 6?:' ))
nro_sorte = random.randrange(1, 7)
if numero == nro_sorte:
print('Acertei, estou com sor... | [
"noreply@github.com"
] | edsoncpsilva.noreply@github.com |
00c5033bfa5fe0ed63fc2a721b1cf2c87e5f7225 | 8acbb01acf5c69806037669868bd07062cf2f7a0 | /Django_demo/settings.py | 6a7d0c4495dd4313bc760832cf389b1e0c8847c1 | [] | no_license | godhunter1993/Django | 958c3ffe9c3bc28fbf0aa9f905a1867f52f7c4e4 | e44c48f7c9e5aa1e5d484de3775d9902f5377b5f | refs/heads/master | 2020-03-20T19:33:23.521774 | 2018-06-17T09:32:54 | 2018-06-17T09:32:54 | 137,642,783 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,256 | py | """
Django settings for Django_demo project.
Generated by 'django-admin startproject' using Django 2.0.2.
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 o... | [
"15150568410@139.com"
] | 15150568410@139.com |
b645ed1a0ad19262304bef16a69381cbb05cbc2c | 4a211e279ec89239033c5fe2d6d8d3e49b48d369 | /salvo/src/lib/job_control_loader.py | d179d460ec8b996e850b26e0c4f04fbb774d9d79 | [
"Apache-2.0"
] | permissive | envoyproxy/envoy-perf | cfb1e8f7af806600f11ebc235c1a72939420b087 | d131bc2f1a7f8ae4f640da30fd30c027735d9788 | refs/heads/main | 2023-08-31T14:02:50.891888 | 2023-08-24T16:19:26 | 2023-08-24T16:19:26 | 94,845,161 | 109 | 29 | Apache-2.0 | 2023-08-24T16:19:28 | 2017-06-20T03:20:02 | Python | UTF-8 | Python | false | false | 3,111 | py | """This object abstracts the loading of json strings into protobuf objects."""
import json
import logging
import yaml
from google.protobuf import json_format
import api.control_pb2 as proto_control
log = logging.getLogger(__name__)
def _load_json_doc(filename: str) -> proto_control.JobControl:
"""Load a disk file... | [
"noreply@github.com"
] | envoyproxy.noreply@github.com |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.