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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
4ed2aade446a764c487d6ec04db4d7511f4a07c4 | 6f4c5dbabeee9284c2de7de1cc84602b841c4549 | /flasky.py | 6711dc36c414f54dc19193cab4dd452dfdf9242f | [] | no_license | Tulupovden/myWebSite | 166c5d5b96f7d010deaf89826c1f16ff16d0c239 | 0a73bffe6718d900e1b6e93b419f5696881ab8dc | refs/heads/master | 2023-05-15T09:19:35.646385 | 2021-06-08T13:45:20 | 2021-06-08T13:45:20 | 373,186,088 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 765 | py | import os
import click
from flask_migrate import Migrate
from app import create_app, db
from app.models import User, Role, Permission, Post, Follow, Comment
app = create_app(os.getenv('FLASK_CONFIG') or 'default')
migrate = Migrate(app, db)
@app.shell_context_processor
def make_shell_context():
return dict(db=db... | [
"tulupovden@yandex.ru"
] | tulupovden@yandex.ru |
5c139383ca42639a2047f505d5cf784f44afe451 | 42c19ffb5b111c498398f7c9e1a7ab73d1084478 | /Exercise5_1_Rus_P.py | 9bdebf62fe42ea51e401ccfd8e1f9c6ac6a682d0 | [] | no_license | Russyii/CP3-Rus-Pateepawanit | 02e3f743dc595b3ec3648d3ce504c58d868e555d | 46f53c248df6699b4b51c09c4c96d166319259ee | refs/heads/master | 2022-10-10T15:36:13.197874 | 2020-06-10T09:15:12 | 2020-06-10T09:15:12 | 257,489,952 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 162 | py | x = float(input("Enter Number :"))
y = float(input("Enter Number :"))
print(x,"+",y,"=",x+y)
print(x,"-",y,"=",x-y)
print(x,"*",y,"=",x*y)
print(x,"/",y,"=",x/y)
| [
"ryosohk@gmail.com"
] | ryosohk@gmail.com |
d2875d1dacda24814c32ad5bde2d377e28997d5f | 1ccef32e60d632eae62254ebcc6b1160bab89f50 | /src/approaches/progressive.py | 48d6ae7729b26192a0621e0750fdb89f1bf6ebd4 | [
"MIT"
] | permissive | JosephKJ/hat | fc2ddcb6514406e67a91eeccb62f968c20bc0b59 | a6386c8a5435573034f3a55c86438c0a82ee9d8d | refs/heads/master | 2022-12-01T09:19:41.551955 | 2020-08-11T01:27:37 | 2020-08-11T01:27:37 | 286,484,709 | 0 | 0 | MIT | 2020-08-10T13:35:55 | 2020-08-10T13:35:54 | null | UTF-8 | Python | false | false | 4,258 | py | import sys,time
import numpy as np
import torch
import utils
class Appr(object):
def __init__(self,model,nepochs=100,sbatch=64,lr=0.05,lr_min=1e-4,lr_factor=3,lr_patience=5,clipgrad=10000,args=None):
self.model=model
self.nepochs=nepochs
self.sbatch=sbatch
self.lr=lr
self... | [
"jsj@jsj-mac.hi.inet"
] | jsj@jsj-mac.hi.inet |
a9fc0249018acebb01f3542dbd28a97430eda8d6 | 11f301e2d2452d1a3e8dda57c468a2b6a57b30d6 | /tests/test_aclosing.py | 19e852af09829348803bc1a29d4a43045c183601 | [
"BSD-3-Clause"
] | permissive | HeavenVolkoff/async_tools | 6ed4fd49fec1d67ec32cd2f534177de3918dc5e7 | c2fb373f4de11542f61fdbf596955f118a2ba467 | refs/heads/master | 2021-06-02T02:56:34.987963 | 2021-05-25T21:30:53 | 2021-05-25T21:30:53 | 158,291,664 | 4 | 1 | BSD-3-Clause | 2021-05-25T20:46:43 | 2018-11-19T21:21:19 | Python | UTF-8 | Python | false | false | 1,855 | py | # Internal
import asyncio
import unittest
# External
import asynctest
from async_tools.context import aclosing
class MyTestCase(asynctest.TestCase, unittest.TestCase):
async def test_aclosing_async_iterator(self):
async def async_iterator():
for a in range(1, 10):
await async... | [
"vasconcellos.dev@gmail.com"
] | vasconcellos.dev@gmail.com |
283b7901d5be2514937f38df465026e60ade310e | 4a5092d6f210c691e6b95ec362862a2d4c1bf3d3 | /django/app_marca/marca/models.py | 10df74b4123b881ec8a427159231707ec28b9882 | [] | no_license | anacsv/OlistTechExperience | 7c189447e174942677c8e378ededf32ae8636bff | c477ef99df003684f0e9fdb60fca539df604fac6 | refs/heads/master | 2023-03-24T09:13:54.078060 | 2020-07-09T19:02:28 | 2020-07-09T19:02:28 | 276,096,844 | 0 | 0 | null | 2021-03-19T23:43:33 | 2020-06-30T12:48:54 | Python | UTF-8 | Python | false | false | 246 | py | from django.db import models
from django.utils import timezone
class Marca(models.Model):
nome = models.CharField(max_length=200)
data_criacao = models.DateTimeField(default=timezone.now)
def __str__(self):
return self.nome | [
"anapaula.carneiro@olist.com"
] | anapaula.carneiro@olist.com |
5d186ca311b371a38b7ee1263af5403e41dbf71d | 3d2b0091c13d743965ac6efd00e566b74a26ff0b | /teststarter.py | 4443046675d2ce6f3fb32406110503facf14af93 | [] | no_license | Liarmen/kaylog | c65f597b8152ea59261c6e3ade5d173c461cf52a | 2c823190c8b95fd79612489c764e8c3e0de24192 | refs/heads/main | 2023-01-31T16:28:04.047292 | 2020-12-17T22:00:03 | 2020-12-17T22:00:03 | 321,759,175 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 264 | py | import time,os
import subprocess
from subprocess import Popen
while 1:
p = Popen(r'C:\\Users\\Admin\\Desktop\\лфн\\python.py', shell=True)
time.sleep(60)
p.kill()
p = Popen(r'C:\\Users\\Admin\\Desktop\\лфн\\test.py', shell=True)
time.sleep(10) | [
"noreply@github.com"
] | Liarmen.noreply@github.com |
8b69bf2b7c8280abd5c5fdb09ed901c008f23423 | c744f3ae44ab1a692b4b6a39ce2c3045c81406c4 | /venv/bin/pip | 67066d339c88af6a7e54c8d3ea9ae96a32c1bbb3 | [
"Apache-2.0"
] | permissive | qq529952515/OA | f1e56d37c8e4b35b6f2e9bbdd0fb8370b90cc64d | ccf17b17b3122f9650bb1ab939befad784e9b4e0 | refs/heads/master | 2023-05-07T22:16:04.130146 | 2020-05-17T07:20:59 | 2020-05-17T07:20:59 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 236 | #!/home/yc/feature_As/venv/bin/python3
# -*- coding: utf-8 -*-
import re
import sys
from pip._internal import main
if __name__ == '__main__':
sys.argv[0] = re.sub(r'(-script\.pyw?|\.exe)?$', '', sys.argv[0])
sys.exit(main())
| [
"15294786074@163.com"
] | 15294786074@163.com | |
d2a99d0557c3675935f89fda74ebb38be8c9b447 | 4c87636f3cf222cab568b8db1d9b365eb4d0607c | /test_huya_danmu.py | 7e3e284534403596633eb17cef6cef7acf242ab8 | [
"MIT"
] | permissive | yw94/danmu | eeedd5f7309b8b95d6036f7754d8b0e11ad777a1 | e2e22f6505fd005b2391be466286234eb3f31412 | refs/heads/master | 2020-12-30T03:26:35.690193 | 2020-02-06T10:48:31 | 2020-02-06T10:48:31 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 787 | py | import asyncio
from huya.ws_huya_danmu_client import WsDanmuClient
room = 'lafeng'
area_id = 0
async def test_danmu_client(client):
connection = client(room, area_id)
asyncio.ensure_future(connection.run_forever())
await asyncio.sleep(2000)
await connection.reset_roomid(952595)
print('RESTED')
... | [
"yjqiang1@gmail.com"
] | yjqiang1@gmail.com |
654a6565e52dcca6b432fa37962d8ba0ed6287ab | 507597760762f6eaed758f63b0ea17f606fa5410 | /model.py | 2ce9a7dc5093a87350905d5351e3de901aff92ef | [] | no_license | BlackWingedKing/Recursive_Neural_Networks | a884040a9c6f06ad02c888c88ab0adbc12b3980a | e5b3c970eba11fadd677814083ad44785c2e20f8 | refs/heads/master | 2020-04-08T07:31:40.678199 | 2018-11-28T11:13:34 | 2018-11-28T11:13:34 | 159,141,587 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 13,117 | py | import imp
import torch
import torchnlp
import torch.nn as nn
import torch.nn.functional as F
import torch.optim as optim
import pickle
import bcolz
import nltk
import pandas as pd
from nltk.corpus import treebank
from nltk import tree, treetransforms
from copy import deepcopy
from nltk.draw.tree import draw_trees
from... | [
"noreply@github.com"
] | BlackWingedKing.noreply@github.com |
f9d0814cd0adf4cd5559039e53ba84fcec6d8687 | a9565d2604aeeb9735b1e7533f71eb97773ae957 | /02.pythonbasis/13.mysql_opera/02.mysql_opera02.py | a315077e2177968f049f965f75411945176b96d6 | [] | no_license | yaolongc/gpcloud | 17b794f11119b67dd9a105abe5e0a02eb94703ea | b6987c4adc1204f7f6c6864a42ec603ec9df01e5 | refs/heads/master | 2020-09-03T08:55:28.234468 | 2019-08-27T04:00:39 | 2019-08-27T04:00:39 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 340 | py | import pymysql
client = pymysql.connect(host='39.100.110.135', user='bavduer', password='(Bavduer..0725)',
db='Grade', cursorclass=pymysql.cursors.DictCursor)
cursors = client.cursor()
sql = 'select * from {};'
cursors.execute(sql.format('FirstStage'))
for i in cursors.fetchall():
print(... | [
"bavduer@163.com"
] | bavduer@163.com |
6736a75c3d4463acb7ea60aee4e3e6745d29213b | 688385c3e156ff83141a9fd2f5c22d5f8c4cf46d | /cursoemvideo/069 Analise de dados de grupo.py | 95012214984ab7bd61f652f7524329888cb943a3 | [] | no_license | silvamm/atividades_python | a8687ba5a6e8565ef8e965a163eb59152a5ff5c5 | 038565afa256125cd584dc2abab9f6a86a899da9 | refs/heads/master | 2020-03-11T03:56:19.174016 | 2018-08-22T16:27:15 | 2018-08-22T16:27:15 | 129,763,164 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,256 | py | #Crie um programa que leia a idade e o sexo de várias pessoas.
# A cada pessoa cadastrada, o programa deverá perguntar se o usuário quer ou não continuar.
# No final, mostre:
# A) quantas pessoas tem mais de 18 anos.
# B) quantos homens foram cadastrados.
# C) quantas mulheres tem menos de 20 anos.
homens = mulher... | [
"silvamm.matheus@gmail.com"
] | silvamm.matheus@gmail.com |
9569ef8bfd2c981b983b6f90dd11173d36049a45 | 841c30c8ef7e26d183f2ee50b3de1e57219cee49 | /CCD/alumnijobs/migrations/0001_initial.py | 0041bc25cc05c013da42b45e01bf0efd30d277f7 | [] | no_license | narenchoudhary/CCD | 1991808fbc914a1c1f656807063fe5a180729eb8 | e4d56f6f7e6fc27fae022f1d17fe6d58ca1e25de | refs/heads/master | 2020-12-29T03:35:27.651473 | 2017-04-07T23:14:03 | 2017-04-07T23:14:03 | 53,730,029 | 0 | 1 | null | 2020-04-08T23:09:08 | 2016-03-12T12:17:47 | HTML | UTF-8 | Python | false | false | 1,558 | py | # -*- coding: utf-8 -*-
# Generated by Django 1.9.8 on 2016-09-10 04:02
from __future__ import unicode_literals
from django.db import migrations, models
class Migration(migrations.Migration):
initial = True
dependencies = [
]
operations = [
migrations.CreateModel(
name='AlumJob... | [
"n.choudhary@iitg.ac.in"
] | n.choudhary@iitg.ac.in |
9651901898793df56347602451eb1e0ee5a21e22 | ca7aa979e7059467e158830b76673f5b77a0f5a3 | /Python_codes/p03729/s784741556.py | 223dc3c245f8c168dc6e9e30b687ce73313cf6ab | [] | no_license | Aasthaengg/IBMdataset | 7abb6cbcc4fb03ef5ca68ac64ba460c4a64f8901 | f33f1c5c3b16d0ea8d1f5a7d479ad288bb3f48d8 | refs/heads/main | 2023-04-22T10:22:44.763102 | 2021-05-13T17:27:22 | 2021-05-13T17:27:22 | 367,112,348 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 110 | py | a, b, c = input().split()
if a[-1] == b[0] and b[-1] == c[0]:
ans = "YES"
else:
ans = "NO"
print(ans)
| [
"66529651+Aastha2104@users.noreply.github.com"
] | 66529651+Aastha2104@users.noreply.github.com |
193ece4a5294fd8bd56c8066f8b303bd16cd43d3 | 5203254e4ab5008b58f61ae4eb7e04b0206d14ed | /button.py | ddad44825e627f1bcc3a47e04e5bf83320cf9939 | [] | no_license | rodriguesmsb/SPG | 40fe4d4a23615a9ce3c480e53bda8afcbc88e466 | 0dc780957f3eb0d89aeeb5dcef8efad0fbd6ad0a | refs/heads/main | 2023-04-22T16:25:40.657386 | 2021-05-17T22:42:13 | 2021-05-17T22:42:13 | 358,280,852 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,015 | py | #!/usr/bin/env python3
# -*- coding: utf-8 -*-
"""
Created on Thu Apr 15 2021
@author: Moreno rodrigues rodriguesmsb@gmail.com
"""
import pygame
import player
class Button():
def __init__(self, x, y, image):
self.image = image
self.rect = self.image.get_rect()
self.rect.x = x
sel... | [
"rodriguesmsb@gmail.com"
] | rodriguesmsb@gmail.com |
bcba9846b44706316237c0edfffb18a54d44285f | df6beae14359028bb7455b63cbca75f12e47ac9c | /venv/bin/wheel | c2381c36e71c1ae2ac4f31c9044fc7419fecdfc9 | [] | no_license | natvern/Infamous-Pacman | 5632a7ceb7fd524b4f271e2d87948d71ab349d52 | d303bffc49fd26f0a18b374916c925edd8efc1a4 | refs/heads/master | 2020-04-08T05:37:38.072856 | 2019-04-18T11:14:08 | 2019-04-18T11:14:08 | 159,067,932 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 241 | #!/Users/hiaak/Documents/Pacman/venv/bin/python
# -*- coding: utf-8 -*-
import re
import sys
from wheel.cli import main
if __name__ == '__main__':
sys.argv[0] = re.sub(r'(-script\.pyw?|\.exe)?$', '', sys.argv[0])
sys.exit(main())
| [
"srahmoun@andrew.cmu.edu"
] | srahmoun@andrew.cmu.edu | |
967e2b50b5d112b954332d50ceb18563319b5eb8 | a01683619cf59e83416549b1317113e6df991e6e | /extractor/no_export.py | ad49eeafd453f4d9a338cec0eb738f8b73eac322 | [] | no_license | pmolufmg/irr_miner | d6b808ca8956903dde67ddeda346174c600e2759 | cdd31b05f232659e0684e303b6fca12a3364a902 | refs/heads/master | 2023-02-27T21:43:07.214659 | 2021-02-10T14:47:39 | 2021-02-10T14:47:39 | 202,779,542 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,357 | py | from config.config import *
import re
class NoExport:
def __init__(self, as_patt, comm_patt, neg_patt, exp_patt, clean_patt, info_patt, c_type):
# COMMUNITY FORMAT (INT:INT)
self.community = comm_patt
# COMMUNITY TYPE
self.c_type = c_type
# AS FORMAT
self.asn = a... | [
"pmolufmg@gmail.com"
] | pmolufmg@gmail.com |
485f78bf0f29fec745e66e6f68080ca1aaf408bf | ca7aa979e7059467e158830b76673f5b77a0f5a3 | /Python_codes/p02574/s928939056.py | 075c9216b7de983528e8012b9dc8198741dc64ee | [] | no_license | Aasthaengg/IBMdataset | 7abb6cbcc4fb03ef5ca68ac64ba460c4a64f8901 | f33f1c5c3b16d0ea8d1f5a7d479ad288bb3f48d8 | refs/heads/main | 2023-04-22T10:22:44.763102 | 2021-05-13T17:27:22 | 2021-05-13T17:27:22 | 367,112,348 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 614 | py | from math import gcd
from functools import reduce
k=10**6+1
def judge(n,a):
c=[0]*k
for x in a:
c[x]+=1 #対応する数の個数を記録
t=any(sum(c[i::i])>1 for i in range(2,k)) #自身を約数に持つ数が2つ以上与えられたリストに存在するような数が一つでもあるかどうか
t+=reduce(gcd,a)>1 #全体について1以外の公約数があれば1加える
return ['pairwise','setwise','not'][t]+' coprime' #全体に公約数があれば... | [
"66529651+Aastha2104@users.noreply.github.com"
] | 66529651+Aastha2104@users.noreply.github.com |
8f3823f30e9fe5b91a24c5a069368f02949d4f3d | a590cb0c9b232ad98d17a9917a36930c6a2c03f8 | /8kyu/Pre-FizzBuzz Workout 1.py | 3362f123258850350be517a6632dd369785ccf29 | [] | no_license | AbbyGeek/CodeWars | 6e10c10cbdb11f2df17a657d11ff5ffa79a5fb0b | 64dddda9f2a14a0592cc946b35302c4bd9bc569e | refs/heads/master | 2020-12-21T00:14:53.665879 | 2020-01-26T01:16:41 | 2020-01-26T01:16:41 | 236,252,030 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 51 | py | def pre_fizz(n):
return [x+1 for x in range(n)] | [
"abbyrosewest@gmail.com"
] | abbyrosewest@gmail.com |
adf408a55229cf4a8c547b27023d71c394791342 | deee980ee211c17d90ddca077616293aeeea28e2 | /mouse_wheel/mouse_wheel.py | 8245ae62d8b006a324a00a311a40e543ec39bff1 | [
"MIT"
] | permissive | shalevy1/dpg-examples | e1d5d6a6dc28cac2135f4a3e65897a8ddd4651f8 | abb15311625144e1391ca0eca3d49c727ad4b926 | refs/heads/main | 2023-04-29T22:47:30.539579 | 2021-05-10T01:13:11 | 2021-05-10T01:13:11 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 910 | py | """."""
from dearpygui import core, simple
class ExampleCallbackMouseWheel():
def __init__(self):
self.__fontSize = 1.
self.__fontSizeStep = .1
self.__fontSizeRange = (.8, 15.)
core.set_global_font_scale(self.__fontSize)
core.set_theme("Cherry")
core.set_main_window_size(960, 540)
with simple.window("... | [
"amorano@gmail.com"
] | amorano@gmail.com |
1619841e22d47095341a3633936eb0d746446e6c | 1ff31cedc4794083e213e6637deaacab49cfdd9a | /pyatv/mrp/tlv8.py | c8675b1741300017851aee0f599941efce39e7b5 | [
"MIT"
] | permissive | dschu012/pyatv | 910cefec45fcfe94fe9b3fee59672299215db24b | 6496548aee09ff95f5515abb172c1ba19b9d995b | refs/heads/master | 2020-12-04T06:35:25.957921 | 2020-01-01T14:38:54 | 2020-01-01T18:35:11 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,613 | py | """Implementation of TLV8 used by MRP/HomeKit pairing process.
Note that this implementation only supports one level of value, i.e. no dicts
in dicts.
"""
# Some of the defined tags used by the pairing process
TLV_METHOD = '0'
TLV_IDENTIFIER = '1'
TLV_SALT = '2'
TLV_PUBLIC_KEY = '3'
TLV_PROOF = '4'
TLV_ENCRYPTED_DATA... | [
"pierre.staahl@gmail.com"
] | pierre.staahl@gmail.com |
3382f42a4b2e2ce240ed86af00770c5241cf509e | c29bb41cb5fc4d3154d790896bb83135b34061e1 | /gpsite/techspecs/apps.py | 32ee67f73483dbd88e57bb351e9227ecae3efaf6 | [] | no_license | muhammednasr97/DBS | 79ecc6a73d25ec99e3a5a4ca0c971edd7586d60a | cf03cbef21a9e4f56bac3815df23542bd8e08bce | refs/heads/master | 2022-12-04T17:11:38.731491 | 2020-08-19T14:09:44 | 2020-08-19T14:09:44 | 269,521,944 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 93 | py | from django.apps import AppConfig
class TechspecsConfig(AppConfig):
name = 'techspecs'
| [
"muhammednasr97@yahoo.com"
] | muhammednasr97@yahoo.com |
6933f6e88e4acb26bdd751b61eb9bddd2becf1f0 | c7094633a197faceaa26be96764e6ff8793356da | /main.py | 9fe0d3a7cb5c539f908d998734d0d1ad97143384 | [] | no_license | draguve/idCoreLeds | 3c6f1d70a5d4232fc0c5dc1f3cc7430969bb4972 | 538f6f75c232c5de643d0fea9e6701f4dd31c520 | refs/heads/master | 2020-04-09T19:55:08.145623 | 2018-12-05T20:09:17 | 2018-12-05T20:09:17 | 160,557,464 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 799 | py | #!/usr/bin/env python
import signal
import sys
import pyaudio
import wave
import audioop
def signal_handler(sig, frame):
stream.stop_stream()
stream.close()
p.terminate()
sys.exit(0)
CHUNK = 256
FORMAT = pyaudio.paInt16
CHANNELS = 1
RATE = 44100
signal.signal(signal.SIGINT, signal_handler)
print('Pre... | [
"ritwikpatil1998@gmail.com"
] | ritwikpatil1998@gmail.com |
16755970fd27e7420efac199787656deb390ccc0 | f1a99bfa62bebd6dae4561eca819a16c4f324501 | /NoDuesPortal/asgi.py | 1232f89511cdee65237d116aab512d75cd01cc5a | [] | no_license | Mandloi7/Test-proj | a9cb097385d8ed1400191f9d6e86aebb984f625f | c85556f14a82014ed6dd669454a1c399e2bdc93f | refs/heads/master | 2021-07-22T09:26:18.756389 | 2020-08-14T20:47:03 | 2020-08-14T20:47:03 | 206,291,772 | 0 | 2 | null | 2020-08-14T20:47:04 | 2019-09-04T10:18:45 | Python | UTF-8 | Python | false | false | 401 | py | """
ASGI config for NoDuesPortal 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/dev/howto/deployment/asgi/
"""
import os
from django.core.asgi import get_asgi_application
os.environ.setdefault('DJANGO_... | [
"ritik.mandloi.2000@gmail.com"
] | ritik.mandloi.2000@gmail.com |
6b356088cae789276f780f39f65178dba61d18a4 | fb1b74f17142a053e20ddc66f5f96b6317c75666 | /story/urls.py | 737f0617e59723affc29af0a9f44f700e75fc27c | [
"BSD-3-Clause"
] | permissive | yiyumo/djangogirls | e4fd3739282113e8410131a37b187faf769a0a64 | 53d2c7f977f10a5e6dc34fe7372c9ae3814bca9d | refs/heads/master | 2022-12-15T09:24:36.275585 | 2020-04-01T16:17:03 | 2020-04-01T16:17:03 | 252,219,461 | 1 | 0 | BSD-3-Clause | 2022-11-22T04:40:29 | 2020-04-01T15:48:35 | HTML | UTF-8 | Python | false | false | 167 | py | from django.conf.urls import url
from story.views import StoryListView
app_name = "story"
urlpatterns = [
url(r'^$', StoryListView.as_view(), name='stories'),
]
| [
"462163740@qq.com"
] | 462163740@qq.com |
270e6bc0ac14bf839dca704741766f78acc81d4f | 65875c8b063e6b154d396f388a2a59425cce6da0 | /Lista_06/Artur e Guilherme Ferreira/Q2 L6/revista.py | 695220d3bf76c71c3bf42cc10a30fc41ccd72933 | [] | no_license | limapedro2002/PEOO_Python | fbcf3af1003a56e64eac9f95e0fedc8d2e2c923b | a099fd45ac189415a493b0183e900514c602915b | refs/heads/main | 2023-04-27T07:39:37.636631 | 2021-05-10T19:17:15 | 2021-05-10T19:17:15 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 609 | py | class Revista:
def __init__(self,codigo,titulo,tipo, edicao):
self.__codigo = codigo
self.__titulo = titulo
self.__tipo = tipo
self.__edicao = edicao
self.__lista_edicoes = []
def add_revista(self,edicao):
self.__lista_edicoes.append(edicao)
def listar_edicoes(self):
print("titulo:",self.__titu... | [
"noreply@github.com"
] | limapedro2002.noreply@github.com |
c37fddbe72a4bf5e7895fef5d2695c5dec44a3c9 | f3c2fa4c6ef32e01b98ac56a2e25419152d69208 | /gpio-utils/radiosimulator.py | 2c6810bd11fb90a6e076c1bbac1c5bd5e6bd0e97 | [
"MIT"
] | permissive | deets/brombeerquark | bd4687d42f9466cd5f6843df6a49e647cf3e2fcc | 9314bc6adaf19ee3868612c8aafdce0f1ebbabb9 | refs/heads/master | 2021-07-19T07:02:22.427227 | 2021-02-28T12:45:57 | 2021-02-28T12:45:57 | 47,883,045 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,399 | py | from __future__ import print_function
from functools import partial
import time
import threading
import Queue
from tfa import TimedFiniteAutomaton
def simulate_gpio_events(queue):
time.sleep(1.0)
# just increase volume by pressing/releasing once
queue.put("volume+pressed")
queue.put("volume+released")... | [
"deets@web.de"
] | deets@web.de |
6beaf98b5e814440dd35939b8f93ddfce0c683ae | 51108a50ffb48ad154f587c230045bb783f22240 | /bflib/items/writing/base.py | 44c7befeebcb6caac2b247b0ad366f89b2244aba | [
"MIT"
] | permissive | ChrisLR/BasicDungeonRL | c90bd0866c457557cccbad24e14689d5d6db7b00 | b293d40bd9a0d3b7aec41b5e1d58441165997ff1 | refs/heads/master | 2021-06-15T13:56:53.888646 | 2019-08-05T16:33:57 | 2019-08-05T16:33:57 | 104,269,987 | 3 | 0 | MIT | 2019-08-05T16:28:23 | 2017-09-20T21:35:19 | Python | UTF-8 | Python | false | false | 125 | py | from bflib.items import listing
from bflib.items.base import Item
@listing.register_type
class WritingItem(Item):
pass
| [
"arzhul@gmail.com"
] | arzhul@gmail.com |
7cdaab92efddeec61f39a7ae65056fcca02fdb23 | e05ba87e0a2593167b86bebc4fd695a34bbe1313 | /imgur_api_project/imgur_project.py | e8b298d70648999d88340b3fe59e0a63e57e63f1 | [] | no_license | zain08816/Teaching_Materials | 6a8f179cbdfdf3e8b0af7d36db072d613de4f993 | 1df55341b7ea84a3a508114d3d3ffc2f796cdf57 | refs/heads/master | 2021-07-14T17:14:52.389620 | 2020-10-02T17:23:16 | 2020-10-02T17:23:16 | 213,763,135 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,277 | py | import base64
import sys
import requests
import json
import webbrowser
#this is reading the image from console
#eg. in consol I would type in: python3 imgur_project.py shaq.jpg
#this program and the image needs to be in the same place for this to work. else, you put the directory where
#it is located
img = sys.arg... | [
"zain08816@gmail.com"
] | zain08816@gmail.com |
51be5e11bf85efcb62360589b11709bd4141c04c | cde7e790103d94b6f5fb263196923f25ee50b57d | /matflow_formable/snippets/fit_yield_function.py | 457f5ae293a2a9019e96e54941bd25ea719c9848 | [
"MIT"
] | permissive | LightForm-group/matflow-formable | b651ee192195c26335016f54c3575f1d26771468 | 1b13a9addd7f232ef2f101a35aeccfe3eea1f7a4 | refs/heads/master | 2023-04-06T16:26:56.066710 | 2022-08-08T11:25:04 | 2022-08-08T11:25:04 | 262,661,868 | 4 | 3 | MIT | 2022-02-15T15:41:12 | 2020-05-09T21:26:57 | Python | UTF-8 | Python | false | false | 3,387 | py | from formable import LoadResponse, LoadResponseSet
from matflow.scripting import main_func
import numpy as np
@main_func
def fit_yield_function(
yield_function_name,
yield_point_criteria,
uniaxial_response,
multiaxial_responses,
fixed_parameters,
initial_parameters,
opt_parameters,
):
... | [
"adam.jp@live.co.uk"
] | adam.jp@live.co.uk |
342f10467123051dda12ff9cfcfa59cb2048ea18 | 7bdc1a3565ba8964658a749fb05ddc27f20d0a33 | /scripts/mvn_incremental | d92faf0f5cebe8ccda4cf17fbd1335426c57b1b4 | [] | no_license | wuan/ci-tools | 375cd64d0197e7e482255661c998f11e06c3e404 | 6796ee0a9f0b11a4c4ac7c05bdad047e6edd3313 | refs/heads/master | 2020-12-24T16:24:02.820016 | 2016-03-04T07:33:19 | 2016-03-04T07:33:19 | 39,160,905 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 1,229 | #!/usr/bin/env python
# coding=utf-8
"""
Copyright 2015 Andreas Würl
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 require... | [
"andi@tryb.de"
] | andi@tryb.de | |
463d4bc24c7581305dbc13bd5259ed196c5bfffb | 87970695aad664b7db2220748ab0496421d98d03 | /article/migrations/0009_auto_20200810_0526.py | 0ab2888d2e30aacac6271a3e084db1765746911c | [] | no_license | NikhilCodes/Django-News | 84328aad01c0156aa464490353ac9116a42eb7f7 | 6a00bb650efb96b7365f496c47698b315781d226 | refs/heads/master | 2022-11-25T16:33:30.948960 | 2020-08-10T08:36:27 | 2020-08-10T08:36:27 | 286,394,925 | 3 | 0 | null | null | null | null | UTF-8 | Python | false | false | 620 | py | # Generated by Django 3.1 on 2020-08-10 05:26
from django.db import migrations, models
import django.utils.timezone
class Migration(migrations.Migration):
dependencies = [
('article', '0008_auto_20200810_0526'),
]
operations = [
migrations.RemoveField(
model_name='article',
... | [
"nikhil.nixel@gmail.com"
] | nikhil.nixel@gmail.com |
88e05de33712c60f61bec5971c30dddc1be8e992 | 75d9bae2c0102d489b703ab7ad2bd4058f4468be | /sets_4.py | f4116ed2307d1ebdcf26d00ddcc88d32e38f1a87 | [] | no_license | icebowl/python | 19f90b970a5a1f7ec08c7bae5c1e82b271ec65fd | 6b1a57c224981516c8d490503bd536586c42403a | refs/heads/master | 2021-07-26T00:56:24.679771 | 2021-06-22T11:57:48 | 2021-06-22T11:57:48 | 100,441,849 | 2 | 3 | null | null | null | null | UTF-8 | Python | false | false | 540 | py | #sets_3.py cwc
alpha = {"a","b","c","d","e","f"}
bravo = {"z","y","x","w","v"}
charlie = alpha.union(bravo)
charlie.update("g","h","i","j","k")
for x in charlie:
print(x," ",end="")
print()
#pop all the records
for i in range(len(charlie)):
print("pop ",i," ",end="")
thepop = charlie.pop()
print (thepop)
... | [
"coleman@owt.com"
] | coleman@owt.com |
8af3e2ad066d0a2c03f009797f6900357ee8d4f8 | af67316880c483ebcb3e0c3f838d567f82283ba3 | /match_viaf_tulane.py | 5349a5b68aede68842dfe4662a7bb0c8298f95d9 | [] | no_license | thisismattmiller/viaf-match | 4f51923b9ad7beba6d0f29d2726deeb286816cd2 | bf14adfc226737fe12483df34a19366098342518 | refs/heads/master | 2021-01-24T21:48:42.107739 | 2014-09-01T22:19:49 | 2014-09-01T22:19:49 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,194 | py | # -*- encoding: utf-8 -*-
import time, requests, json, sys, csv
import xml.etree.ElementTree as etree
class viafSearch:
viafURL = 'http://viaf.org/viaf/search?query=local.personalNames+%3D+{SEARCH}&httpAccept=text/xml'
sourceFile = 'tulane-no-dupes.csv'
resultsFile = 'tulane_results.json'
results = {}
re... | [
"wjlevay@gmail.com"
] | wjlevay@gmail.com |
03d53a2fa862909aa754424596e338d8baa4977a | 03cbc74c3b5c3147e2a5ccfe668594350ac32e09 | /lib/game_controller.py | 9ce9f53324d0447b7aa41f4d4860de35d7426544 | [] | no_license | yapo/scoreboard | 51e1b5ae07ad23390b920c2a8cad13f4e9e71a4f | f35457125e377d19d912509b3b7c7749fc5a15aa | refs/heads/master | 2021-01-18T12:05:53.859445 | 2014-08-30T21:33:58 | 2014-08-30T21:33:58 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,895 | py | import sys
class game_controller(object):
def __init__(self, config):
self.config = config
self.player1 = player('white')
self.player2 = player('black')
self.last_scored_player = None
self.victory_callbacks = []
self.danger_zone_callbacks = []
self.combo_breaker_callbacks = []
self.first_blood_callba... | [
"root@raspberrypi.(none)"
] | root@raspberrypi.(none) |
e075f370a97eb97ee3fc17ee4c6814539f1e7217 | c22253c12dbcd0332a97374eb556e5a38844c893 | /lib/plugin/logic.py | 7680f611e22cce67c6675c604f1da3c469c9e911 | [] | no_license | passdacom/SJVA3 | eb7a6731a4edce763757949845247d2f4ec2718c | f204804d983b7d96f56a82abd39b3f3bb3d25ab5 | refs/heads/main | 2023-08-31T21:55:39.679826 | 2021-10-19T03:00:32 | 2021-10-19T03:00:32 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 10,113 | py | # -*- coding: utf-8 -*-
#########################################################
# python
import os
import traceback
import time
import threading
import platform
# third-party
# sjva 공용
from framework import db, scheduler
from framework.job import Job
from framework.util import Util
#################################... | [
"cybersol@naver.com"
] | cybersol@naver.com |
c11ec31a70ef5a17c1683d49edcf81e25a0b7534 | 85194de8e2f92add25bc9f9df091ed381dfbe6b0 | /db_update/Snakefile | d98f61181a68e56a5ed2605319072df59d8b3514 | [] | no_license | linxingchen/agnostos-wf | daa7de6b26ec6012575e6b5b2f8a0aa2e85a05cf | 8bedfc866b9308aa7204ce0d3e0dd1986ae0dfef | refs/heads/master | 2022-11-26T13:06:24.680226 | 2020-07-31T09:22:27 | 2020-07-31T09:22:27 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,453 | # shell.executable("/bin/bash") shell.prefix("source $HOME/.bashrc; ")
import glob
configfile: "config/config.yaml"
workdir: config["wdir"]
#SAMPLES, = glob_wildcards(config['new_data'] + "/{smp}_contigs.fasta")
rule all:
input:
prodigal_fa_done = config["rdir"] + "/gene_prediction/gp.done",
pfa... | [
"chiara.vanni5@gmail.com"
] | chiara.vanni5@gmail.com | |
23b2a6d4d56e1ea8e008aa3cbb98acddcc9fe8ef | 2d138e625134e0c02a56b39ebe1a06732a814b43 | /code/unshare.py | 8c2edceb1dd42ee62d0d337dfa01c4f6ba574a68 | [] | no_license | raven38/unshare | 95d35cbe31d5f9203b2ddf2bb317f877e75a07a6 | 966572a27d1c386c9a2f37175249dc765e3d0c65 | refs/heads/master | 2021-09-06T05:13:46.522648 | 2018-02-02T17:04:36 | 2018-02-02T17:04:36 | 117,635,022 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,175 | py | import numpy as np
import chainer
from chainer import functions as F
from chainer import links as L
from chainer import optimizers
from chainer import cuda
class Unsharing(object):
def __init__(self, rate, source):
self.rate = rate
self.source = source
def __call__(self, opt):
for t_... | [
"imperialroyalguard38@gmail.com"
] | imperialroyalguard38@gmail.com |
7b7484d1e4c325cf0a54fbdb9803d849b01ac137 | 24e0a0f20488ad2e36957e06808ee9374b761edc | /collective/geolocationbehavior/maps.py | 11a91099b47d8a7ca8ea075e1d14318f487a2b68 | [] | no_license | mamico/collective.geolocationbehavior | 4c374273eb39ebe9e33cfd7957271e7b516ac7ad | 14b602e50ecd2e155b6d85aee60889697c207c4b | refs/heads/master | 2021-01-16T21:15:57.080344 | 2013-03-13T01:11:32 | 2013-03-13T01:11:32 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,159 | py | from zope.interface import implements
from zope.component import adapts
from Products.Maps.interfaces import IMarker
from Products.Maps.adapters import BaseMap
from collective.geolocationbehavior.geolocation import IGeolocatableMarker
from collective.geolocationbehavior.geolocation import IGeolocatable
class Geoloc... | [
"jesses@npowerseattle.org"
] | jesses@npowerseattle.org |
42204b02a8bcb282b4d6450ddcb9ce84444a3d4e | b484c6a553c73479ede635d995578748775feb34 | /gs_api_client/asynchronous/dispatch.py | bde5d2364803c18358012ef336ac05674ca52e54 | [
"MIT"
] | permissive | gridscale/gridscale_api_client_python | 71444ccca8efd23d719e79429de7c0833fb2e514 | 0877c71889a50c5e2f1fb4f963ade67785f23534 | refs/heads/develop | 2023-06-13T00:35:33.711707 | 2023-06-02T08:43:46 | 2023-06-02T08:43:46 | 196,579,331 | 7 | 1 | MIT | 2023-06-02T08:38:58 | 2019-07-12T12:55:03 | Python | UTF-8 | Python | false | false | 190 | py | from gs_api_client.base.dispatch import ApiRequestDispatcherBase
class AsyncApiRequestDispatcher(ApiRequestDispatcherBase):
def _try_to_dispatch(self):
self._perform_request()
| [
"thomas@gridscale.io"
] | thomas@gridscale.io |
2a0a41de1fe1a1034ad17f7c270abbbd65c9b2c7 | 8a6b6bb99b97e9bd6ecd836488e33ba5cbe7d149 | /train_tsn_ucf.py | 076fa7a446951f5a7deb476982333df2bef487f6 | [
"MIT"
] | permissive | ZhangMengxia/R2plus1D_TSN_combine | 49555d49ac3d1aa1fa8796da06b576b45489bd8e | 028a51fc15690afc32c3b6c8ac1d22b7902b21ed | refs/heads/master | 2020-05-05T08:44:44.813642 | 2019-05-01T00:58:18 | 2019-05-01T00:58:18 | 179,876,198 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,131 | py | import os
import sys
from network_tsn import TSNClassifier
from dataset import VideoDatasetTSN as VideoDataset
from torch.utils.data import DataLoader
from trainer import train_model
data_path = '../UCF_for_R21D'
im_root = '../UCF-101_of'
save_path = 'tsn_model_resnet101_from_scratch.pth'
resize_width = 360
resize_heig... | [
"zmxmdzmxmd@gmail.com"
] | zmxmdzmxmd@gmail.com |
166b787fa7859370b2e788d5c6a5414671899d1a | 3f976e0336e8fd0c9d376dd65d566ecc248f05e1 | /python/for-the-minimum.py | 4b1536dedfe587cd013c17d8d0471df04fbc69f3 | [] | no_license | rdvnkdyf/codewars-writing | 4f22a923d45b4023dd4bbb3ab41decde4762f8da | 121e522097139a808aa6b56a130ac082003ae777 | refs/heads/main | 2023-05-09T03:41:18.967620 | 2021-06-06T16:29:30 | 2021-06-06T16:29:30 | 373,818,244 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,099 | py | """
Task
Given a list of digits, return the smallest number that could be formed from these digits, using the digits only once (ignore duplicates).
Notes:
Only positive integers will be passed to the function (> 0 ), no negatives or zeros.
Input >> Output Examples
minValue ({1, 3, 1}) ==> return (13)
Explanation:
(1... | [
"ridvangs77@gmail.com"
] | ridvangs77@gmail.com |
9e89a74743f1873a7f3eea681e95b23bc7db9d35 | eac1f9b8d01c4a818bb44edda13df4bfa73fddd9 | /src/NNF.py | fc9b65830c66256004ba049c7b1ab9bc56de1366 | [
"MIT"
] | permissive | sverres/pana | b047fceeba563fb9b56a55e70395661117c80682 | ca78d319e6eef5aabd319bf5f7f6120d6e95ebe4 | refs/heads/master | 2020-04-27T21:36:23.482309 | 2019-03-13T19:37:02 | 2019-03-13T19:37:02 | 174,704,641 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 304 | py | # S: mulig cluster-datasett (dictionary)
# P: CSR-datasett (dictionary)
def NNF(S, P, infinity):
D = {}
for i in P:
dMin = infinity
for j in S:
d = euclidianDistance(P[i],S[j])
if d < dMin:
dMin = d
D[i] = dMin
return D
| [
"sverre.stikbakke@gmail.com"
] | sverre.stikbakke@gmail.com |
837b9bd883a8f8f73bb0b64118bd300f8fad8777 | 621d09168941583e58cb3684a5d18a89a09f25df | /Basics/Lists Exercise.py | 65b7ea7de988bb6e8a13fde61084a5a86b091531 | [] | no_license | WinnieAkoko/python-lessons | fa18c411f1acdf6aeff7a624ce950cdd00a684d7 | f79efc5e5ba5c9e3c7957ae8b5ea2961e7af0ad4 | refs/heads/master | 2020-08-08T06:56:51.975259 | 2019-10-09T12:36:27 | 2019-10-09T12:36:27 | 213,768,247 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 575 | py | last_semester_gradebook = [("politics", 80), ("latin", 96), ("dance", 97), ("architecture", 65)]
#classes taken
subjects = ['physics', 'calculus', 'poetry', 'history']
#adding computer science as a subject in the list
subjects.append('computer science')
#Grades scored
grades = [98, 97, 85, 88]
#adding new computer scie... | [
"akokowinnie@gmail.com"
] | akokowinnie@gmail.com |
2e37a656e0edae2639a95df75b96978d92948395 | 6c547e3312e2d1bd3dab123b831053ed7aef7b6d | /pages/MYCL/gain_loss/realized.py | cdacebeed29d6225098e87c9886c149079ecb7fb | [] | no_license | kenito2050/BICL | 8c4239f1e897e4dfc04aa35e827816242b41d5dd | 82891aba56cc49c9cf96ce82472847c4cb10828f | refs/heads/master | 2020-12-31T22:10:44.784193 | 2020-02-10T23:00:10 | 2020-02-10T23:00:10 | 239,039,817 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,363 | py | from selenium.webdriver.common.by import By
from config_globals import *
class realized():
def __init__(self, driver):
self.driver = driver
def Page_Elements(self):
# Table Header
self.table_header = self.driver.find_element(By.XPATH, "/html/body/div[1]/div[3]/div/div/ui-view/div/div... | [
"ken.villarruel@gmail.com"
] | ken.villarruel@gmail.com |
def14b97b24d65690fbdd0f7194895e0f080a4b2 | 1fc18cbfb1fcbb1d68265de0472b52efa2f8cf45 | /python/dht111/Dhtreading.py | 1115043338789f9f7ae0d8f3b9004820d649c758 | [] | no_license | sunnyprime/Raspberry-pi | ae42510b13bb7e8a10c7e293b14cc8a98352d330 | ae3183dc2729069a2a397a3df5bd72af395d30e9 | refs/heads/master | 2020-03-28T09:43:46.141696 | 2018-09-11T13:58:44 | 2018-09-11T13:58:44 | 148,055,273 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 220 | py | #!/usr/bin/python
import sys
import Adafruit_DHT
print 'running'
while True:
humidity, temperature = Adafruit_DHT.read_retry(11, 4)
print 'Temp: {0:0.1f} C Humidity: {1:0.1f} %'.format(temperature, humidity) | [
"kr.vivek.kr@gmail.com"
] | kr.vivek.kr@gmail.com |
469818cec526fe32e33a1104d950b13985461e29 | b49a307a66e1441af69ff155b9ba57af371181d5 | /watsononlinestore/tests/unit/test_cloudant_online_store.py | 7396aac0913b79bd003fd8054873b9fe192535b7 | [
"Apache-2.0"
] | permissive | viannaandreBR/watson-online-store | cb6bdf98a32977ec59d21ac735a9752b4e8dcf95 | 4b025e84f6b580959ac59354d0ea702e3469561a | refs/heads/master | 2020-03-09T20:48:45.312147 | 2018-04-06T19:10:45 | 2018-04-06T19:10:45 | 128,993,892 | 2 | 0 | Apache-2.0 | 2018-04-10T20:56:18 | 2018-04-10T20:56:17 | null | UTF-8 | Python | false | false | 2,484 | py | import unittest
import ddt
import mock
from watsononlinestore.database import cloudant_online_store
from watsononlinestore.watson_online_store import OnlineStoreCustomer
CUSTOMER_DOC = {
'type': 'customer',
'email': 'scott@gmail.com',
'first_name': 'Scott',
'last_name'... | [
"scott.dangelo@ibm.com"
] | scott.dangelo@ibm.com |
dff6b6a5b2d3975ef21308b798a270290acf6b65 | 006341ca12525aa0979d6101600e78c4bd9532ab | /CMS/Zope-3.2.1/Dependencies/twisted-Zope-3.2.1/twisted/vfs/pathutils.py | a5eb45e442945312b73e304ec7158ad550551c8a | [
"LicenseRef-scancode-unknown-license-reference",
"MIT",
"ZPL-2.1",
"Python-2.0",
"ICU",
"LicenseRef-scancode-public-domain",
"BSD-3-Clause",
"ZPL-2.0"
] | permissive | germanfriday/code-examples-sandbox | d0f29e20a3eed1f8430d06441ac2d33bac5e4253 | 4c538584703754c956ca66392fdcecf0a0ca2314 | refs/heads/main | 2023-05-30T22:21:57.918503 | 2021-06-15T15:06:47 | 2021-06-15T15:06:47 | 377,200,448 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,390 | py | from zope.interface import Interface, Attribute, implements
def getAbsoluteSegments(path, cwd='/'):
"""
@param path: either a string or a list of string segments
which specifys the desired path. may be relative to the cwd
@param cwd: optional string specifying the current working directory
retur... | [
"chris@thegermanfriday.com"
] | chris@thegermanfriday.com |
7090bf5034d330c9beff79ad19d27c7832fde1eb | f198a53f350fe743536a590a25d4dbb7ee7ce05e | /code/code_day1.py | 5f780ba8349446eef7fd675b15c033003c8533b3 | [] | no_license | pin0S/pokemon_python_region | b743058422515e1c8000f9e215fd7962b0b715f9 | bc6c33c29fa63ce9123d51fa1a23a654af9e31a3 | refs/heads/master | 2020-04-09T12:08:35.652056 | 2019-01-01T05:19:41 | 2019-01-01T05:19:41 | 160,336,788 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 529 | py | class PythonRegionMember:
"""
Creates members of the Python region
"""
def __init__(self, name, age, gender):
self.name = name
self.age = int(age)
self.gender = gender
def speaks(self, words):
return f'{self.name} says: {words}'
if __name__ == '__main__':
prof... | [
"pete.g.lynch@gmail.com"
] | pete.g.lynch@gmail.com |
961fc5392f44b7ac55a35d04261e9eaf67a97c90 | b17fa84483067f5e208083cbaaa2b8e7fcd4b34e | /SNII_yields/y52Cr.py | b32146f8a74a00fb561a8fdb09b10cbc5ae42c00 | [] | no_license | AtsuhiroYoshida1121/Galactic_Chemical_Evolution_code | 931f0c4ff77ccd8b67e3770dc1a5b7d0a96eb492 | bf6461105e56660e8369f0cb2596e36df17b1cc1 | refs/heads/master | 2023-05-27T22:47:52.926878 | 2021-06-04T15:05:56 | 2021-06-04T15:05:56 | 373,835,660 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 504 | py | a_y52Cr1=8.80E-04
a_y52Cr2=1.09E-03
a_y52Cr3=1.13E-03
a_y52Cr4=1.36E-03
a_y52Cr5=2.77E-03
a_y52Cr6=3.12E-03
a_y52Cr7=3.95E-03
b_y52Cr1=1.20E-03
b_y52Cr2=3.03E-04
b_y52Cr3=1.52E-03
b_y52Cr4=2.22E-03
b_y52Cr5=2.18E-03
b_y52Cr6=2.92E-03
b_y52Cr7=3.94E-03
c_y52Cr1=1.11E-03
c_y52Cr2=9.63E-04
c_y52Cr3=1.81E-03
c_y52Cr4=1.66E... | [
"atsuhiro.yoshida.coding@gmail.com"
] | atsuhiro.yoshida.coding@gmail.com |
b7c52a665189f194d3ae5023e42cd32fef26b8e8 | acb8e84e3b9c987fcab341f799f41d5a5ec4d587 | /langs/5/lqi.py | c5b5b09a028ae3b0d4730ed13c933d52455fff36 | [] | no_license | G4te-Keep3r/HowdyHackers | 46bfad63eafe5ac515da363e1c75fa6f4b9bca32 | fb6d391aaecb60ab5c4650d4ae2ddd599fd85db2 | refs/heads/master | 2020-08-01T12:08:10.782018 | 2016-11-13T20:45:50 | 2016-11-13T20:45:50 | 73,624,224 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 486 | py | import sys
def printFunction(lineRemaining):
if lineRemaining[0] == '"' and lineRemaining[-1] == '"':
if len(lineRemaining) > 2:
#data to print
lineRemaining = lineRemaining[1:-1]
print ' '.join(lineRemaining)
else:
print
def main(fileName):
with open(fileName) as f:
for line in f:
... | [
"juliettaylorswift@gmail.com"
] | juliettaylorswift@gmail.com |
7088ef175232c41f87a46face5ef3c3f34a5927d | ca7aa979e7059467e158830b76673f5b77a0f5a3 | /Python_codes/p02256/s464205146.py | 66f0c6b76ec4f68636fea32269d78178a8e85ded | [] | no_license | Aasthaengg/IBMdataset | 7abb6cbcc4fb03ef5ca68ac64ba460c4a64f8901 | f33f1c5c3b16d0ea8d1f5a7d479ad288bb3f48d8 | refs/heads/main | 2023-04-22T10:22:44.763102 | 2021-05-13T17:27:22 | 2021-05-13T17:27:22 | 367,112,348 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 778 | py | a, b = map(int, input().split())
c = []
if a > b:
a, b = b, a
if b%a == 0:
print(a)
else:
while True:
for i in range(a):
x = i + 2
#print(a, x)
if a%x == 0:
if b%x == 0:
c.append(x)
a = a//x
... | [
"66529651+Aastha2104@users.noreply.github.com"
] | 66529651+Aastha2104@users.noreply.github.com |
87ea9cac9150fd3fd974e1e95c63258513f9e73c | 42c1da082e8a830fd7620687ab29c818cbb7c1ed | /GooglePlaystoreRating.py | 446065eb0725f663f6752038f8621bf009c030dc | [] | no_license | lohitraja/SamaplePython | a9f4e1e7fd60321c127ca635e0a42bf83411e8eb | 883e29d3464b2f6225c23a0d3c1b006c7d6c03b8 | refs/heads/master | 2022-07-09T16:17:47.013999 | 2020-05-16T02:49:51 | 2020-05-16T02:49:51 | 264,345,314 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,740 | py | import pandas as pd
import numpy as np
df = pd.read_csv("googleplaystore.csv")
df.head(5)
print(pd.isna(df['App']).value_counts())
print(pd.isna(df['Category']).value_counts())
print(pd.isna(df['Rating']).value_counts())
print(pd.isna(df['Reviews']).value_counts())
print(pd.isna(df['Size']).value_counts())
p... | [
"noreply@github.com"
] | lohitraja.noreply@github.com |
ebaa610d6c8eb57c44c39600b076754a616c11b1 | 2ce46e0e82fca0c69228e56e38f33bbb198f9f04 | /homework/homework_pageobject_pytest_siye/PageObjects/tender_page.py | 536bf0d6128bbae18aad74d9189795e558e4f593 | [] | no_license | seesun1/LemonClass | 157ad65e0818bd76e4edafcc7e0889b89109d961 | 39fc70d467079ed8e9a229f03858160bf8d37926 | refs/heads/master | 2021-09-15T08:04:00.517038 | 2017-12-25T14:26:30 | 2017-12-25T14:26:30 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,775 | py | # -*- coding: UTF-8 -*-
#!/usr/bin/env python
# @Time : 2017/12/4 0:01
# @Author : SiYe
# @PROJECT_NAME : LemonClass
# @File : project_page.py
# @Software: PyCharm
#-------------------------------------------------------------------------------
from selenium.webdriver.support.wait import WebDriverWait
from se... | [
"1076168822@qq.com"
] | 1076168822@qq.com |
8995d193c2bc3317d8701c0ec0608b01ca083e7e | e0ed2d79bcad42e27adc089f34fd9d62e79f11eb | /myForge.py | d2b4832e59dcbc861e6876ef547c0d037a1ff67d | [] | no_license | lyvd/MLPython | f6dcf16d9d0275a0c7900ac26032285bbf1040c2 | f8f82263dc22d787f311651ba8870aa062dbaf58 | refs/heads/master | 2021-01-10T23:23:56.144301 | 2016-10-13T07:26:45 | 2016-10-13T07:26:45 | 70,587,443 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 100 | py | import mglearn
import matplotlib.pyplot as plt
X, y = mglearn.datasets.make_forge()
print(X[:, 0]) | [
"vuducly151092@gmail.com"
] | vuducly151092@gmail.com |
8d874ae1d228b65020ae2eaecf75b061a12221ff | 33a7d502685de74e5d0ccfd470d06dfc7fd94e99 | /resolver/migrations/0009_nsrecord.py | 7166f259fc533e6bf6b4ba5a75e692a20084f075 | [] | no_license | vzubviktor/dnsvalidator | 79b1f78f8fb820504995f785ea648cf5f81c4a7a | 880c64c5df77dbe4e6ac77fe24816074ed989ddf | refs/heads/main | 2023-07-28T20:29:42.329831 | 2021-10-04T10:21:05 | 2021-10-04T10:21:05 | 365,290,789 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 523 | py | # Generated by Django 3.2.2 on 2021-05-18 09:51
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('resolver', '0008_auto_20210512_1726'),
]
operations = [
migrations.CreateModel(
name='NSrecord',
fields=[
... | [
"vzubviktor@gmail.om"
] | vzubviktor@gmail.om |
0c2ff7283abf6a1130ff24fc9db676b51157a96f | 0e274ad13c967b8c49a3b4d786ed06b99741b204 | /shackbureau/cashaccounting/migrations/0005_auto_20160204_1259.py | 27a53da9763a80de0f58779c1c7ba7331307f860 | [] | no_license | shackspace/shackbureau | edec901a858c4cfd22fdd1d45922505456e559be | bef3aa651652c694689696ee127c9423abff91a6 | refs/heads/master | 2020-04-12T07:31:26.921538 | 2018-10-18T21:57:44 | 2018-10-18T21:57:44 | 39,296,069 | 7 | 3 | null | 2017-10-07T21:08:12 | 2015-07-18T11:24:16 | Python | UTF-8 | Python | false | false | 7,534 | py | # -*- coding: utf-8 -*-
from __future__ import unicode_literals
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('cashaccounting', '0004_auto_20160204_1253'),
]
operations = [
migrations.AddField(
model_name='cashtransaction',... | [
"ttb@shackspace.de"
] | ttb@shackspace.de |
f3f359f19bc868c40df1cf380dd330e2eb5295ba | 9d267dff1b40b7387256689e6d22fcd9cec2afc2 | /actions/actions.py | b69d5c613c8021146ae7739d0089eb261980bc90 | [] | no_license | Ankur-lohiya/Rasa-Chatbot | bd033ef47541467e5165f6ee6a0652d9aee0f916 | 163ce0b7bfd3fb04ee7d069662c34b8b7047727e | refs/heads/master | 2023-07-03T21:16:40.464021 | 2021-08-02T02:47:47 | 2021-08-02T02:47:47 | 391,796,658 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,573 | py | # This files contains your custom actions which can be used to run
# custom Python code.
#
# See this guide on how to implement these action:
# https://rasa.com/docs/rasa/custom-actions
# This is a simple example for a custom action which utters "Hello World!"
# from typing import Any, Text, Dict, List
# from rasa_s... | [
"ankurlohiya3@gmail.com"
] | ankurlohiya3@gmail.com |
88065cf2fd2349c82ab8c1843bf968f43a975af1 | 98be00ee32971cade82d10c067aff532c3394a62 | /geeksforgeeks/linked_list_merge_sort.py | 200e6d2c43b2057dfa6cccd4818f7680ebebc6f6 | [] | no_license | vigneshhari/Competitive_solutions | 5ab34933ea8d84eab67bdef9bb9e4562f6b90782 | 7a35e1386e5cff71cb5746b6797ccc0f03ceb3f4 | refs/heads/master | 2023-01-11T02:53:01.456863 | 2022-12-29T13:50:03 | 2022-12-29T13:50:03 | 115,146,700 | 4 | 2 | null | 2019-10-26T09:15:03 | 2017-12-22T20:03:51 | Python | UTF-8 | Python | false | false | 391 | py |
class ll:
next = None
def __init__(self,val):
self.val = val
def setnext(self,next):
self.next = next
def stringll(node):
if(node == None):return ""
return str(node.val) + " " + stringll(node.next)
head = ll(-1)
looper = head
for i in range(input()):
temp = ll(input())
... | [
"vichuhari100@gmail.com"
] | vichuhari100@gmail.com |
e5889701fc9377bce8eda18387d6adaea7a0c042 | 50bd113a98b1657d735a933c0fcc446dd8c35e3e | /companies/migrations/0011_auto_20190807_0332.py | 59e7718a743d90f137978161d15d48a3cf61152f | [
"Apache-2.0"
] | permissive | fuseumass/hackerforce | ab0d7e2fcb0c25276eac977fd628a0c67411e059 | dfb6ac1304a7db21853765de9da795e8e9ef20bf | refs/heads/development | 2022-12-23T09:44:38.319260 | 2019-12-05T00:11:59 | 2019-12-28T06:22:01 | 194,482,639 | 13 | 7 | Apache-2.0 | 2022-12-08T03:16:40 | 2019-06-30T06:21:44 | CSS | UTF-8 | Python | false | false | 575 | py | # Generated by Django 2.2.3 on 2019-08-07 07:32
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('companies', '0010_auto_20190807_0322'),
]
operations = [
migrations.AlterField(
model_name='industry',
name='color',... | [
"j@wogloms.net"
] | j@wogloms.net |
f041d1c94aaae1bc128640b5fdd9ce8e7b855f3c | 3944ebdee61e76e54f96efa1b083e20ec3c5fb23 | /par.py | e739adadb65db589c3ba50ae7ff0dc5511bcb345 | [] | no_license | JNMcLane/DI-Code | ef855d6aa51d0ae7be653214064be68dc514e2e3 | 27e5c19454f5d21820db2197f4ed21d45c836aa1 | refs/heads/master | 2016-08-12T20:45:03.947716 | 2015-10-01T10:27:40 | 2015-10-01T10:27:40 | 43,490,495 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 789 | py | """
Par.py
Written by Jacob N. McLane
Simple code for grabing projected seperation and position
angle from a system.
"""
from math import *
import numpy as np
xp=632 #Target Position in x
yp=510 #Target Position in y
xcen=511.5 #center of motion for body in x
ycen=511.5 #center of motion for body in y
scale... | [
"jnmclane@astro.as.utexas.edu"
] | jnmclane@astro.as.utexas.edu |
d514e5aff53a3dcd35b8c78abd5190993260d038 | f5ef5f844e9e92fc369e20189955e1ef2d356fd4 | /Excel.py | 8499fef42097c7c94aef6b78c6b0e472655c4ec7 | [] | no_license | scarforhere/Piggy | efa07410fc9956ef2593e302c36954c66085c080 | 90cb6647e3c58435119b9a6a7dd556aa7990276d | refs/heads/master | 2023-04-05T22:44:16.120523 | 2021-05-02T22:53:16 | 2021-05-02T22:53:16 | 361,451,498 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,126 | py | # Programmed by Scar
from Backup import backup
from Cal import PointData
from Cal import PointDataCylinder
import pandas as pd
import math
def calculate_z(file,
column_x, column_y,
suffix="z"):
"""
Import file's path , data of x,y \n
Give back value of z after the last colu... | [
"scarforhere@gmail.com"
] | scarforhere@gmail.com |
48d7a5623a28fd8850c9a75b902961b65414ea76 | c0e0538419f7b88857bd688234554f67f879473d | /webhooksocket/routing.py | 69bf68d9c1b17c62992716f88b14312633df4b57 | [
"MIT"
] | permissive | ToxicFrazzles/django-webhooksocket | 46fea34349056daa986a37a8e27b7937800c7b7e | 4ce5bb4e66052ec419c32dc7e281c16a69a7a2a3 | refs/heads/main | 2023-05-11T07:59:38.204912 | 2021-06-05T13:02:39 | 2021-06-05T13:02:39 | 373,279,874 | 1 | 1 | null | null | null | null | UTF-8 | Python | false | false | 442 | py | from django.urls import path, register_converter
from . import views
from . import consumers
app_name = "webhooksocket"
class IdentConverter:
regex = r'[a-zA-Z0-9]{64}'
def to_python(self, value):
return value
def to_url(self, value):
return value
register_converter(IdentConverter, 'i... | [
"frazzles740@gmail.com"
] | frazzles740@gmail.com |
9e1b481c155ab876f149924fe1cfe64027114a4a | cfef2592146bc214cde1237d96c0d8a45e097dd2 | /python/problems/problem102.py | e519a34ca512b3c0d026d58bc7b05dc496f467e4 | [] | no_license | malaffoon/euler | 620f6a31ada7b043146bcafe82fa0fa870ad2c1d | 3502426e5dc0b60fb9863f20715467f3e305a2f9 | refs/heads/master | 2021-06-26T05:12:03.921685 | 2021-03-04T22:47:40 | 2021-03-04T22:47:40 | 65,938,620 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,250 | py | """Problem 102 - Project Euler
Triangle containment
Three distinct points are plotted at random on a Cartesian plane, for which -1000 ≤ x, y ≤ 1000,
such that a triangle is formed.
Consider the following two triangles:
A(-340,495), B(-153,-910), C(835,-947)
X(-175,41), Y(-421,-714), Z(574,-645)
It can be verified... | [
"laffoon@san.rr.com"
] | laffoon@san.rr.com |
a5f600093d4f646f0d1bb5523cee6f1ea7398955 | 420866136286a288d4e02d7502c7469c4adb64ea | /option with database.py | 93cc912c34e336bb0dfd60137b90ae91ac4850f4 | [
"MIT"
] | permissive | Babar-Awan/CP19_13 | f9433963cb65edd6c9c3eac0b09c5394004667f1 | 5d852cc4bac724aba3acec6bcefc2e3a1d3b0a58 | refs/heads/master | 2020-05-15T11:11:56.179461 | 2019-05-21T18:28:44 | 2019-05-21T18:28:44 | 182,216,519 | 0 | 0 | MIT | 2019-04-27T10:56:18 | 2019-04-19T06:49:21 | Python | UTF-8 | Python | false | false | 640 | py | import tkinter as tk
root = tk.Tk()
v = tk.IntVar()
v.set(1) # initializing the choice, i.e. Python
languages = [
("Python",1),
("Perl",2),
("Java",3),
("C++",4),
("C",5)
]
def ShowChoice():
print(v.get())
tk.Label(root,
text="""Choose your favourite
programming language:""",
... | [
"Sp19-bsse-0016@maju.edu.pk"
] | Sp19-bsse-0016@maju.edu.pk |
b3a24a025db1bae137fcccfb70095b5b8c212ebc | b72db05010445f6ea1c5f0464af98806274d315a | /src/trydjango/pages/views.py | 38926465d11779ef5a680d8d1ac942f41dc1646b | [] | no_license | kokot300/mess_up_django | ec35d949e1c43792506d8d20383d8c8615ef48a9 | fe0982b5251bd7af9b510ba938aa92e26beb99d4 | refs/heads/master | 2022-11-20T19:10:11.062085 | 2020-07-21T09:09:09 | 2020-07-21T09:09:09 | 273,881,611 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 608 | py | from django.shortcuts import render
from django.http import HttpResponse
from products.models import Product
# Create your views here.
def home_view(request, *args, **kwargs):
print(request)
print(request.user)
print(args, kwargs)
play_dict = {
'me': 'Krzysiek',
'lst': [123, 321, 231],... | [
"kokot300@gmail.com"
] | kokot300@gmail.com |
87ece04732cb2acc1a56a4842377caf258f57fdf | 9743d5fd24822f79c156ad112229e25adb9ed6f6 | /xai/brain/wordbase/adverbs/_securely.py | 354e1a50d4dc2383607cb4a3d91f2d7302d29de2 | [
"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 | 545 | py |
#calss header
class _SECURELY():
def __init__(self,):
self.name = "SECURELY"
self.definitions = [u'in a way that avoids someone or something being harmed by any risk, danger, or threat: ', u'positioned or fastened firmly and correctly and therefore not likely to move, fall, or break: ']
self.parents = []
s... | [
"xingwang1991@gmail.com"
] | xingwang1991@gmail.com |
cdd0f9308b7996c6e3f6fff28b372374ae29bfae | 1d5cca6e0118f9d5d4ca30e9a4264456e050ba81 | /first_function/main.py | 5c29e19f81d4e7e989c1949813446b0e2e2b521f | [
"MIT"
] | permissive | nheijmans/cloud_workshop | 63b4380e4f0146d1fb8ce3d997eb22f8800a5e81 | ee4c0651b98b56d45b72ad1cd2cfd73105f06fa1 | refs/heads/master | 2020-08-28T21:50:12.296220 | 2019-10-27T09:26:23 | 2019-10-27T09:26:23 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 229 | py | #!/usr/bin/python3
import boto3
import json
def lambda_handler(event, context):
print("I'm in here!")
return {
"statusCode": 200,
"body": json.dumps(
{"message": "success!"}
)
}
| [
"niels_heijmans@icloud.com"
] | niels_heijmans@icloud.com |
85ad1d8f62c9ef3af9a0d22f2ceb96a7aefddb55 | 901acecf5409aa718e07c3547cfcce276476a72e | /webpage/bokeh/fancyhist.py | 57dc149a2640040a908922579360fa71c20a5100 | [] | no_license | TCRichards/PiSmash | 3a0b324e96e85f256bb4eabf8d1f5c12ca8f6445 | dd3c244fba910f29a0147619727a5202c10a8979 | refs/heads/master | 2020-06-04T15:43:41.442012 | 2020-03-24T20:23:24 | 2020-03-24T20:23:24 | 192,086,457 | 4 | 0 | null | 2019-10-03T21:19:12 | 2019-06-15T14:14:11 | Python | UTF-8 | Python | false | false | 8,509 | py | #----- Author: Nick Konz -----#
from bokeh.layouts import column, row, widgetbox, gridplot
from bokeh.models import CustomJS, ColumnDataSource, Dropdown, Slider, Button, BoxZoomTool, Range1d, BoxSelectTool, LassoSelectTool, Select, CheckboxGroup
from bokeh.plotting import Figure, output_file, show, save, curdoc
from b... | [
"37184532+nickk124@users.noreply.github.com"
] | 37184532+nickk124@users.noreply.github.com |
2f8469c4adbac372b64cf871784fceef5ba0a94b | 4aa6bf61aef341d839d84804a5f41dc0b0b24fae | /fromWebScrapper_v3_old.py | d5919d465e564b5eabe4ea3fb8fa5b0f60cfdcae | [] | no_license | Scathelock/UBI | 8f1b6b91d780009ba07d6a3b36ac3fe82defc5a5 | 3eadbb4aefbec6d1888ce5d7455c31c038d26cc1 | refs/heads/master | 2020-03-26T20:53:43.961379 | 2018-09-08T22:15:35 | 2018-09-08T22:15:35 | 145,353,129 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,107 | py | from sqlalchemy import *
from sqlalchemy.orm import *
from sqlalchemy.ext.automap import automap_base
import requests
from bs4 import BeautifulSoup
import sys, io
import datetime
import time
import random
from connect_PF import *
from grab_page import *
def add_link_to_PFdb(artist, album, reviewer, review_date, lin... | [
"Scathelock@users.noreply.github.com"
] | Scathelock@users.noreply.github.com |
ac4b149e26f26b9324a174ca7a7fc4740d919b0a | bfa5115fe79463de4316d8877c01152301511fe5 | /palindrome.py | 7dce96b1ff61d2efe3867a96f3359f9b6a20e96a | [] | no_license | markser/InClassGit3 | 294ba9d3acc1e7cac80a6ab1427d257809ae706d | c83399c688e16bab38ad7f357386f187320583bd | refs/heads/main | 2023-04-12T15:31:23.179158 | 2021-05-14T01:03:46 | 2021-05-14T01:03:46 | 367,205,584 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 744 | py | # to run the program
# python3 palindrome.py
# then input string that we want to test as palindrome
def palindrome(userInputString):
return (userInputString == userInputString[::-1])
def retrieve_input():
userInputString = (input('Input a string to test if palindrome: '))
if (isinstance(userInputString, ... | [
"serm@oregonstate.edu"
] | serm@oregonstate.edu |
e1808e68ce72be78e436ef5d6fe28d05045d445d | 61d498e081a8239eb2f80fffc42fab3819253523 | /aula10/forum/polls/migrations/0002_question_votes.py | cebc62710ae4b2d1a44dc2585c1e9a7ba3715798 | [] | no_license | Era-conectada-python/aulas-2019 | a818d1403f352d9c09b24ffe21e1f2bf42cf38ba | cd7eeb0d36184204e2e13312d0c118e16686cffc | refs/heads/master | 2022-05-28T02:13:47.331349 | 2019-10-09T01:01:12 | 2019-10-09T01:01:12 | 189,125,536 | 3 | 0 | null | 2022-04-22T22:14:40 | 2019-05-29T01:02:06 | Python | UTF-8 | Python | false | false | 371 | py | # Generated by Django 2.2.4 on 2019-08-14 00:23
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('polls', '0001_initial'),
]
operations = [
migrations.AddField(
model_name='question',
name='votes',
fiel... | [
"mariopekenossalro@gmail.com"
] | mariopekenossalro@gmail.com |
d33844f5999eecaaefe93172bd2931327828ec99 | 76b0305684f9a87575d5ae709edf0453c4251f75 | /tests/unittest.py | 7c81f9bf533cfeafe470e393afcd32da4eea7840 | [] | no_license | harrisonnc/GE-cloud-anomaly-detection | aa0adc244af5fcb54e189af2b717daf4bdb023eb | 37818673d66f0f02f4f588b3e2e5b07b5b8d1197 | refs/heads/master | 2021-01-21T21:15:40.484408 | 2016-04-05T20:36:44 | 2016-04-05T20:36:44 | 94,804,007 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 151 | py | import data_logs
import unittest
#def main():
conf_file=data_logs.retrieve_conf_file(self)
print(conf_file)
#if __name__ == "__main__":
# main() | [
"jemurphy@vcu.edu"
] | jemurphy@vcu.edu |
afdb65a20fdb994f7d7dbccf15d2118167cc8ad5 | 35eab30f5742a3327fed2546e94b56165496788c | /ES.py | 687833cbe1999c3ce195441016f620630bcd475b | [] | no_license | Yukkiasuna-sao/sklearnML | 08bf176deccb1c5f20d03bf78607c56474edfbe7 | c2d80a890d552bddbe5a698ae7d1654e65591097 | refs/heads/master | 2021-08-14T14:48:31.839231 | 2017-11-16T02:23:00 | 2017-11-16T02:23:00 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,365 | py | # coding=utf-8
#数据导入和预处理
import pandas as pd
titanic = pd.read_csv('http://biostat.mc.vanderbilt.edu/wiki/pub/Main/DataSets/titanic.txt')
#观察数据
#print titanic.head(), titanic.info()
X = titanic[['pclass', 'age', 'sex']]
y = titanic['survived']
#探查x中的元素的情况以制定数据预处理的方法
#print X.info()
X['age'].fillna(value=X['age'].mean(... | [
"noreply@github.com"
] | Yukkiasuna-sao.noreply@github.com |
10c05f415a20e162c8784ead32add78941c5f55b | 209dcb7a14a7aa33446c3093f482b78875ea74b8 | /UE2/if_name_main_first.py | 51ddbc57956aaa99a38c79ce929625b74194223d | [
"MIT"
] | permissive | FHSTPICMT/BSE_Python | 944750f142377e160a4facf37591662bdbd1fe32 | 082927789fe6b0551ab5ca6d7036ff16bb761658 | refs/heads/main | 2023-01-22T06:11:16.552167 | 2020-11-12T14:32:35 | 2020-11-12T14:32:35 | 306,693,364 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 220 | py | #!/usr/bin/env python
# coding: utf-8
# In[2]:
def main():
print("First modules name: {}".format(__name__))
print("Run main")
if __name__ == '__main__':
main()
else:
print("Run Import")
| [
"noreply@github.com"
] | FHSTPICMT.noreply@github.com |
9858c8e9156dc48e16455ee148507ff587b8f7a6 | 5d7d8f2f0dcbdbc990bc0783e0bc30b0737c5ece | /bboard/urls.py | a5fb4e5e1c122777141950691c38fb3b62f6647a | [] | no_license | vadimnemov/bboard | 51d3a92f4f61c723d671096c1796b16c57e7622a | 7145f7aefc392af2c4247d4ffcf2c7fad5c43ef4 | refs/heads/main | 2023-02-25T16:15:49.036267 | 2021-02-01T18:44:09 | 2021-02-01T18:44:09 | 335,036,318 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 405 | py | from django.contrib import admin
from django.urls import path, include
from django.conf import settings
from django.contrib.staticfiles.views import serve
from django.views.decorators.cache import never_cache
urlpatterns = [
path('admin/', admin.site.urls),
path('', include('main.urls', namespace=''))
]
if se... | [
"69323011+vadimnemov@users.noreply.github.com"
] | 69323011+vadimnemov@users.noreply.github.com |
076dac4616dd5d42f7549af431d3a17466cd6f65 | ee6cd39386c677b348b89f983e2050e584e19bb8 | /app.py | 9e3e21cbeb2add61611fccc4421f0ee124e4fa72 | [] | no_license | snar2019/mlops-GA | 9b5dfc2a460120272f51554762996f7191f58a48 | ca963dc1e86c10dbe704d9055c90b8d917ad6391 | refs/heads/master | 2023-04-11T14:11:09.937743 | 2021-04-13T00:52:49 | 2021-04-13T00:52:49 | 355,628,462 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,443 | py | from prediction_service import prediction
from flask import Flask, render_template, request,jsonify
import os
from application_logging.logger import App_Logger
webapp_root = "webapp"
static_dir = os.path.join(webapp_root, "static")
template_dir = os.path.join(webapp_root, "templates")
logger = App_Logger()
... | [
"narain.narain21@gmail.com"
] | narain.narain21@gmail.com |
338e6155446f12936361868c3f5f32353cdd0881 | 1c85fbdfed49956241d940542fd677bcadea9a04 | /photo/urls.py | 03aaa3e25a596fd57947a46624f991d34630fa39 | [] | no_license | Shruti-2303/Album | f121e1d305e09dba914a5ec16697e8de3e63f3aa | 64f8fb77317910952879f6247279da3f2c04d469 | refs/heads/main | 2023-08-03T00:12:42.444210 | 2021-09-21T19:38:29 | 2021-09-21T19:38:29 | 408,951,108 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 210 | py | from django.urls import path
from . import views
urlpatterns = [
path('',views.gallery,name='gallery'),
path('photo/<str:pk>',views.viewPhoto,name='photo'),
path('add/',views.addPhoto,name='add')
] | [
"sharmas23032001@gmail.com"
] | sharmas23032001@gmail.com |
6adb28741b885ab2ab3b8863a3a069ffb16181bb | df38fbd2f8cf10affb1dbef07a8640e6077218fd | /portfolioflask.py | 70f15746d42e2ee66da3b59f44486a2b24797977 | [] | no_license | nooraishah/portfoliointern | 8626fa7db5e218600046a95a4f9e345ef04b9291 | a1482ce8bfe06cd9a98b082d4059aa9be9867f79 | refs/heads/main | 2023-02-23T21:08:05.045982 | 2021-01-17T02:47:04 | 2021-01-17T02:47:04 | 327,627,207 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 247 | py | from flask import Flask, render_template, url_for
app = Flask(__name__)
app.static_folder = 'static'
@app.route("/")
@app.route("/home")
def home():
return render_template('home.html')
if __name__ == '__main__':
app.run(debug=True) | [
"noreply@github.com"
] | nooraishah.noreply@github.com |
3330941132fe14f300fcae6ac1c3a05cb2126aeb | eb357b4715e440e31895a5d93fb17422a51b46fe | /tvdordrecht/race/forms.py | f9ef572cdc07244d647ba140a5b52fcf7b436ac2 | [
"MIT"
] | permissive | allcaps/tvdordrecht.nl | 54af56f2fa0169deba4ef511a8d817c58ae6a391 | a2ff1b5ade88378f1a72a7ab36d51965b06509b9 | refs/heads/master | 2022-12-08T07:32:10.572800 | 2021-06-11T20:30:10 | 2021-06-11T20:30:10 | 38,977,988 | 0 | 0 | MIT | 2022-11-22T00:34:10 | 2015-07-12T21:04:46 | JavaScript | UTF-8 | Python | false | false | 2,848 | py | # -*- coding: utf-8 -*-
from django import forms
from django.contrib.auth.models import User
from crispy_forms.helper import FormHelper
from crispy_forms.layout import (
Layout,
Field,
Div,
)
from crispy_forms.bootstrap import (
StrictButton,
)
from .models import (
Event,
Distance,
Result... | [
"c.van.der.kamp@zestsoftware.nl"
] | c.van.der.kamp@zestsoftware.nl |
94ca7f6851d3d45719e191e3a5718b9208d04923 | f9642defb659ddea7838b81000528fb211e257d9 | /src/CandidateFinder.py | ccd0cf7089368cf44341f2a2e61ce17ded28b307 | [] | no_license | Rantzur1992/gloat-backend | c8df266f64f552116b4dc912ece29feb10d3b5ef | 4b583011ec0fc3cdca4d90de89c8fcc553482551 | refs/heads/master | 2023-03-04T02:00:20.789209 | 2021-02-19T18:58:57 | 2021-02-19T18:58:57 | 340,454,695 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,110 | py | import json
from pkg_resources import resource_stream as rs
from src.Job import Job
from src.Candidate import Candidate
def run_matcher(job: Job) -> [Candidate]:
"""
search matching Candidate for given Job
:param job: Job object for search criteria
"""
candidates_list = __extract_json()['candida... | [
"rantzrur@gmail.com"
] | rantzrur@gmail.com |
b7f532970dea4a974a86f2127fc16ce635441971 | 0ec1825afa3626695735e91a1f61149983c3d490 | /tsp.py | fd49f5404e6a10c9931f096ae15d8f4b8efce4c7 | [] | no_license | indpab/BeerTrip | c43ee829836862599debef16754f9cf191f9310b | 276e329eb5539aad71a263d030a4388193c48062 | refs/heads/main | 2022-12-22T21:04:34.421096 | 2020-10-01T22:14:58 | 2020-10-01T22:14:58 | 300,437,736 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,237 | py | import numpy as np
from distance_matrix import DistanceMatrix
import random
import pandas as pd
import os
matrix = DistanceMatrix(os.path.dirname(os.path.abspath(__file__)))
limit = 2000
def __initialize__(size):
random_list = random.sample(range(1, 1305), size)
route = np.array([0] + random_list + [0])
... | [
"pabijonaviciute.indre@gmail.com"
] | pabijonaviciute.indre@gmail.com |
e91387930f5567e18777387742ee3e9d0dab5e2f | 080a6b7be74dc2d2fac61e0bb60a5402533294de | /week5/lines-to-list.py | 18865f91e5129c888d0af875ca2d0827de409e87 | [] | no_license | rosmoke/DCU-Projects | cfec4c59ba00beb68d174cf869952b7a88e5c1dc | 1478f476e1d81756d00a206b8f5bfcd0a1094649 | refs/heads/master | 2021-01-20T17:03:59.642966 | 2016-06-23T15:06:46 | 2016-06-23T15:06:46 | 61,814,159 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 120 | py | lines = []
i = 1
while i == 1:
input = raw_input()
if input != "end":
lines.append(input)
else:
i = 0
print lines | [
"danielasofiei@yahoo.ie"
] | danielasofiei@yahoo.ie |
e53342acf5ac799daad13212a04607e109bfa889 | b714aba2601c9b7f3ddfb2602720423c534d48ef | /Problem Set - 3/ps3c.py | 811b31962b1df1ec7620d33a841b924bcde1c3b1 | [] | no_license | adamA113/MITx-6.00.1x-Introduction-to-Computer-Science-and-Programming-Using-Python | afbe7601f971b6b22a602a77efabed539b74dfd0 | 5e69c2e5bfc40b99c8c618069763dbefee1a1743 | refs/heads/master | 2020-04-01T21:33:32.623474 | 2017-11-13T15:58:25 | 2017-11-13T15:58:25 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,737 | py | #!/usr/bin/env python3
# -*- coding: utf-8 -*-
"""
Created on Thu Nov 9 10:15:24 2017
course: MITx 6.00.1x: Introduction to Computer Science and Programming Using Python
source: https://courses.edx.org/courses/course-v1:MITx+6.00.1x+2T2017
"""
"""
Problem Set 3 - Problem 3 - Printing Out all Available Letters
Next,... | [
"jjw244@users.noreply.github.com"
] | jjw244@users.noreply.github.com |
d8b39a1c516d2f5c17f94296c319054c25bd24e2 | 871690900c8da2456ca2818565b5e8c34818658e | /boj/silver/14501.py | 3000b1c08b7c01ae991fcf0d109895fc4640310b | [] | no_license | kobeomseok95/codingTest | 40d692132e6aeeee32ee53ea5d4b7af8f2b2a5b2 | d628d72d9d0c1aef2b3fa63bfa9a1b50d47aaf29 | refs/heads/master | 2023-04-16T09:48:14.916659 | 2021-05-01T11:35:42 | 2021-05-01T11:35:42 | 311,012,364 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 403 | py | from sys import stdin
READ = lambda : stdin.readline().strip()
n = int(READ())
t, p = [], []
dp = [0] * (n + 1)
for _ in range(n):
ti, pi = map(int, READ().split())
t.append(ti)
p.append(pi)
max_val = 0
for i in range(n-1, -1, -1):
time = t[i] + i
if time <= n:
dp[i] = max(p[i] + dp[time],... | [
"37062337+kobeomseok95@users.noreply.github.com"
] | 37062337+kobeomseok95@users.noreply.github.com |
9137b4b1bc0d434921790dbb3b1ea233760b6e87 | f305f84ea6f721c2391300f0a60e21d2ce14f2a5 | /4_set/6300. 最小公共值-集合交集.py | aa23a024dc580e11d35f90f6d3c465c7f728a010 | [] | no_license | 981377660LMT/algorithm-study | f2ada3e6959338ae1bc21934a84f7314a8ecff82 | 7e79e26bb8f641868561b186e34c1127ed63c9e0 | refs/heads/master | 2023-09-01T18:26:16.525579 | 2023-09-01T12:21:58 | 2023-09-01T12:21:58 | 385,861,235 | 225 | 24 | null | null | null | null | UTF-8 | Python | false | false | 864 | py | from typing import List
# 给你两个整数数组 nums1 和 nums2 ,它们已经按非降序排序,
# 请你返回两个数组的 最小公共整数 。
# 如果两个数组 nums1 和 nums2 没有公共整数,请你返回 -1 。
class Solution:
def getCommon(self, nums1: List[int], nums2: List[int]) -> int:
"""数组已经排序"""
i, j = 0, 0
while i < len(nums1) and j < len(nums2):
... | [
"lmt2818088@gmail.com"
] | lmt2818088@gmail.com |
4995b1f7950f6b31f14e5825967b62e47923713a | 128686fbcf0c959a33cb8aaf79d83c01e70675f4 | /backend/movies/migrations/0001_initial.py | da25815c584e9e3b00b16f61483c34c4ae6d532f | [] | no_license | M3nti0nL3Ss/Movies-list-fake-api | a9f23cb1c3b8dee9f901c5632fad7d9bf9152ea6 | 57e1ab02c52cf69a57818e48868257318794a056 | refs/heads/master | 2023-07-24T13:57:29.491458 | 2020-07-09T16:49:47 | 2020-07-09T16:49:47 | 275,874,653 | 0 | 0 | null | 2021-09-03T05:11:47 | 2020-06-29T16:51:27 | JavaScript | UTF-8 | Python | false | false | 737 | py | # Generated by Django 3.0.8 on 2020-07-08 19:21
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
initial = True
dependencies = [
('genre', '0001_initial'),
]
operations = [
migrations.CreateModel(
name='Mov... | [
"ayoub-sifo@live.fr"
] | ayoub-sifo@live.fr |
b41b6d17177d2576edcafb7c2692ea634c2d003b | c97fc7658c39feb51c0ed42c04783797c8675b8a | /2018/pcy1/day28上--算法/算法6_重复范围.py | e72fd01cd5d72606f8d44868a30549fcced23ef7 | [] | no_license | githubvit/study | 8bff13b18bea4954e8ed1b4619a091b134b8ff97 | 845e19d1225f1aa51c828b15effac30be42fdc1b | refs/heads/master | 2023-02-20T15:59:19.635611 | 2021-12-15T08:30:54 | 2021-12-15T08:30:54 | 241,928,274 | 1 | 1 | null | 2023-02-02T06:18:48 | 2020-02-20T16:08:06 | Python | UTF-8 | Python | false | false | 1,648 | py | #_*_coding:utf-8_*_
'''
经典语句:程序就是算法加数据结构。
算法(Algorithm):一个计算机的计算过程,用来解决问题的方法
'''
'''
给定一个升序列表和一个整数,返回该整数在列表中的下标范围。
例如:列表[1,2,3,3,3,4,4,5],若查找3,则返回(2,4);若查找1,则返回(0,0)。
思路:
因为是有序,所以可以用二分查找找到3,
找到3后,定义左右两个指针,左指针左移,看是不是3,是就继续左移,直到不是就退出。
右指针同理,最后返回左右两指针,就得到了范围。
注意,指针不能越界
'''
def bin_serach_sum(olist,v):
#初始化指针
low=... | [
"sgq523@163.com"
] | sgq523@163.com |
1b86c9cfdddd0628d6c56e3cdd522b0b23889b15 | 62c10b93d7c80df17b6a38f53300d697dea04b00 | /cryptoparty/mixins.py | 340e284535616cc7a9f6b33b5f4eea158cae7b93 | [] | no_license | cryptopartydk/cryptoparty.dk | bf2512330b2776c70c71b677df2a6ee36cba48d8 | 49d5fa04ed253c771d5c72f395a9819fec4d8fe6 | refs/heads/master | 2021-01-17T07:05:31.314722 | 2016-05-15T10:48:18 | 2016-05-15T10:48:18 | 28,929,476 | 1 | 1 | null | 2016-04-22T09:26:20 | 2015-01-07T19:14:05 | JavaScript | UTF-8 | Python | false | false | 284 | py | from django.utils.decorators import method_decorator
from django.contrib.auth.decorators import login_required
class LoginRequiredMixin:
@method_decorator(login_required)
def dispatch(self, request, *args, **kwargs):
return super().dispatch(request, *args, **kwargs) | [
"valberg@orn.li"
] | valberg@orn.li |
8cd065138546caa19d8dfb80cad98bd36cc575af | 1f4505ed66f4fd68c6d1edf18ecff58362742fad | /algorithm/TwoPointer/18_4Sum.py | 97632d69454427fc6ac5b7ebff3128538fed3770 | [
"MIT"
] | permissive | nishitpatel01/Data-Science-Toolbox | 0d9b63a365698cc4a423abd5881cde8f6bf672be | 80dc1310d103c9481feff8792426c550ddcc0a36 | refs/heads/master | 2020-05-19T08:26:40.319321 | 2019-05-04T05:58:48 | 2019-05-04T05:58:48 | 184,921,541 | 1 | 1 | MIT | 2019-05-04T16:53:21 | 2019-05-04T16:53:20 | null | UTF-8 | Python | false | false | 2,264 | py | class Solution:
# combination of two fixed number, reducing the rest of the problem to 2-sum
def fourSumPart1(self, nums, target):
"""
:type nums: List[int]
:type target: int
:rtype: List[List[int]]
"""
nums.sort()
print(nums)
N = 4
ans = [... | [
"shawlu@github.com"
] | shawlu@github.com |
fbb4ce7292b75c77504d3408177443a56cbf6a6f | 7c4878b4881d79dd4daa3291e9c498e0706a7603 | /lesson15/index/task1.py | 7ec8ad71cd52424fb426eb3959d9f4db69b6d38c | [
"MIT"
] | permissive | zainllw0w/skillbox | 4cbdbb44762439c1aa1793a07683d7620500ddd7 | 896287b6f7f5612cf589094131fd1a12b0b192ba | refs/heads/main | 2023-04-27T16:07:16.613359 | 2021-05-20T14:12:11 | 2021-05-20T14:12:11 | 329,755,030 | 0 | 0 | null | 2021-05-20T14:06:42 | 2021-01-14T23:01:15 | Python | UTF-8 | Python | false | false | 471 | py | nums_list = []
N = int(input('Кол-во чисел в списке: '))
for _ in range(N):
num = int(input('Очередное число: '))
nums_list.append(num)
maximum = nums_list[1]
minimum = nums_list[1]
for i in nums_list:
if maximum < i:
maximum = i
if minimum > i:
minimum = i
print('Максимальное ... | [
"77465388+zainllw0w@users.noreply.github.com"
] | 77465388+zainllw0w@users.noreply.github.com |
846725942a24ef2efdfd2ca28e11fb1254735801 | fbe5a6538bbb029f025521a9b6f434b6cc8b69c7 | /frontend.py | ee2ee6b7b11edf52e6d7a59c65e9391bacdade46 | [] | no_license | gnudrew/BookshopDatabaseApp-sqlite3-tkinter | 69cca9026f22a399607f534c7fd1383299ad5b1e | 1b0698890a96e1a3759b3e3fbbc98ff409d94b05 | refs/heads/main | 2023-05-26T05:50:04.366388 | 2021-06-10T02:36:14 | 2021-06-10T02:36:14 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,148 | py | """
A program for storing book information:
Title, Author
Year, ISBN
User can:
View all records
Search for an entry
Add entry
Update entry
Delete entry
Quit
"""
from tkinter import *
from tkinter import ttk
import backend
def get_selected_row(event):
# if list1.size() != 0:
try:
... | [
"noreply@github.com"
] | gnudrew.noreply@github.com |
f14980ac0bf82ecaf233ca9e8cad6c3dbb13e8b6 | f8b9e5de8823ff810ec445b6fa6d0e34f7b6319f | /Django/PracticeExam2_project/apps/Dashboard_app/models.py | 27d48bb144c743729cd67c2f88ef043234207b43 | [] | no_license | amalfushi/Python | 6c042443a8aeae15fc96a41a692abdbea05db863 | 067c2cef722457e884833f77baf9f44f45a4a165 | refs/heads/master | 2021-01-24T04:08:21.278071 | 2018-02-26T06:25:59 | 2018-02-26T06:25:59 | 122,923,686 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,027 | py | # -*- coding: utf-8 -*-
from __future__ import unicode_literals
from django.db import models
from ..LoginReg3_app.models import User
# Create your models here.
class CommentManager(models.Manager):
def createComment(self, postData):
tempComment = self.create(
comment_text = postData['newComment... | [
"dustin.p.schroeder@gmail.com"
] | dustin.p.schroeder@gmail.com |
2f63132445b3df93f4628ce1cbae85de6f4b999c | b43842e7d3417e46309978bf83dea2e514a2b07e | /brokers/apps.py | 810a575fca082071c5a6255f3fd6b949c05b4d92 | [] | no_license | parisk/insurance | 3f6c285bd62602a209c533f32950fd04ee346f62 | d9d2a2c81a0b2bacaeedf1d7670efdf8a0d0b5f9 | refs/heads/master | 2021-01-17T17:48:12.771661 | 2016-10-01T12:38:41 | 2016-10-01T12:38:41 | 69,729,632 | 1 | 1 | null | null | null | null | UTF-8 | Python | false | false | 130 | py | from __future__ import unicode_literals
from django.apps import AppConfig
class BrokersConfig(AppConfig):
name = 'brokers'
| [
"paris@sourcelair.com"
] | paris@sourcelair.com |
ad053600f8d9de656c77bf437dad3b8952136ab6 | 10b1c787ad295d03f9872a71e6c3ba699e3cedcf | /homework_2/pt2.py | a6562f5811fa1168cb1bb4116d67db17298cb68b | [] | no_license | igc5972/comp_meth | 4aa82a0e2e9fe33e713ae1ae876d1a9180f4ef7f | f885868e5035f9633412426bce280c82fa51eabe | refs/heads/master | 2023-01-23T12:57:50.453732 | 2020-12-03T14:43:45 | 2020-12-03T14:43:45 | 290,013,423 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,307 | py | ### PURPOSE: ASTP 720 (Computational Methods) HW #2 Pt. 2
### Task 2
### [Isabella Cox, Sept. 2020]
# Import Statements
import numpy
import numpy as np #for natural log
from matplotlib import pyplot as plt #for plotting
from calculus_library import derivative, trapezoid
# Plotting Parameters for pretty plots
params ... | [
"41637773+igc5972@users.noreply.github.com"
] | 41637773+igc5972@users.noreply.github.com |
9a1eca59e17a9a3b56544a6497970a5b4013e006 | 65bcb58c359242e40d9b1c4a95e0e4cc2f85247e | /fibonacci.py | f7638430acf9e863ab85f58b4ef95e405edc2c17 | [] | no_license | chandankuiry/datastructure | af0913708ea29b5684ac76f9e50ed34707c412ae | 585526a8a4fe0bc7763fc46a35f077b9af0730ee | refs/heads/master | 2021-01-17T06:38:36.643914 | 2016-07-07T19:13:20 | 2016-07-07T19:13:20 | 54,668,300 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 90 | py |
x = int(raw_input("Please enter an integer: "))
c,b=0,1
while c<x:
print c
c,b=b,c+b
| [
"kuirychandan@gmail.com"
] | kuirychandan@gmail.com |
dd6d61330f144fc0906e8ea1be56d19b8a4c54e4 | e1ad4f2d9b29d5131dca6043b64fa5e656cdf7da | /src/simulations/setup.py | 6dd892c027919e305d92d50b0f5d02d2c7c7c7c0 | [] | no_license | aeberspaecher/Numpy-Tip-Complex-Modeling | 647c00c6eba31c3d3c23663520b02130c3347780 | 1e263b423358c5a3b2aa1d0a55d211e698ae3edf | refs/heads/master | 2016-09-06T06:57:08.663607 | 2012-04-04T09:28:22 | 2012-04-04T09:28:22 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 390 | py | '''
Created on Mar 19, 2012
@author: federicov
'''
## usage: python setup.py build_ext --inplace
from distutils.core import setup
from distutils.extension import Extension
from Cython.Distutils import build_ext
import numpy
setup(
cmdclass={'build_ext': build_ext},
ext_modules=[Extension("cython_arc_distance"... | [
"alex.eberspaecher@gmail.com"
] | alex.eberspaecher@gmail.com |
9a2147565b1ba65de24b5cc99f64ed5f4e1fa0ee | e6871ff61d28e5e2acf201b459da29c20a8d3dca | /setup.py | 79685d9e4a85ba9dad9f06f7069a611467159ac2 | [
"Apache-2.0"
] | permissive | csams/squerly | 9d2f38b23cae4034308806f1ebdcc99a0208d868 | 62e416dfc8b418d1cc361b59f401accc8c111b52 | refs/heads/master | 2022-11-29T09:32:48.019336 | 2020-08-12T22:17:06 | 2020-08-12T22:17:06 | 261,189,120 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,690 | py | import os
from setuptools import setup, find_packages
here = os.path.abspath(os.path.dirname(__file__))
runtime = set([
"pyyaml",
])
develop = set([
"coverage",
"flake8",
"pytest",
"pytest-cov",
"setuptools",
"twine",
"wheel",
])
docs = set([
"Sphinx",
"sphinx_rtd_theme",
])... | [
"csams@redhat.com"
] | csams@redhat.com |
a21d261d4e49f2e73907bc59971d1248acea7193 | 77608e8aadb0693b990227c0ad49d27b66c7e245 | /006_joining_dataframes/old_syllabus/006_merging_dataframes/002_concatenating_data/012_resampling_and_concatenating_dataframes_with_inner_join/script.py | 39069299cc2cd71f0a619766d1078b2997cf9024 | [] | no_license | clementgohchangming/datacamp_playground | d563fefe956d75dffc8e548892d3e4e17d9d507f | d171628619ae64771b318eee195a3965e1a7ab0e | refs/heads/master | 2023-06-23T22:04:09.647677 | 2021-07-31T14:59:04 | 2021-07-31T14:59:04 | 357,218,820 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 373 | py | # Resample and tidy china: china_annual
china_annual = china.resample('A').last().pct_change(10).dropna()
# Resample and tidy us: us_annual
us_annual = us.resample('A').last().pct_change(10).dropna()
# Concatenate china_annual and us_annual: gdp
gdp = pd.concat([china_annual, us_annual], join='inner', axis=1)
# Resa... | [
"clement@leadiq.com"
] | clement@leadiq.com |
459f40f5198fa6e892d8a8fa7a96f60e4f6eff43 | a707312fc63fdf0b1b719d8d593695de082cad7f | /betterRest_jira_example/__init__.py | 875da41c9e3be43e1c5860b292e19e04e70a3fc2 | [] | no_license | fdev31/bugrest | e75f7c1f387ead4636f56994bfbdbb5afca24368 | 2713712b8ae2b2d9b3b5a8b43c8c5e302da6271a | refs/heads/master | 2023-02-08T19:48:55.702820 | 2023-01-27T19:02:51 | 2023-01-27T19:02:51 | 83,884,018 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,090 | py | __all__ = ["commands"]
class CFG:
@classmethod
def asDict(kls):
return {}
jira_plugin = {}
def init(env, opts):
# must be loaded after the jira plugin !!
jira_plugin["mod"] = env["plugins"]["jira"]
jira_plugin["cfg"] = env["plugins"]["jira"].CFG
def get_jira_object():
return jira... | [
"fdev31@gmail.com"
] | fdev31@gmail.com |
c79b0645329cf6d9eb5b20d1430672e0d0dc2f1d | e51742f3b8026d6ae44761445689ac47f1f2e495 | /plot_two_file_groups.py | 57eed9c40f8b30805a5ecb90effe559dc0679f8d | [] | no_license | igridchyn/neuro-analysis | a2979692ea6a2c99dc0991bc371125f0ec6edb5d | c0b1bb6abc9b34328aa515ce4a9098f3cbc9f05a | refs/heads/main | 2023-06-26T09:48:46.250806 | 2021-07-29T09:34:53 | 2021-07-29T09:34:53 | 390,671,932 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,447 | py | #!/usr/bin/env python
# plot data from two groups of files (obtained by find through given
from matplotlib import pyplot as plt
from sys import argv
import subprocess
import numpy as np
from math import sqrt
import os
from scipy.stats import ttest_ind
if len(argv) < 2:
print '(1)<wildcard 1> (2)<wildcard 2>'
wc1 ... | [
"igor.gridchin@gmail.com"
] | igor.gridchin@gmail.com |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.