blob_id stringlengths 40 40 | directory_id stringlengths 40 40 | path stringlengths 3 281 | content_id stringlengths 40 40 | detected_licenses listlengths 0 57 | license_type stringclasses 2
values | repo_name stringlengths 6 116 | snapshot_id stringlengths 40 40 | revision_id stringlengths 40 40 | branch_name stringclasses 313
values | visit_date timestamp[us] | revision_date timestamp[us] | committer_date timestamp[us] | github_id int64 18.2k 668M ⌀ | star_events_count int64 0 102k | fork_events_count int64 0 38.2k | gha_license_id stringclasses 17
values | gha_event_created_at timestamp[us] | gha_created_at timestamp[us] | gha_language stringclasses 107
values | src_encoding stringclasses 20
values | language stringclasses 1
value | is_vendor bool 2
classes | is_generated bool 2
classes | length_bytes int64 4 6.02M | extension stringclasses 78
values | content stringlengths 2 6.02M | authors listlengths 1 1 | author stringlengths 0 175 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
0753dd9e69c7ef1f6fcaf2dd6e5751a5c5cb12b6 | 7465b8929289b1a435750fc825d558ae711e84a5 | /client.py | 2fee9c1297ef429e9a3a0e4fe8c2a24615b67df1 | [] | no_license | mifcom-iv/BarcodeScanner | 3030143b31bb3cc3927a23cd2d8434e8569e82eb | 619d2fdac6248267486c00b5086be8f2a84d5f6c | refs/heads/master | 2023-01-07T14:25:47.121139 | 2020-11-03T13:50:48 | 2020-11-03T13:50:48 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,123 | py | import cv2
import time
import os
from pyzbar import pyzbar
import simplejson as json
import requests
import threading
import random
cap = cv2.VideoCapture(0)
font = cv2.FONT_HERSHEY_PLAIN
cap.set(cv2.CAP_PROP_AUTOFOCUS, 0)
cap.set(cv2.CAP_PROP_FOCUS, 100)
cap.set(3, 1280)
cap.set(4, 1024)
def update_detection():
... | [
"skipperro@gmail.com"
] | skipperro@gmail.com |
08ad55cb546abc0b9e3e0cca87900e8499006e3e | 40f93bb82fe3f911c768676f02380519f3a98fd9 | /bricks.py | 374bea8b66210b48ea67ea38bdf4efee9ef7d6a0 | [] | no_license | aadarshraghunathan/Terminal-Game | 143481e9c6f5eedd6f62dde6c00c0bc231e1a087 | 2c470a60ea24e5cb0b94bfa119f2f45815405d4a | refs/heads/master | 2023-03-27T05:32:56.026361 | 2021-03-19T17:27:30 | 2021-03-19T17:27:30 | 349,503,511 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,300 | py | import time
import powerups
import random
l1 = powerups.powerups
class bricks: # (x,y) is the bottom left corner of the block and score is the number of hits the block can tolerate
def __init__(self, x, y, score):
self.x = x
self.y = y
self.height = 1
self.width = 9
self.... | [
"aadu.r01@gmail.com"
] | aadu.r01@gmail.com |
1dc9c0534e24d225ec4d1804cdae435dfa7c7bf5 | 557df02ebb9ead0722f9979cd3412d3e5933c4f2 | /labexercise_5.py | 1f5b0bef3ce711b994df617f470498bb076b6faa | [] | no_license | prabalbhandari04/python_ | 7409969a5324510d7b6f17992fc7899c437a1d14 | b84bdefb5214ad9b61c950b11986ef975cafdec0 | refs/heads/master | 2020-09-07T19:04:25.634560 | 2019-12-12T07:42:13 | 2019-12-12T07:42:13 | 220,886,011 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 184 | py | #Write a Python program that accepts a word from the user and reverse it.
def reverse():
rev = word[::-1]
print(rev)
word = input("Enter a word to be reversed:")
reverse() | [
"noreply@github.com"
] | noreply@github.com |
4055c0b8d5cfcebbc7f81b1354a620ded0422057 | bde76b010eebfa338b4556bbe6af85a9e093a773 | /ivpk/plots.py | 28af37151cb04e38e9698146717b98e62801a3c7 | [
"MIT"
] | permissive | yanshouyu/human-iv-pk | 81a98cae1983feef68d4c6692096e123771a5880 | d4517fce11dfa407b2b125afcdeb213fcb01bed4 | refs/heads/main | 2023-07-15T02:03:14.255631 | 2021-08-19T08:59:08 | 2021-08-19T08:59:08 | 393,326,063 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,432 | py | """Visualization module, including both data and molecule visualization.
"""
from rdkit import Chem
from rdkit.Chem.rdchem import Mol
from rdkit.Chem import Draw
from rdkit.Chem.Draw import rdMolDraw2D
import numpy as np
from typing import Union, Tuple
from matplotlib import pyplot as plt
from .utils import morgan_bit_... | [
"yan.shouyu@foxmail.com"
] | yan.shouyu@foxmail.com |
b9cd9b43fb64eb1805b8b9e3a30ddee088c9540c | 76f59c245744e468577a293a0b9b078f064acf07 | /3.longest-substring-without-repeating-characters.py | f5ddb791b9a978f2ed72a471cf53a960cb68a2a9 | [] | no_license | satoshun-algorithm-example/leetcode | c3774f07e653cf58640a6e7239705e58c5abde82 | 16b39e903755dea86f9a4f16df187bb8bbf835c5 | refs/heads/master | 2020-07-01T10:24:05.343283 | 2020-01-13T03:27:27 | 2020-01-13T03:27:27 | 201,144,558 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 562 | py | #
# @lc app=leetcode id=3 lang=python3
#
# [3] Longest Substring Without Repeating Characters
#
class Solution:
def lengthOfLongestSubstring(self, s: str) -> int:
if not s:
return 0
c = 0
for i, _ in enumerate(s):
characters = ''
for j in s[i:]:
... | [
"shun.sato1@gmail.com"
] | shun.sato1@gmail.com |
4e7b737ef7c0dfbd4334a02c47e6e82ee662b5e9 | bec623f2fab5bafc95eb5bd95e7527e06f6eeafe | /django-shared/treemenus/migrations/0003_menuitem_caption_pt.py | 7f07c34686f12f29e3581c5062d3499f2d994595 | [] | no_license | riyanhax/a-demo | d714735a8b59eceeb9cd59f788a008bfb4861790 | 302324dccc135f55d92fb705c58314c55fed22aa | refs/heads/master | 2022-01-21T07:24:56.468973 | 2017-10-12T13:48:55 | 2017-10-12T13:48:55 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 468 | py | # -*- coding: utf-8 -*-
from __future__ import unicode_literals
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('treemenus', '0002_menuitem_caption_pl'),
]
operations = [
migrations.AddField(
model_name='menuitem',
... | [
"ibalyko@ubuntu-server-16-04"
] | ibalyko@ubuntu-server-16-04 |
7666a5cf1d0b282967767d4acfacfbe8ebb452cc | 9a871ca18c94f080f51fab53de90ecec6bc4ca65 | /django_dzenlog/signals.py | 6ed5ebfd3059816ef7ef979ad003a885901b234d | [] | no_license | IIKovalenko/django-dzenlog | dbfc302ba70d39be28176b029f91d844faa83847 | 45025d20e6d56322fece40f81e0ab370beed2b9c | refs/heads/master | 2020-06-02T15:24:35.009989 | 2010-12-04T18:52:06 | 2010-12-04T18:52:06 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 86 | py | from django.dispatch import Signal
published = Signal(providing_args=['instance',])
| [
"svetlyak.40wt@gmail.com"
] | svetlyak.40wt@gmail.com |
fa8c94040d155a351e2b5c25b1d46aa6b8dd8ab6 | eefa9973b0cbafd3c05b795be8b85fc1ded9fff2 | /healthapp/migrations/0006_auto_20211012_1736.py | 73363350baff31c1c9912e5261841b199251de72 | [] | no_license | HwToLrn/opencvhealth | ccb7de8b51a963af4fa37f74d2e00922cc3dcfcd | d693d2f9040f371fdce63abcbdbc040a9cff7390 | refs/heads/main | 2023-09-01T01:23:56.444194 | 2021-10-12T19:12:10 | 2021-10-12T19:12:10 | 416,202,434 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 711 | py | # Generated by Django 3.2.8 on 2021-10-12 08:36
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('healthapp', '0005_healthcustom'),
]
operations = [
migrations.RenameField(
model_name='healthcustom',
old_name='repe... | [
"dayoorang@gmail.com"
] | dayoorang@gmail.com |
929b7bcac75f34355aa13b3f1e3a5faab8b98760 | f3b233e5053e28fa95c549017bd75a30456eb50c | /mcl1_input/L29/29-40_wat_20Abox/set_4.py | e1cd145f4856de5364ea6cdd85c38159e2eee008 | [] | no_license | AnguseZhang/Input_TI | ddf2ed40ff1c0aa24eea3275b83d4d405b50b820 | 50ada0833890be9e261c967d00948f998313cb60 | refs/heads/master | 2021-05-25T15:02:38.858785 | 2020-02-18T16:57:04 | 2020-02-18T16:57:04 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 738 | py | import os
dir = '/mnt/scratch/songlin3/run/mcl1/L29/wat_20Abox/ti_one-step/29_40/'
filesdir = dir + 'files/'
temp_prodin = filesdir + 'temp_prod_4.in'
temp_pbs = filesdir + 'temp_4.pbs'
lambd = [ 0.00922, 0.04794, 0.11505, 0.20634, 0.31608, 0.43738, 0.56262, 0.68392, 0.79366, 0.88495, 0.95206, 0.99078]
for j in lambd... | [
"songlin3@msu.edu"
] | songlin3@msu.edu |
7058046baa3c952775c38a273ce86611b6ff8399 | 15f321878face2af9317363c5f6de1e5ddd9b749 | /solutions_python/Problem_117/516.py | 2f37f445e68945c2132f222f58ca3bd97747e8c4 | [] | no_license | dr-dos-ok/Code_Jam_Webscraper | c06fd59870842664cd79c41eb460a09553e1c80a | 26a35bf114a3aa30fc4c677ef069d95f41665cc0 | refs/heads/master | 2020-04-06T08:17:40.938460 | 2018-10-14T10:12:47 | 2018-10-14T10:12:47 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,241 | py | lines = open('data.txt').read()
output = open('output.txt', 'w')
lines = lines.splitlines()
cases_num = int(lines[0])
lines = lines[1:]
cur_index = 0
for i in range(cases_num):
case_num = i + 1
m, n = lines[cur_index].split()
n = int(n)
m = int(m)
cur_index += 1
matrix = []
for row_ind in r... | [
"miliar1732@gmail.com"
] | miliar1732@gmail.com |
83db1bb88ed3a2db62f321db2e83dd80786b703b | 49e9838c3d4e3ff393342c651bbecf6c4b733945 | /chat/chatbox/permissions.py | f8bbce8adc467ee9873240f6236bfb806289b216 | [] | no_license | jideabdqudus/pychat_be | a904287e353d7385729beb309ad082c7e0c949c9 | 5113abb73b27aea82320decd237c905f85c25104 | refs/heads/main | 2023-06-10T20:25:56.565670 | 2021-06-29T21:47:24 | 2021-06-29T21:47:24 | 377,649,098 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 389 | py | from rest_framework import permissions
class UpdateOwnPost(permissions.BasePermission):
"""Allow users to update their own status"""
def has_object_permission(self, request, view, obj):
"""Check the user is trying to update their own status"""
if request.method in permissions.SAFE_METHODS:
... | [
"jideabdqudus@gmail.com"
] | jideabdqudus@gmail.com |
aa7848567de21cc1e2bbf18f411bcce6258b36e8 | a3aab8e80ec5d660aa70cec28a48bff19800dc30 | /TaskDo/tasktracker_team/apps.py | 1f21df54c85f7413c6cbe3df650663bf4ccaf741 | [] | no_license | zubarenik/TaskDo | be95ba5a9344264a0466318614b876fc12a246c0 | c4bb89e0c511abc26895bd0dfc3c24c2cab637d2 | refs/heads/master | 2022-12-22T11:02:27.743929 | 2020-09-22T14:33:48 | 2020-09-22T14:33:48 | 297,669,838 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 106 | py | from django.apps import AppConfig
class TasktrackerTeamConfig(AppConfig):
name = 'tasktracker_team'
| [
"zubarenik@gmail.com"
] | zubarenik@gmail.com |
a5349026ada15c40b557c4114bf8afbc7b1c65fa | dcb387712437c2f2542809ed2f9286a97af68485 | /code_deprecated/tango_with_django_project/tango_with_django_project/settings.py | 91fc6dce1d0b77f9eb121a25e0ee32e7f228859f | [] | no_license | perkalerk/TangoWithDjango | 61af2c7d3376140da9f31dc35214808b8098dd6b | 080953405cd26ab4f94e74ddbcc1ff42c9cc1eae | refs/heads/master | 2021-01-11T02:40:00.742829 | 2016-10-21T21:03:23 | 2016-10-21T21:03:23 | 70,913,852 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,720 | py | """
Django settings for tango_with_django_project project.
For more information on this file, see
https://docs.djangoproject.com/en/1.7/topics/settings/
For the full list of settings and their values, see
https://docs.djangoproject.com/en/1.7/ref/settings/
"""
# Build paths inside the project like this: os.path.join... | [
"Andrew@tegraanalytics.com"
] | Andrew@tegraanalytics.com |
2ec8cd1a2d3ff906aa3f726721c7fdcbdf438dfc | 1b4894c3660a1afb6021a95d9ce0b33e295c6dc3 | /src/101-150/125.py | b690b2bb33145bccaba8d41bee548686d37401b9 | [
"MIT"
] | permissive | adaggarwal/leetcode1992 | dbfba8ba38efbe34a84ae2b7272c3c077faeac5b | 4e0cc19ae89050770a7a6d4ba5b330dc76c8dfdc | refs/heads/master | 2022-05-26T20:20:04.833871 | 2022-05-09T02:19:33 | 2022-05-09T02:19:33 | 137,307,149 | 9 | 5 | MIT | 2020-07-10T01:50:14 | 2018-06-14T04:45:20 | Python | UTF-8 | Python | false | false | 742 | py | '''
125. Valid Palindrome
Share
Given a string, determine if it is a palindrome, considering only alphanumeric characters and ignoring cases.
Note: For the purpose of this problem, we define empty string as valid palindrome.
Example 1:
Input: "A man, a plan, a canal: Panama"
Output: true
Example 2:
Input: "race a... | [
"aggaraditya@gmail.com"
] | aggaraditya@gmail.com |
20dd3e7f584a02e5e3b09c1e309e86c08733305c | b6417cfd5fd01458f08d02b9a551faa330130463 | /tests/test_authforms.py | ccfaf92e9fab132858309fecbc438d9557e26908 | [] | no_license | TristanRice/Protest.me | d3cf4cd583eace3d2b9895c82d4c107e3c600d1d | 1d74a3e3ebbbca62c4c0f9bf3901e8b62f002c6c | refs/heads/main | 2023-03-31T13:16:23.471831 | 2021-04-11T16:44:19 | 2021-04-11T16:44:19 | 354,333,691 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,677 | py | import pytest
from app.models import Protest, User
from app import app, db
import re
import datetime
from string import ascii_lowercase
import random
import time
test_client = app.test_client()
def create_random_username():
return "".join(random.choice(ascii_lowercase) for _ in range(10))
def create_random_email... | [
"minor_2468@hotmail.com"
] | minor_2468@hotmail.com |
b085f75a1abf112fb5ab270b6c1ca6ab5ca9f87f | 09e8d7f378fdbda66a3b730a9be1d3c2e34d570b | /ZB.py | dd2bf9b0bc3d2096745571f7697ecf5239a524b4 | [] | no_license | laaciits/RTR105 | bd53da410772ca5f8e54d295b2cdf4f5e23fce7c | cb3d64015104574dbecad38a740c6c14c247474c | refs/heads/master | 2020-03-28T03:24:01.690515 | 2019-02-08T09:37:48 | 2019-02-08T09:37:48 | 147,642,366 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 642 | py | # -*- coding: utf-8 -*-
from math import sin
# S0, S1, S2, S3 -> S
x = float(input("Lietotāj, lūdzu, ievadi argumentu (x): "))
y = sin(x/2)
print("sin(%.2f) = %.2f"%(x,y))
a0 = (-1)**0*x**(2*0+1)/(2*0+1)*2**(2*2*0+1)
S = a0
print("a0 = %.2f S0 = %.2f"%(a0,S))
a1 = (-1)**1*x**(2*1+1)/(2*1+1)*2**(2*1+1)
#S1 = (a0) + a... | [
"noreply@github.com"
] | noreply@github.com |
d3c628ada98b13f64b53fd43795a2a7054c81546 | 52c3ff9435a895893fd2b917cba3d6a36fbdf8a5 | /namesapi/namesapi/wsgi.py | ee2e2491803fc9abda25519a6b9ba118a4d24f6f | [] | no_license | rsgilbert/names-env | fb69466f7eb28fd34c4aee2d2489219422ba2eeb | bcb20150437d76baa93e07276ae051f052fe8d56 | refs/heads/master | 2022-05-03T02:47:25.137991 | 2019-09-06T12:48:24 | 2019-09-06T12:48:24 | 206,786,722 | 0 | 0 | null | 2022-04-22T22:16:19 | 2019-09-06T12:14:10 | Python | UTF-8 | Python | false | false | 393 | py | """
WSGI config for namesapi 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/2.2/howto/deployment/wsgi/
"""
import os
from django.core.wsgi import get_wsgi_application
os.environ.setdefault('DJANGO_SETT... | [
"gssenyonjo@gmail.com"
] | gssenyonjo@gmail.com |
4b964397df7ef88fabea054402bb1db1ad59d9b4 | 7f43264f32a57599d87fe8be8e0d748d89abecab | /api_v0/ElasticsearchURL.py | 46da6ee9e31f2e2d8f574166965a86e3a980e86c | [] | no_license | chair300/rsss_api | e13215439be1bfaa536ea7be5bfe4cc657bb0663 | 03866b0f5052dc81b61cab3b1c2a451d8e2ec449 | refs/heads/master | 2023-03-19T02:38:09.963553 | 2018-01-17T00:41:18 | 2018-01-17T00:41:18 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,498 | py | from rest_framework.response import Response
from api_v0.serializers import ScoresRowSerializer
from django.conf import settings
import requests
import random
import json
#make all the stuff in views.py use this class.
#NOTE: if it turns out that making a query to check if a server is response is
#This is the way to ... | [
"rebeccakathrynhudson@gmail.com"
] | rebeccakathrynhudson@gmail.com |
a23254d0dc4694c1e4b422d7c01a592c9f3ab7ad | 03c4bff614702639d0ba2da99e23b55a96863066 | /main/src/independent/__init__.py | e110ea902d582774e9f789bff738ce793226fd7a | [] | no_license | wangwuli/XLauto | dcaa9320c62ea78cbddad46bd65dab04ee87ba61 | 88705807df697dc86a5ed8a648505b3fb895872b | refs/heads/master | 2023-01-10T04:40:32.976245 | 2021-02-23T16:50:34 | 2021-02-23T16:50:34 | 223,140,055 | 1 | 0 | null | 2022-12-12T03:55:39 | 2019-11-21T09:43:56 | Python | UTF-8 | Python | false | false | 186 | py | # from .logio import login
# def init_app(app):
# login.init_app(app)
from flask import Blueprint
independent = Blueprint('independent', __name__)
from src.independent import nmap | [
"liww@cenboomh.com"
] | liww@cenboomh.com |
8c752f8f75dae42db01ac5d7a7ce833f5757c8e3 | 59b4a26e405cdc256b370e9ad141bf930965c609 | /emailValidation_app/controllers/emailValidations.py | 4a0c2db44d76678aba90b212c186a25b12cd48f0 | [] | no_license | cbakcoleman/CD_FlSql_emailValidation | 13c5e69e1bd629c46b2d669bb0ba86cc1a8f585a | 6c62dca69685397fdd10eb0295c93af313bfd7ad | refs/heads/master | 2023-08-12T06:53:40.223422 | 2021-09-14T23:00:59 | 2021-09-14T23:00:59 | 406,139,441 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 630 | py | from emailValidation_app import app
from flask import render_template, redirect, request
from emailValidation_app.model.emailValidation import Email
from flask import flash
@app.route("/")
def home():
return render_template("index.html")
@app.route("/register", methods=["POST"])
def register():
print(request... | [
"88118758+cbakcoleman@users.noreply.github.com"
] | 88118758+cbakcoleman@users.noreply.github.com |
098c3ccd7b91207c10bdec75c4ec1098cdd7ee8c | 4572c7a30af256f47eb2742b6beb1c820eaf475b | /main.py | 34b7da4cbca6501ef46e81c6fe177cb66aed0029 | [] | no_license | stanislavstarkov/pi-pico | afa1a30655f2b7aff9ec3718f5b56f34a01cca7b | 18c74ac2f8bea81a852f140285bb874f95f9a9ae | refs/heads/master | 2023-04-01T19:53:59.832637 | 2021-03-31T18:10:11 | 2021-03-31T18:10:11 | 348,808,585 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 482 | py | from machine import Pin,ADC
import utime
adc = ADC(26)
TEMPERATURE_SENSOR = ADC(4)
CONVERSION_FACTOR = 3.3 / (65535)
RED_LED = Pin(21, Pin.OUT)
GREEN_LED = Pin(20, Pin.OUT)
BLUE_LED = Pin(19, Pin.OUT)
LEDS = [RED_LED, GREEN_LED, BLUE_LED]
for led in LEDS:
led.off()
while True:
val = adc.read_u16() * CONVERSION_FAC... | [
"stanislav.starkov@gmail.com"
] | stanislav.starkov@gmail.com |
96a81eea6f894c02e7acccdf364b4b8bbc19a7c3 | a010b36f7de8b1f056f8935db717639a145e75f9 | /cell_field.py | 23ca1840a2f22de1fe5dbd4846939a7447c35186 | [] | no_license | victormorozov1/pygame_field | 04a2a2329648a2d3b5985945b0f76e783b1ee7db | 3f35ecfd7e904d193802a586e553fe7b2ab3d4e3 | refs/heads/master | 2020-09-29T23:56:23.672975 | 2019-12-26T10:30:32 | 2019-12-26T10:30:32 | 227,151,801 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,134 | py | import pygame
from field import Field
from random import randrange as rd
from functions import *
class CellField(Field):
def __init__(self, szx, szy, field_arr, field_dict, cell_sz=64, bg=(255, 255, 255)):
super().__init__(szx, szy, bg=bg)
self.field_arr = field_arr
self.field_dict = field... | [
"vismo@bk.ru"
] | vismo@bk.ru |
d35f6b4783bc805b8733a5dde7649cb3452f1da9 | f42f0dd339093895a971a5e64d5e01382c4cbeea | /arts/arts/settings.py | 07b3a98297844a55a0ad8c57abcf4d6a743476d6 | [] | no_license | rusbal/artuus | e379e3a0ef9c72fdcdeb83d2cf96c1744265a403 | 9d3d4736c0435dff572bb2e3f1aaab43d1a76db2 | refs/heads/master | 2020-05-09T20:40:58.532398 | 2015-04-16T17:13:00 | 2015-04-16T17:13:00 | 34,054,504 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,936 | py | """
Django settings for arts project.
For more information on this file, see
https://docs.djangoproject.com/en/1.6/topics/settings/
For the full list of settings and their values, see
https://docs.djangoproject.com/en/1.6/ref/settings/
"""
# Build paths inside the project like this: os.path.join(BASE_DIR, ...)
impor... | [
"raymond@philippinedev.com"
] | raymond@philippinedev.com |
63787f329717b913e1ca259593439e0fb42d7a1c | 1257fadd402cb1ea3a2b8262833a00ee969fbfbe | /conduit/app.py | 8f84ee89807ad26735c81d9dc19edc657a2d7bc8 | [
"MIT"
] | permissive | Willis0826/flask-realworld-example-app-ci-cd | d81742c27800292eb468dc09a4b684422cf827c0 | f8a9293a4f58c2312ad95520d8858b0b2a8be86b | refs/heads/master | 2023-03-08T02:03:14.995918 | 2023-02-20T16:09:36 | 2023-02-20T16:09:36 | 233,528,197 | 1 | 0 | MIT | 2023-02-20T16:10:31 | 2020-01-13T06:38:01 | Python | UTF-8 | Python | false | false | 2,379 | py | # -*- coding: utf-8 -*-
"""The app module, containing the app factory function."""
from flask import Flask
from conduit.extensions import bcrypt, cache, db, migrate, jwt, cors
from conduit import commands, user, profile, articles
from conduit.settings import ProdConfig
from conduit.exceptions import InvalidUsage
def... | [
"willis_chou@trendmicro.com"
] | willis_chou@trendmicro.com |
d402c0437514136df6d09b410b5a1e2423715000 | 712022621249b210fd384158f08a05e02f567bb4 | /model/project.py | 23ff065f4e347215fc9bda91989b1b36739bb796 | [] | no_license | Ka3a4ook/python-Mantis_BT | b35a92b78322b419c256bc90ae58c22a0e8058a4 | 0f38f08fde12f7d817211611c3b0842a32235b58 | refs/heads/main | 2023-02-05T17:24:03.189228 | 2020-12-27T21:47:48 | 2020-12-27T21:47:48 | 322,549,131 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 737 | py | from sys import maxsize
class Project:
def __init__(self, name=None, status=None, inherit_global=True, view_state=None, description=None, id=None):
self.name = name
self.status = status
self.inherit_global = inherit_global
self.view_state = view_state
self.description = de... | [
"89052585288@mail.ru"
] | 89052585288@mail.ru |
48f45b897c9bf17861962bc4ebf47143512923ef | 7b290aa7d2fe64c2ee7adb31ed0212dea6d22189 | /IO_multi/s2/s1.py | 3affac98cd11eab3259b0b96b943bf75cb1916df | [] | no_license | ginkgodia/PYcode | 97866c1a74d896368e6f6a9cc6450a6665c4d1b0 | cbac336cd7be46fea442b2b112d29184361f0db3 | refs/heads/master | 2021-09-05T13:29:05.201458 | 2018-01-28T06:55:34 | 2018-01-28T06:55:34 | 115,179,258 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,056 | py | #!/usr/bin/env python
# -*- coding=utf8 -*-
# @Author:Ginkgo
# @File: s1
# @Time: 2018/1/25 22:00
import socket
import select
s1 = socket.socket()
s1.bind(("127.0.0.1", 8001))
s1.listen()
inputs = [s1, ]
outputs = []
message_dict = {}
while True:
r_list, w_list, x_list = select.select(inputs, outputs, [], 1)
... | [
"907632998@qq.com"
] | 907632998@qq.com |
c2863e4dc147572401933bd01d965ba2f78229d3 | b0067a719fcfe1e64bd6dcf20ccf5fae93410d7d | /algo.py | 1d205d71922ada986ec916a7791ac0c404066748 | [] | no_license | sravanthi-ch/Friend-Suggestion-Algo | 9c83cdeeb5da92afd0917860a6384dda355c5da9 | 2a73b0b50b61b6d709432a05404fc2a10341b83c | refs/heads/master | 2020-04-18T03:55:23.158488 | 2019-01-23T17:06:17 | 2019-01-23T17:06:17 | 167,218,938 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,719 | py |
# List of friends of friends...
ff_list = {
1 : [2, 4, 5],#[2,4,5,3]
2 : [1, 4, 6],
3 : [4, 5],#[4,5,1]
4 : [1, 2, 3, 6],
5 : [1, 3, 6],
6 : [2, 4, 5]
}
# schoolfriend=1, neighbour =2, college mate=3, collegue =4, relative =5, teacher/ student=6, employee/employer=7
hr_list = {
1 : [4,2,3],... | [
"noreply@github.com"
] | noreply@github.com |
9fee9927053a85fe0988554aa2c1cf7fc746326b | 8a7950440a4a8015523a1e1474a3bfc3aaa95782 | /email_smtplib/basic/email_send2.py | d3b046d99e4e22a27c9ecef541a328042c1dbfab | [] | no_license | SatishNitk/Python_Web_Scrapper | bddb320b86a8942b6b3c346eb09f09b933be5b37 | f257ad2e6d2053f0f86443905de87ccf81df0c62 | refs/heads/master | 2020-05-07T19:51:51.816353 | 2019-07-07T13:31:27 | 2019-07-07T13:31:27 | 180,826,120 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,037 | py | from email.mime.multipart import MIMEMultipart
from email.mime.text import MIMEText
from smtplib import SMTP, SMTPException,SMTPAuthenticationError
host = "smtp.gmail.com"
port = 587
email = "hungrygupta@gmail.com"
password = ""
from1 = "hungrygupta@gmail.com"
to_list = ["hungrygupta@gmail.com"]
try:
email_obj = SM... | [
"satishkrgu95@gmail.com"
] | satishkrgu95@gmail.com |
c0ccca0a0a3c420e12571083f2fb21357e046b62 | 8a6b1a90dd7ab92bb8e5880efcf0a587f59bc77f | /Modules/data_methods.py | 7807843659a4e5c9c6c1a30ac1368cb5067846e6 | [] | no_license | osuranboa/music-learning | b79756fa45859d1cf7c7d229d7f6d7259a35360a | 7e80230ed45055f6fbef16e857d0c01c0142e528 | refs/heads/master | 2020-12-22T07:31:50.984227 | 2019-11-12T02:09:53 | 2019-11-12T02:09:53 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,364 | py | from sklearn import decomposition
from sklearn import preprocessing
from sklearn import cluster
import pandas as pd
import numpy as np
import plotly.plotly as py
import sys
from plotly.graph_objs import *
import pdb
def transformPCA(X, n):
pca = decomposition.PCA(n_components = n)
X = pca.fit_transform(X)
... | [
"jonathan.kroening@ipsos.com"
] | jonathan.kroening@ipsos.com |
d7309c81554e616dd3b96b608dcd9a41dbabebc1 | e5a26ae20d4d44c544f9fc6b052d074114da10b1 | /clean_seq_names.py | e13ad489c6c71c10f759c33e9fe1f6427bca55cd | [] | no_license | rdtarvin/sequence-manipulation | d8608f68a74419d39c3c1ea746362b879ca95c47 | 09630d61776195893d14dd53d9672e86e4bbd3cd | refs/heads/master | 2020-05-17T07:59:43.992857 | 2019-02-06T21:39:33 | 2019-02-06T21:39:33 | 18,824,595 | 1 | 1 | null | null | null | null | UTF-8 | Python | false | false | 1,295 | py | # -*- coding: utf-8 -*-
"""
Created on Mon Apr 14 20:27:07 2014
@author: RDT
"""
'''This script reorganizes the rec.id and rec.description of a fasta file.'''
from Bio import SeqIO
import sys
def clean_seqs(infile,genename,database):
'''Open fasta infile and return iterator of SeqRecords with protein sequences.... | [
"rdtarvin@gmail.com"
] | rdtarvin@gmail.com |
d11d940582b0e8fbde9f48ff33c8715cee9d1f05 | 4ea0cb75847744ed58b188d4277d69370f31a0c7 | /app.py | e1e3f7b4bf38751be3cba21d3d5089c2f469e4cd | [
"MIT"
] | permissive | justinhaef/audit_endpoints | d1c33ada7c8a2e790c3421435fb917a37c4ff083 | 74a77c26c3d7f2a12773961a39220139e3e36537 | refs/heads/master | 2023-04-24T00:37:48.177314 | 2021-05-10T19:21:07 | 2021-05-10T19:21:07 | 364,438,280 | 0 | 0 | MIT | 2021-05-10T16:52:03 | 2021-05-05T02:11:48 | Python | UTF-8 | Python | false | false | 3,891 | py | import json
import argparse
import logging
from datetime import datetime
from tqdm import tqdm
from pathlib import Path
from parser import Parser
from cleaner import Cleaner
# pip install deepdiff
from deepdiff import DeepDiff
logging.basicConfig(
filename=Path('app.log'),
level=logging.INFO,
format="%(as... | [
"justin.haefner@gmail.com"
] | justin.haefner@gmail.com |
e2148f0f764a79bfe448ff604bbf47c7b66721f4 | ca50e6b61a5b168607beaf960a585a18b67776cb | /acolyte/testing/core/context.py | f96716410fd05d98f4d764ed72fb6fb0f2742f42 | [] | no_license | chihongze/acolyte | 07fdcba2afc89d5c8c4c2d6c924b678b10a5a54c | 57693989261d36511620b19baed801df7b4238e5 | refs/heads/master | 2020-12-30T20:58:27.580788 | 2016-09-18T03:58:47 | 2016-09-18T03:58:47 | 67,601,167 | 3 | 0 | null | null | null | null | UTF-8 | Python | false | false | 746 | py | from acolyte.core.context import MySQLContext
from acolyte.testing import EasemobFlowTestCase
class MySQLContextTestCase(EasemobFlowTestCase):
def setUp(self):
self._flow_ctx = MySQLContext(
self._("FlowExecutorService"), self._("db"), 100086)
def testCommonOperation(self):
"""测试... | [
"hongze.chi@shicaigj.com"
] | hongze.chi@shicaigj.com |
77d2829d54da095fddd7e59397ee677f5e65d3d6 | 7c26f08f666273f0717382382482d92a83d07fbb | /django/tutorial/crud0412/BT/urls.py | 9e58c1dbbc3f12ff2498d0795c4bc46b4fddac4c | [] | no_license | kimyounghoon93/TIL-c9 | f0d7cd574a63ab87545a197ff3d659979c80ed50 | 07301b51cb757e101d44257d71afa61639147378 | refs/heads/master | 2020-04-17T17:17:56.494719 | 2019-05-02T03:09:59 | 2019-05-02T03:09:59 | 166,777,131 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 133 | py | from django.urls import path
from . import views
app_name = 'BT'
urlpatterns = [
path('create/', views.create, name='create'),
]
| [
"busanteam_business@naver.com"
] | busanteam_business@naver.com |
7d7e94d1be2aa238c20dd4c88421ec965f026d95 | 11025e06cbb0d4964adebe76e0a59b4f5d2fe892 | /eichhoernchen/views.py | 466797b9fb56e1736b25413eb21cb321e7390bd5 | [] | no_license | cod3monk/eichhoernchen | 02b3f940008691cd60c541b7cc0e2b88a256c3aa | 27f735f411500719acff554017ad1796d8a0379b | refs/heads/master | 2021-01-01T18:23:31.327480 | 2013-05-22T09:58:32 | 2013-05-22T09:58:32 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,220 | py | #!/usr/bin/env python
# encoding: utf-8
from eichhoernchen import app, api
import model
from flask import render_template
from flask import Flask, request
from flask.ext import restful
import flask
import json
import random
import querier
def match_ip_or_403(allowed_ips):
def decorator(fnct):
def wrappe... | [
"codemonk@u-sys.org"
] | codemonk@u-sys.org |
9b23535eb76065e7d3f1fe2b65e825724333a94e | cd0ffaf0160799e014d20569e99542ab5b3cc6c0 | /testPanedWindow.py | 06cb857a919cf9aee773411c6428a7278aacc360 | [] | no_license | Anm-pinellia/PythonStudy | 0ea92bff9d25bff0726029891c2442e853c22629 | 0810442ae291d5fcb770b380425a7ccdbad9d447 | refs/heads/master | 2022-12-03T18:29:10.670170 | 2020-08-18T06:34:23 | 2020-08-18T06:34:23 | 279,058,280 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 372 | py | from tkinter import *
root = Tk()
m = PanedWindow(showhandle = True, sashrelief=SUNKEN)
m.pack(fill=BOTH, expand=1)
left = Label(m, text='左窗格')
m.add(left)
m2 = PanedWindow(orient=VERTICAL, showhandle = True, sashrelief=SUNKEN)
m.add(m2)
right1 = Label(m2, text='右窗格1')
m2.add(right1)
right2 = Label(m2, text='右窗格... | [
"1752066346@qq.com"
] | 1752066346@qq.com |
ba6005b0ace1cfc2e6631857d634ff0646876303 | 0d566dee40a0fa22b4d9afdc345e57a518c52b71 | /credentials.py | 12aebcbaf7ac04437441ecb26e6259c9f368541c | [] | no_license | AstroCB/waitlistBot | 4f16beca6f630c292ffe98d86d0ea3d22917f264 | e137ccb87c0f84c8969c979fc271e6f043087ffd | refs/heads/master | 2021-01-01T20:42:43.006343 | 2017-07-31T19:10:56 | 2017-07-31T19:10:56 | 98,914,726 | 0 | 0 | null | 2017-07-31T17:55:09 | 2017-07-31T17:55:09 | null | UTF-8 | Python | false | false | 150 | py | Account_SID = "Your SID here"
Auth_TOKEN = "Your Auth token here"
myTwilioNumber = "copy paste your number"
myNumber = "use this format +15556665555"
| [
"cambernhardt@me.com"
] | cambernhardt@me.com |
50d6287652848e060f1283ac01817eee828aae5e | 515107fc56b44742d2938f7f702b36f161214a75 | /python/design_patterns/strategy_pattern/duck.py | 6ff6a164e7dab2df39b6ac347c8effd522095d04 | [
"MIT"
] | permissive | lmregus/Portfolio | e621f50ee943b27a6a6b7c18d1090bd7c56da8c8 | 9a751443edbfe5ff2b47cdeacca86761ed03e81f | refs/heads/master | 2023-09-02T01:56:14.928021 | 2019-06-02T23:01:03 | 2019-06-02T23:01:03 | 34,394,101 | 0 | 0 | MIT | 2022-12-27T15:00:08 | 2015-04-22T14:09:12 | Java | UTF-8 | Python | false | false | 830 | py | from abc import ABC
from abc import abstractmethod
from behavior.fly_behavior import FlyBehavior
from behavior.quack_behavior import QuackBehavior
class Duck(ABC):
def __init__(self, fly_behavior, quack_behavior):
self._fly_behavior = fly_behavior
self._quack_behavior = quack_behavior
@abstr... | [
"lmregus27@gmail.com"
] | lmregus27@gmail.com |
27c47b4018832a5889811707121620980fba947d | 7b8c3ef7ad0e997df37ceaa09a661089280e418c | /libs/selenium/webdriver/common/devtools/v107/runtime.py | 90dc81fb0ce20ecbb547a2298f62dd0cff2f5bf1 | [
"MIT"
] | permissive | rocketbot-cl/webpro | 47053a7c63e9c3526b506f44d970a699bc65d378 | 5927575bf15fc6dd8d40a287ce32de52cd6ba5c8 | refs/heads/master | 2023-08-18T02:47:24.107652 | 2023-08-14T15:07:41 | 2023-08-14T15:07:41 | 218,623,703 | 5 | 4 | null | 2023-08-14T15:07:42 | 2019-10-30T20:51:02 | Python | UTF-8 | Python | false | false | 57,994 | py | # DO NOT EDIT THIS FILE!
#
# This file is generated from the CDP specification. If you need to make
# changes, edit the generator and regenerate all of the modules.
#
# CDP domain: Runtime
from __future__ import annotations
from .util import event_class, T_JSON_DICT
from dataclasses import dataclass
import enum
import ... | [
"nicolas.garcia@rocketbot.com"
] | nicolas.garcia@rocketbot.com |
a9ac46049f6f7f1229187b3476228f9528f6a9e4 | 53e8762caede13acfdc2071a2b8def57128dd3e4 | /Arshia_phase_2/hyperstar_for_skipgram_cbow_w2v/evaluate1.py | 397428a9e2ac03a2934f0a6d629db6bbb2b12980 | [] | no_license | manikyaswathi/SemEval2018HypernymDiscovery | 8c17cf4d16fa48b2719381752b18386acde6c4ee | 03ee054bf0266fed5337b2a8bba14e8d7fec31aa | refs/heads/master | 2020-03-10T14:52:28.582128 | 2017-12-15T20:40:32 | 2017-12-15T20:40:32 | 129,437,112 | 4 | 1 | null | null | null | null | UTF-8 | Python | false | false | 6,108 | py | #!/usr/bin/env python
from batch_sim.nn_vec import nn_vec
import argparse
import csv
import glob
import os
import pickle
import re
import sys
import gensim
from collections import defaultdict
import numpy as np
from projlearn import MODELS
from multiprocessing import cpu_count
parser = argparse.ArgumentParser(descript... | [
"noreply-github@umn.edu"
] | noreply-github@umn.edu |
f0650ee2992ba411453b76ca97c75777d3496945 | d20c77dccaeaf9bda4527e15d8d800a5772852ac | /13-exec/04-selenium/v08-douyu.py | a466f0143d9eb36da799e8c1fd07640bb369e07f | [] | no_license | xrr314/python | e940d5694731584f71792cc3bcf57bf360ddda65 | 125afc91863e44868812ad16dbe03e2e4ede4038 | refs/heads/master | 2020-03-31T04:20:16.933090 | 2019-06-03T12:07:52 | 2019-06-03T12:07:52 | 151,901,253 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 752 | py | '''
爬取斗鱼直播页内容
'''
from selenium import webdriver
import time
from lxml import etree
driver = webdriver.PhantomJS()
def get_page():
driver.get('https://www.douyu.com/directory/all')
time.sleep(5)
html = driver.page_source
return html
def parse(html):
html = etree.HTML(html)
lis = html.xpath('... | [
"xrr940314"
] | xrr940314 |
21a5c03abea2d99977cafd2ece99b4a6c52a04ad | e519c645017782661e00c97a6124d16dc4d7a905 | /inception/inception_rap_model.py | 3fbfbf5c50a7943f4dc39def11c273a0a16c6e09 | [] | no_license | tinhtn1508/GRLModel | b7e68b4d7d91faa715c4ce294717666caec251d9 | 21495dac0df20388def0f7deaebc17b74538524a | refs/heads/master | 2022-01-17T13:33:29.372278 | 2019-05-21T12:42:09 | 2019-05-21T12:42:09 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 19,440 | py | # Copyright 2016 Google Inc. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or a... | [
"slf12thuss@163.com"
] | slf12thuss@163.com |
a7e3300d975a841171e8c857c965142b30239106 | 23631af0987b3f1d30b0bf8bfcea1bd63159eeba | /gate_api/api/__init__.py | 56f948e75c0f565a6647dec42431e9458c3446f2 | [] | no_license | xuvw/gateapi-python | 08c3c72ff0e2c4713bf3a2ffe0b15d05e57491ca | 1a3f3551cba4a756f76f17b070c3e0c5ff2e88ea | refs/heads/master | 2020-05-25T14:33:35.592775 | 2019-04-02T08:50:25 | 2019-04-02T08:50:25 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 223 | py | from __future__ import absolute_import
# flake8: noqa
# import apis into api package
from gate_api.api.futures_api import FuturesApi
from gate_api.api.margin_api import MarginApi
from gate_api.api.spot_api import SpotApi
| [
"revilwang@gmail.com"
] | revilwang@gmail.com |
50fb214882899ea973df69630262b57e20b57534 | 62e58c051128baef9452e7e0eb0b5a83367add26 | /edifact/D94B/CONQVAD94BUN.py | 8785753a062814ca0ea352440adb08d86535cd20 | [] | no_license | dougvanhorn/bots-grammars | 2eb6c0a6b5231c14a6faf194b932aa614809076c | 09db18d9d9bd9d92cefbf00f1c0de1c590fe3d0d | refs/heads/master | 2021-05-16T12:55:58.022904 | 2019-05-17T15:22:23 | 2019-05-17T15:22:23 | 105,274,633 | 0 | 0 | null | 2017-09-29T13:21:21 | 2017-09-29T13:21:21 | null | UTF-8 | Python | false | false | 1,437 | py | #Generated by bots open source edi translator from UN-docs.
from bots.botsconfig import *
from edifact import syntax
from recordsD94BUN import recorddefs
structure = [
{ID: 'UNH', MIN: 1, MAX: 1, LEVEL: [
{ID: 'BGM', MIN: 1, MAX: 1},
{ID: 'DTM', MIN: 1, MAX: 9},
{ID: 'AUT', MIN: 0, MAX: 2},
{ID: 'FTX'... | [
"jason.capriotti@gmail.com"
] | jason.capriotti@gmail.com |
d7cbffddf5802e40d531f1b6a26d5a2c7299f3be | 4c1bb75e7267311238fa40761db326bba2a24168 | /application2/testing/test_mock.py | 221ddfd0be3c8b7269ab1786ae7d2e63aa95bf6a | [] | no_license | mobamba1/DockerTask | b6fa45f61b90ddee78b41af055d83f1f90be873f | 9b975f5a93096d3569ef93c08d963f782c08b1aa | refs/heads/master | 2022-12-01T17:49:43.329507 | 2020-08-19T15:18:29 | 2020-08-19T15:18:29 | 288,765,831 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 510 | py | from unittest.mock import patch
from flask import url_for
from flask_testing import TestCase
from application2.app import animals, animalsnoises
from application2 import app
class TestBase(TestCase):
def create_app(self):
return app
class TestResponse(TestBase):
def test_football(self):
wit... | [
"kenneth1521412@gmail.com"
] | kenneth1521412@gmail.com |
9f312a1302c6fccc481de9229fb5f60c5f35095e | 439a1a4a95ea2a915c20b12aa49d083d28be5e72 | /miscellaneous_scripts/change_fasta_headers.py | 055ffd86c7db8428591a0b8ae36efcd934725214 | [] | no_license | davidgllund/ARG_analysis_scripts | 611b4b1efa8976a4b5ef37b7b8d67a1c4dbacb63 | 7f1388ab8fa48951534813c850ae62222deebd5a | refs/heads/master | 2023-05-26T23:36:37.365107 | 2021-06-01T12:48:36 | 2021-06-01T12:48:36 | 337,497,994 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 1,059 | py | #!/usr/bin/env python
#--------------------------------------------------------------------------------------------------------------------
# Script that, given a list of fasta-file headers, a fasta-file, and the name of the output file produced,
# changes the headers of the original fasta to the new headers provided,... | [
"dlund@athena.math.chalmers.se"
] | dlund@athena.math.chalmers.se |
70bc0c7fd60448ce2c089fc9d82d3e94cd8b2e1a | b7d6b87961fc0b641f8d0239a0f56a3c8027f0d6 | /main.py | a716ab90fcf1daeff352423e92716a580e51b3dc | [] | no_license | dcolthar/napalm_tools | ab8e257911710ceacfaee90d1325091dad378ffc | a4b0eb493da173c6da3c9640c31ed723517b4183 | refs/heads/master | 2023-03-02T18:17:04.546009 | 2021-02-11T17:28:04 | 2021-02-11T17:28:04 | 285,040,446 | 1 | 0 | null | 2020-08-04T20:21:17 | 2020-08-04T16:42:07 | Python | UTF-8 | Python | false | false | 12,857 | py | import napalm_common_operations
from getpass import getpass
import threading
from queue import Queue
import pandas as pd
import argparse
import os
class Main():
def __init__(self):
args = argparse.ArgumentParser()
args.add_argument('--get_config', help='will copy the full config to... | [
"dcolthar090406@gmail.com"
] | dcolthar090406@gmail.com |
2acecc2df69505f7e1212e4a55334a54cc1983bf | 24ff9c836944e2d1592a36a7962b36978d2fb16d | /gkn/models.py | 1cab2c99373066bffd0b8f74203b3ad80e0d7a1d | [] | no_license | VitalySvyatyuk/gkn | d2d67d4ba02849a64a5d45b4affd2a8ab5004d57 | f184de1578e8d0f25bc0c27530d7e013376fa898 | refs/heads/master | 2021-04-15T13:48:52.317866 | 2016-08-19T09:23:26 | 2016-08-19T09:23:26 | 65,666,567 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 222 | py | from django.db import models
class Order(models.Model):
id = models.IntegerField(primary_key=True)
name = models.CharField(max_length=30)
total = models.FloatField()
email = models.CharField(max_length=30) | [
"goodgame1945@gmail.com"
] | goodgame1945@gmail.com |
76fc4694ede4b1df5bb7c95f6c8fc6bbfd897ea6 | 053c1ae06f1f5cbbdbc72cce94d4af2e1e1391e3 | /study_sklearn/groupKFold_test.py | 22fad60a299118b456099b6580e069665a64146c | [] | no_license | QilongPan/machine_learning | 2995ea34d759ad8e710b397ae1dead4962a8013e | 0b3566010ce8b5a229592231accc3921f55b0ed4 | refs/heads/master | 2020-04-07T04:26:13.982019 | 2019-08-05T09:21:40 | 2019-08-05T09:21:40 | 158,055,755 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 578 | py | # -*- coding: utf-8 -*-
# @Date : 2019-05-17 14:23:30
# @Author : QilongPan
# @Email : 3102377627@qq.com
# 相同的组不会出现在两个不同的折叠中(不同组的数量必须至少等于折叠的数量)
# group定义了每天数据的分组id
from sklearn.model_selection import GroupKFold
import numpy as np
X = np.array([[1, 2], [3, 4], [5, 6], [7, 8]])
y = np.array([1, 2, 3, 4])
groups... | [
"3102377627@qq.com"
] | 3102377627@qq.com |
5bfee7606764826ff036404a7b07620623e24a96 | 88745dafec989d39726ca2e4d7f6cfb20bb60f5d | /tests/unit_tests/modules/s3/s3gis/BingLayer.py | c25ecc6c14edf56ab2f86ebbe914dc43f8fc5a3b | [
"MIT",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | sungkomp/SAMBRO | f1ced7c9d198ccfe30aaa1bf883c2f8a7478fffb | 4618d785d03424d122206d88d9ebfb6971486e2c | refs/heads/master | 2020-05-30T08:41:26.855362 | 2019-10-15T02:48:47 | 2019-10-15T02:48:47 | 69,448,194 | 1 | 0 | NOASSERTION | 2019-10-15T04:25:13 | 2016-09-28T09:31:35 | Python | UTF-8 | Python | false | false | 784 | py |
s3gis_tests = load_module("tests.unit_tests.modules.s3.s3gis")
def test_BingLayer():
s3gis_tests.layer_test(
db,
db.gis_layer_bing,
dict(
name = "Test Bing Layer",
description = "Test Bing layer",
enabled = True,
created_on = datetime.datetim... | [
"fran@aidiq.com"
] | fran@aidiq.com |
d5e5e491086979335728a5ce09637227e79fbd84 | 551b75f52d28c0b5c8944d808a361470e2602654 | /huaweicloud-sdk-rabbitmq/huaweicloudsdkrabbitmq/v2/model/show_background_task_request.py | 15f666a3a90534bc5325dbb4cc52bae5849ca114 | [
"Apache-2.0"
] | permissive | wuchen-huawei/huaweicloud-sdk-python-v3 | 9d6597ce8ab666a9a297b3d936aeb85c55cf5877 | 3683d703f4320edb2b8516f36f16d485cff08fc2 | refs/heads/master | 2023-05-08T21:32:31.920300 | 2021-05-26T08:54:18 | 2021-05-26T08:54:18 | 370,898,764 | 0 | 0 | NOASSERTION | 2021-05-26T03:50:07 | 2021-05-26T03:50:07 | null | UTF-8 | Python | false | false | 3,478 | py | # coding: utf-8
import pprint
import re
import six
class ShowBackgroundTaskRequest:
"""
Attributes:
openapi_types (dict): The key is attribute name
and the value is attribute type.
attribute_map (dict): The key is attribute name
and th... | [
"hwcloudsdk@huawei.com"
] | hwcloudsdk@huawei.com |
665b261c26c914af9be8d0cc6ca2991861d06d4a | 1d164438ac1ba7c88aeabb7c9ea39b58680ba79c | /django_postgres_matviews/management/commands/drop_matviews.py | da51ebd3f07c9398a3e198e8445d967b5dc87d2b | [
"Unlicense"
] | permissive | andrewp-as-is/django-postgres-matviews.py | fac3288f199f013a0421ae23f634ea7082020181 | ff7d76f885318e208b81be7f5dcaa71ff7fc4fb3 | refs/heads/master | 2023-01-20T18:38:58.232754 | 2020-12-03T20:46:40 | 2020-12-03T20:46:40 | 285,872,756 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 238 | py | from django.core.management.base import BaseCommand
from django.db import connection
from django_postgres_matviews.utils import drop_matviews
class Command(BaseCommand):
def handle(self, *args, **options):
drop_matviews()
| [
"russianidiot.github@gmail.com"
] | russianidiot.github@gmail.com |
a1c37246801a248634486d255bc85009de21e17f | b42e2016972825d28b2abcfe001d879bfd56b453 | /sitka_highs.py | c3278286424cdd79abf125b152a39a24a2d95260 | [] | no_license | pk-tec/DataVisualization | 28b87cfcbeb419621df3f4915a6be0f944406bd9 | 79d46a95143e35f5f8eb2152821e5997afbe8646 | refs/heads/main | 2023-03-28T00:50:51.931945 | 2021-03-30T01:08:45 | 2021-03-30T01:08:45 | 352,829,571 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,218 | py | import csv
from datetime import datetime
import matplotlib.pyplot as plt
filename = 'data/death_valley_2018_simple.csv'
with open(filename) as f:
reader = csv.reader(f)
header_row = next(reader)
# Get dates, and high and low temperature from this file.
dates, highs, lows = [], [], []
for row in rea... | [
"Pritam8987@gmail.com"
] | Pritam8987@gmail.com |
f41f0f5811f7145e058831e8ebfffdbe5fba97f0 | 37951ec6d5ffa26c26023a832c7d4ccb304d476f | /docs/source/conf.py | 1873daa9ef8998384a81e93f6813747710767133 | [] | no_license | abg/misc | f380699ce7f402c8d12bf0137f1d2213d018049b | db4544d7ab60d0934fbf1c60fa95059885676144 | refs/heads/master | 2020-12-24T17:17:35.882153 | 2011-01-22T08:26:17 | 2011-01-22T08:26:17 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 7,100 | py | # -*- coding: utf-8 -*-
#
# config4py documentation build configuration file, created by
# sphinx-quickstart on Wed Jan 19 10:06:36 2011.
#
# This file is execfile()d with the current directory set to its containing dir.
#
# Note that not all possible configuration values are present in this
# autogenerated file.
#
# A... | [
"muzazzi@gmail.com"
] | muzazzi@gmail.com |
b548d643ad30ee98db0062765d29564780e59505 | c9fd02550474644c4e35ffdfd81243f0066bcfbf | /Django/Random_Word/main/apps/random_word/views.py | 98cff6c9a6a3f17d6fcd642393dc2bceafcb1f12 | [] | no_license | Evermark/Python_Assignments | 7f5dfd82ddbd4171b821dabc1af82d6471cd79da | a93f7308b6ffd827350f9e3467df04026141074c | refs/heads/master | 2021-04-30T05:52:33.022302 | 2018-03-26T05:27:59 | 2018-03-26T05:27:59 | 116,930,734 | 0 | 1 | null | 2018-01-20T21:19:35 | 2018-01-10T08:34:33 | Python | UTF-8 | Python | false | false | 530 | py | from django.shortcuts import render, HttpResponse, redirect
from django.utils.crypto import get_random_string
def index(request):
if 'attempt' not in request.session:
request.session['attempt'] = 1
else:
request.session['attempt'] += 1
random = {'word' : get_random_string(length=12)}
re... | [
"mmathisen@gmail.com"
] | mmathisen@gmail.com |
81753007576d20c13b025493673bf3b5a2da906c | 9cca8e13ea7ff9142ea8b1ebb46ed5a3f7dc118f | /exam1.py | 5d62ffddfab2665bbd50ea9017395816d9de491c | [
"MIT"
] | permissive | elijahanderson/Python-Practice | 594924b6760413837aed405b4db51f97171a26ae | 881f3dad9d6050d4f3c268172187e6a17ed39426 | refs/heads/master | 2021-01-21T21:57:20.594099 | 2018-02-06T16:11:40 | 2018-02-06T16:11:40 | 95,133,793 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,280 | py | # exam.py - A program to test your programming for exam #1.
# This program is basically a set of functions that do various
# separate things, not one big program.
# The comments with TODO in them below are problems you need to
# finish.
# You might want to go to the bottom to look at the program code
# to see what th... | [
"elijahanderson_2019@depauw.edu"
] | elijahanderson_2019@depauw.edu |
127e521fc174bcb018737f195d7d9d13e672b726 | 9b4fe9c2693abc6ecc614088665cbf855971deaf | /78.subsets.py | e02e0a2c09554ecf70645818837f819efcf53e44 | [
"MIT"
] | permissive | windard/leeeeee | e795be2b9dcabfc9f32fe25794878e591a6fb2c8 | 0dd67edca4e0b0323cb5a7239f02ea46383cd15a | refs/heads/master | 2022-08-12T19:51:26.748317 | 2022-08-07T16:01:30 | 2022-08-07T16:01:30 | 222,122,359 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,215 | py | # coding=utf-8
#
# @lc app=leetcode id=78 lang=python
#
# [78] Subsets
#
# https://leetcode.com/problems/subsets/description/
#
# algorithms
# Medium (51.03%)
# Likes: 2192
# Dislikes: 54
# Total Accepted: 396.6K
# Total Submissions: 731K
# Testcase Example: '[1,2,3]'
#
# Given a set of distinct integers, nums, ... | [
"windard@qq.com"
] | windard@qq.com |
fca72c404fcf1bdb72672e53cdb4cff8efe5a4ff | 63b4b47117e42ac3e2548a5ce25f27b63bd348c9 | /scripts/bootstrap.py | 8cf7c9b7975c8bffa579fec903e8498688c402bb | [] | no_license | jgraettinger/sentiment | 0b11cd92e7d1ea4fbe70e4a1352a95a85df50b01 | 765a2fbaefa4d9a0a3a1d27d40b3623124dccc53 | refs/heads/master | 2021-01-18T01:44:00.155862 | 2010-09-23T09:05:37 | 2010-09-23T09:05:37 | 615,658 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,385 | py |
import getty
import vinz
import vinz.featurization.basic_featurize
import vinz.normalization.basic_normalize
import vinz.normalization.twitter_normalize
import vinz.estimation
import vinz.feature_transform
def bootstrap():
inj = getty.Injector()
inj.bind(vinz.featurization.InternTable,
to = vinz.fe... | [
"johnny531@gmail.com"
] | johnny531@gmail.com |
5326eeda4f0270ef381bd89bf8bfdc44a76caab8 | 0baf7c1d3860c8f39fdde49eafb4f5033cd34b2f | /06/hw0601.py | 1fc54f39a8c3a794bc95c2b7fbf231cf2ecc2467 | [] | no_license | dchmerenko/courseraPy | 08290a1e1cef573be9a6ca2c2929cac34e493e43 | 6be764eb40076c386370cf19d09d5a306d4f161c | refs/heads/master | 2021-01-01T20:43:56.793375 | 2017-08-03T16:15:17 | 2017-08-03T16:15:17 | 98,897,966 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 524 | py | # list merging
def merge(a, b):
c = list()
i = j = 0
while i < len(a) and j < len(b):
if a[i] < b[j]:
c.append(a[i])
i += 1
else:
c.append(b[j])
j += 1
if i < len(a):
while i < len(a):
c.append(a[i])
i +=... | [
"dchmerenko@gmail.com"
] | dchmerenko@gmail.com |
f9c7bea1d2f71bd02daaa0048f7368e29612f381 | 41a0045f0cff201153bc352102f654978d497925 | /trotro.py | 726b5090645f072b3e0af2ce5b52af08c1397833 | [] | no_license | Tejas-Naik/mobile-responsive | a8a3fde3b426130abef2cb30bfb33584a49246f0 | c10b2521c1e80e0258148b54d1cea4bcb4508983 | refs/heads/master | 2023-05-06T05:35:35.113264 | 2021-06-02T06:36:09 | 2021-06-02T06:36:09 | 373,177,748 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 21 | py | from app import app
| [
"RNTejas2005@gmail.com"
] | RNTejas2005@gmail.com |
246e17ff0c48c787a0a932071216fd5a5e87c321 | 770e3f4fcb3d2f96ea8cc36bfa47625778c40c71 | /unit_tests/test_provides.py | 154f566f2b1cbe63d5f075866c676d2654f56ed0 | [] | no_license | openstack-charmers/charm-interface-pacemaker-remote | 8d12a0594bc580f74c9a591b44429320912c8cbf | f1297f72a5c6f8dc4f89461850a7d8ebaa01cf04 | refs/heads/master | 2020-04-30T03:33:29.086571 | 2019-03-20T07:31:55 | 2019-03-20T07:31:55 | 176,589,246 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,454 | py | import unittest
import mock
with mock.patch('charmhelpers.core.hookenv.metadata') as _meta:
_meta.return_Value = 'ss'
import provides
_hook_args = {}
TO_PATCH = [
]
def mock_hook(*args, **kwargs):
def inner(f):
# remember what we were passed. Note that we can't actually determine
# ... | [
"liam.young@canonical.com"
] | liam.young@canonical.com |
83c5651a93a1bee73e720ee98900ca34bc8bc05b | e7bca56e03831ee604a3765867f235a27e261c85 | /src/utils/finance_metrics.py | f9d11ffbde7a6f5f2cec28be9b77d78e7de5333c | [
"MIT"
] | permissive | WatweA/RNNforPairsTrading | 8bac598424891620e1bf0b31b7400b96d6f90018 | 44379de85712a411c501524473c5569964f1c4b6 | refs/heads/main | 2023-04-10T20:52:22.884222 | 2021-04-26T21:38:17 | 2021-04-26T21:38:17 | 352,525,153 | 1 | 0 | null | 2021-03-30T16:56:34 | 2021-03-29T05:21:40 | Jupyter Notebook | UTF-8 | Python | false | false | 3,561 | py | from typing import Tuple, Dict, Optional
import numpy as np
import pandas as pd
TRADING_DAYS = 252
def to_signal(predicted_returns: np.ndarray,
signal_dict: Dict[Tuple[Optional[float], Optional[float]], float] = None
) -> np.ndarray:
"""
Generate a list of signals given a list o... | [
"45186715+WatweA@users.noreply.github.com"
] | 45186715+WatweA@users.noreply.github.com |
329444be3e093f08598e5a613a554721a6d6e9b1 | f99e42d181267f35ffaa7a47106d188bbe9f1094 | /codekata/91.py | 086d614fa3eba2704fdf10a7a701cdfee2d485c5 | [] | no_license | DEEPTHA26/guvi | 92d0992548a8ccbffc5e2ba8b702184cc2c42929 | 84816f470c08ede86a87b010cfd5ef5573d045f8 | refs/heads/master | 2020-06-15T20:29:44.864601 | 2019-06-30T15:18:17 | 2019-06-30T15:18:17 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 76 | py | z,x,c=map(int,input().split())
v=z*x*c
t=(2*z*x)+(2*x*c)+(2*c*z)
print(t,v)
| [
"noreply@github.com"
] | noreply@github.com |
4faf6fbf0104e8ad8a9246bb96f76397be73fdd3 | e3e2f29401d9703c7dc8fd87fb04913351135d54 | /codes/delete_repeat_classlayout.py | 7abfbe317472f11dfe4d8ec1dfa3a4d94c468870 | [] | no_license | cooplus-vscape/vscape_analyzer | 2d934442c9596dd8fd93b22fa305a52cae25db5c | c4632577d32b3b73d38db4a7f2056dc1c66cd259 | refs/heads/main | 2023-02-23T19:55:26.460592 | 2021-02-03T09:31:53 | 2021-02-03T09:31:53 | 325,956,722 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,431 | py | #coding:utf-8
from globalconfig import *
from DBatom import *
from threading import Thread
import threading
import time
def processitems(content, rangenum, rangenumend, tid):
for cc in range(rangenum, rangenumend):
try:
try:
print content[cc]
except:
... | [
"vcakesxyz@outlook.com"
] | vcakesxyz@outlook.com |
3050537d9919a0962079d4d4af28cf9ef9a613a5 | e4beaea96286efe42dc53c34a1521950c8f3b14c | /ordersapp/migrations/0001_initial.py | 9286cccef052165142e18b1ef514ffb88432f7ff | [] | no_license | MrWindmark/mercuryShop | 7f71d430d4dc148e4530723265b265c44abde457 | 6de5230bd872279c7cacfa6920a8e06a1e4189c1 | refs/heads/master | 2023-04-12T23:16:11.752814 | 2021-04-14T18:59:25 | 2021-04-14T18:59:25 | 340,908,915 | 0 | 0 | null | 2021-05-14T12:08:01 | 2021-02-21T13:32:39 | CSS | UTF-8 | Python | false | false | 2,148 | py | # Generated by Django 2.2.18 on 2021-04-12 20:19
from django.conf import settings
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
initial = True
dependencies = [
migrations.swappable_dependency(settings.AUTH_USER_MODEL),
('mai... | [
"agentstorm@ya.ru"
] | agentstorm@ya.ru |
dcb41c3975358829574421abff12c1fd1b3ed047 | d128dc06cff15a60d9d431c03516766d19a72cdc | /101 Tasks/Task 081.py | 0b4e6320771ce66c2b6a53bc0c96c3c0ebbae30c | [] | no_license | NguyenVanDuc2022/Self-study | eb66f06a74dc4900a91ec73705236b2b55e673d2 | a42c5c251ef9339ba33d8944583b239a5f2cddfa | refs/heads/main | 2023-08-28T02:12:29.440153 | 2021-10-06T03:03:25 | 2021-10-06T03:03:25 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 503 | py | """
Question 081 - Level 03
Please write a program to generate all sentences where subject is in ["I", "You"] and the object is in ["Hockey",
"Football"].
Hints: Use list[index] notation to get a element from a list.
--- Nguyen Van Duc ---
"""
subjects = ["I", "You"]
verbs = ["Hockey", "Football"]
for i in range(len(su... | [
"nvduc.ds@hotmail.com"
] | nvduc.ds@hotmail.com |
b332a21d8410d1f50d009e15238f801aced23ad4 | f8565c4d6a96dd91c2a6cd247f180f7c7d1054ff | /changing_internalLines.py | 7f7df0d0c1dc8e9afd73acd5abe3b5562bcd1bec | [] | no_license | AhmedAlhallag/Python_SomeJunk | d625e243c7bb7e78d4ca1d2547f9d4c3e7fb59ee | e45b2e8af5326b7d627edc87345b1a7f5d4b9268 | refs/heads/master | 2022-11-15T07:06:19.064093 | 2020-07-13T17:01:57 | 2020-07-13T17:01:57 | 279,363,318 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 383 | py | # with open("user_output.txt","r") as file:
fnName = "Hamada"
i = 1
with open("pyt1_edited.py", "w") as edited:
for line in open("pyt1.py", "r").readlines():
comIDX = line.find("#")
if comIDX >= 0:
# we found a comment; remove it
print(f"Found a Comment:x{i}")
... | [
"alhallag@gmail.com"
] | alhallag@gmail.com |
b4edfc32c00e21b7065ff29a25b0321737f977df | aa8098d44e92a1b5aeb9676ca8b15b4c701b297f | /exceptions.py | 9dcddae19e95c786344328998f5dcbce03cbf92f | [
"MIT"
] | permissive | rpierlot/LaPosteClient | 7b331c4a7b3c0d64425b46edf7a5782af28ab2f1 | 70eba4f42fec795b883c26f516a40aa0fa116de1 | refs/heads/master | 2021-08-31T18:23:47.487722 | 2017-12-21T13:29:40 | 2017-12-22T10:33:07 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 132 | py | class TrackShipmentError(Exception):
def __init__(self, code, message):
self.code = code
self.message = message
| [
"rpierlot-ext@deezer.com"
] | rpierlot-ext@deezer.com |
5b7ef9e36ad051f8020055d5ddecfbee31905843 | 63289b50fd61f1365476dbee9daf5f64f0632d0e | /FoodApp/migrations/0001_initial.py | 7ee83bcf0b01a0c365bcb3b0303351d3f7b686a9 | [] | no_license | pradeepvarma22/Food_Review | 98b97fba71fcf78fb2335046a312299627b96d65 | 76c96580716398746e1bf78cb5613795a03e8abb | refs/heads/master | 2023-03-01T01:26:48.286331 | 2021-02-06T19:29:07 | 2021-02-06T19:29:07 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,942 | py | # Generated by Django 3.0.4 on 2021-02-06 08:39
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.AUT... | [
"pradeepvarma107@gmail.com"
] | pradeepvarma107@gmail.com |
cc73f71771bfafd0ba5c10ac52a206b706afb2f9 | 8698ba18025a29a1bc491769b7c0299497c9cc7f | /scrapy_templates/19-design/gooddesignaward/gooddesignaward/middlewares.py | 086971947280f42d53f7ef1c32a65740184ecbbc | [] | no_license | QuincyLi/happy-spiders | 33ea11d3ac570f1c3723de0fb4f58ef6e6fe5b9a | df30bc43f2b99ff70c380bbadeec4bcc285d481b | refs/heads/master | 2020-04-27T11:12:46.608104 | 2019-01-02T09:39:21 | 2019-01-02T09:39:21 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,615 | py | # -*- coding: utf-8 -*-
# Define here the models for your spider middleware
#
# See documentation in:
# https://doc.scrapy.org/en/latest/topics/spider-middleware.html
from scrapy import signals
class GooddesignawardSpiderMiddleware(object):
# Not all methods need to be defined. If a method is not defined,
#... | [
"caiconghuai@gmail.com"
] | caiconghuai@gmail.com |
5cfdde968cee2e114cd56c641bad909c4f4adb5f | ebc5c949aa4e0e87afb0cd1daf2780e5306a3e02 | /KafkaProducer.py | 1ac7a66a166cf47b7278627d9b56c620c35c2139 | [] | no_license | ecvasile/python-big-data | e1e53c91750ef46bf5430715c756a48a43cfa482 | 6543dd0713212acb2ab76dc965640a004c718cc6 | refs/heads/master | 2023-02-15T22:34:00.882930 | 2021-01-07T16:03:04 | 2021-01-07T16:03:04 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 857 | py | from TrafficSimulator import TrafficGenerator
from kafka import KafkaProducer
# create decoder object from pcap file
pkt_obj = enumerate(TrafficGenerator('/home/cloudera-master/2018-04-05_09-36-26_Default_SPW-4.pcap'))
# create Kafka producer
producer = KafkaProducer(bootstrap_servers='cldmaster.local:9092', # batch... | [
"eduardvasile@JackSparrows.lan"
] | eduardvasile@JackSparrows.lan |
894b732050372338c14fa012e7f9b16f6e1eadbf | 11812a0cc7b818292e601ecdd4aa4c4e03d131c5 | /02_多任务/3_协程/hm_15_使用协程完成多任务终极.py | ed3306cb3d774702e938b02a0d1ebc14291efd90 | [] | no_license | SunshineFaxixi/Python_Learning | f1e55adcfa898489cc9146ccfb220f0b48a31a22 | ab3ca44d013311b6de02124091acc4c36a83c4d9 | refs/heads/master | 2021-08-16T05:47:29.963118 | 2021-01-04T13:48:30 | 2021-01-04T13:48:30 | 238,857,341 | 1 | 0 | null | 2020-03-03T13:53:08 | 2020-02-07T06:21:46 | HTML | UTF-8 | Python | false | false | 409 | py | import gevent
import time
import random
from gevent import monkey
def coroutine_work(coroutine_name):
for i in range(10):
print(coroutine_name, i)
time.sleep(random.random())
def main():
monkey.patch_all() # 打补丁
gevent.joinall([
gevent.spawn(coroutine_work, "work1"),
ge... | [
"xxhan2018@163.com"
] | xxhan2018@163.com |
ce745bc83fd08998d867c0ec245ba218d19c4298 | 6e6ef650d0fd5e5006dab4d755bb4ac77de43072 | /openreview/create_basic_openreview_dataset.py | aba3de742d65cd752a0945164be8a4122fb474c7 | [] | no_license | raymondroc/an-open-review-of-openreview | b2f2a4dcd7badbbd55ab535f4f319ae8d888afa6 | 7d94a42096759b36739090f9801dc2a09dec0380 | refs/heads/main | 2023-01-10T15:22:06.851193 | 2020-11-13T18:39:30 | 2020-11-13T18:39:30 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,821 | py | from __future__ import print_function
import openreview
import pandas as pd
import pickle
def parse_data():
"""Clean and parse raw data"""
lines = []
header = ("conference,year,paper,authors,"
"emails,ratings,confidences,decisions,"
"cmt_before_review,"
"cmt_b... | [
"kganapathy23@gmail.com"
] | kganapathy23@gmail.com |
db6dac8b0b6013de4ea57a1b57fa20f6b8d368f8 | 0ddcfcbfc3faa81c79e320c34c35a972dab86498 | /puzzles/add_and_search_word.py | 13c99ec33dbc7abde7199d0dc2552efa2636dc28 | [] | no_license | IvanWoo/coding-interview-questions | 3311da45895ac4f3c394b22530079c79a9215a1c | 1312305b199b65a11804a000432ebe28d1fba87e | refs/heads/master | 2023-08-09T19:46:28.278111 | 2023-06-21T01:47:07 | 2023-06-21T01:47:07 | 135,307,912 | 0 | 0 | null | 2023-07-20T12:14:38 | 2018-05-29T14:24:43 | Python | UTF-8 | Python | false | false | 2,277 | py | # https://leetcode.com/problems/add-and-search-word-data-structure-design/
"""
Design a data structure that supports the following two operations:
void addWord(word)
bool search(word)
search(word) can search a literal word or a regular expression string containing only letters a-z or .. A . means it can represent any ... | [
"tyivanwu@gmail.com"
] | tyivanwu@gmail.com |
a9dd8620e61118abf0707b5fb0f71735b60984ba | b45d66c2c009d74b4925f07d0d9e779c99ffbf28 | /gp/business_logic/business_objects/monopoly.py | f40bcc4ebbf90d3908c5f5b1da8a279f7018e9f4 | [] | no_license | erezrubinstein/aa | d96c0e39762fe7aaeeadebbd51c80b5e58576565 | a3f59ba59519183257ed9a731e8a1516a4c54b48 | refs/heads/master | 2021-03-12T23:44:56.319721 | 2016-09-18T23:01:17 | 2016-09-18T23:01:17 | 22,665,501 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 826 | py | import datetime
__author__ = 'erezrubinstein'
class Monopoly(object):
def __init__(self, store_id, monopoly_type_id, trade_area_id, start_date, end_date):
self.store_id = store_id
self.monopoly_type_id = monopoly_type_id
self.trade_area_id = trade_area_id
self.start_date = start_da... | [
"erezrubinstein@hotmail.com"
] | erezrubinstein@hotmail.com |
581e1c1d60197ef7fb2dec645612f33e5e7cfc99 | 930b54f510c25ba970bc17684006df28ee627c0f | /diversos/ExampleGenerateLog.py | 0e24bb5483fe04392d95bcb61a81ba1833184ba1 | [] | no_license | fgirardi/SourcePython | 33e3cfcaa328b7943855dabbe219730f338b1b7a | 43538d95c00a67e11154598641f71409f71a856b | refs/heads/master | 2020-04-10T03:58:15.331458 | 2019-08-24T22:04:30 | 2019-08-24T22:04:30 | 124,260,978 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 245 | py | import logging
import time
logging.basicConfig(level = logging.INFO, filename = time.strftime("my-%Y-%m-%d.log"))
logging.debug("debug")
logging.info("info")
logging.warning("warning")
logging.error("error")
logging.critical("critical")
| [
"girardi.fabiano@gmail.com"
] | girardi.fabiano@gmail.com |
26241c413c173bca992b68e16ce9ce180b940a87 | e1fcff197b13428fe2e17846d6eac60952b8dcc7 | /src/featurization/featurize.py | 805c901e15d64f7f53f62ad7f9ff4d6e7fca1f40 | [
"MIT"
] | permissive | bejerano-lab/X-CAP | 254ffec90478b21e32bc1e1c3511ed818ccd117f | 4ceeea89b00aa72024c30ae52fc369f360e26390 | refs/heads/main | 2023-04-07T11:43:59.532265 | 2022-06-22T23:52:39 | 2022-06-22T23:52:39 | 499,202,286 | 5 | 0 | null | null | null | null | UTF-8 | Python | false | false | 7,313 | py | import argparse
import os
import sys
from tqdm import tqdm
import conservation
import gene_essentiality
import locations
import metadata
import omim
import read_through
import reinitiation
import rvis
import splicing
import transcript
import transcript_class
import utils
def init(reference_data, annovar_dir):
gen... | [
"rrastogi@stanford.edu"
] | rrastogi@stanford.edu |
cc9b53516891ad24d377268578b0a33545678476 | cc13c060d7d3ed555d68073c770fc0aca3c67f82 | /project-euler/p120.py | 22d9eafb1fc0366c71a382683916e5589a729e70 | [] | no_license | Devang-25/acm-icpc | 8bd29cc90119a6269ccd61729d8e67a8b642b131 | a036bdbba60f8b363ee2d6cb9814e82e5536e02e | refs/heads/master | 2022-04-01T02:52:51.367994 | 2020-01-24T11:46:01 | 2020-01-24T11:46:01 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 507 | py | # a + 1
# a^2 + 2a + 1 = 2a + 1
# 2a^2 + 2a = 3a + 1
# ...
# a - 1
# a^2 - 2a + 1 = -2a + 1
# (-2a + 1) (a - 1) = 3a - 1
# (3a - 1)(a - 1) = -4a + 1
def solve(a):
result = 0
for n in range(1, 2 * a):
r = n * a + 1
if n % 2 == 0:
r -= n * a - 1
else:
r += n * a -... | [
"ftiasch0@gmail.com"
] | ftiasch0@gmail.com |
1c930e410b98d1fae3b2475161e5d1d4f296a1a8 | 3a499c01c976c0d985d9921c64a9ed2bdd8ae457 | /etc/hello.py | 3bea3975c2ade2b3b2307676b6718206ffb3b827 | [] | no_license | kkmjj/sparta_study | 1430ae39d4f38bc4771f0e4b974780ff9037212a | b4dc630d737f90905e45ed34e0949efc69c526cb | refs/heads/master | 2020-09-21T09:04:49.722474 | 2020-02-07T03:49:05 | 2020-02-07T03:49:05 | 224,749,582 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,807 | py | name = ' bob' # 자료형을 따로 안만들어도 됨
num = 12
print (name, num)
# 리스트
a_list = []
a_list.append(1)
a_list.append([1, 2])
print(a_list)
# dic
a_dict = {}
# 함수
def sum_all(a, b, c):
return a + b + c
#퀴즈
def name(name):
if(name=="김민준"):
print (name)
name("김민준")
name("김준")
#반복문
for_list =[1,2,3,4... | [
"mjkim1201@naver.com"
] | mjkim1201@naver.com |
fa66f392d5e1dd703fe2551c4d35c4dcbf3660a8 | 275c84881b0eeb06df1ac44fb84c64991d8b41e4 | /env/bin/alembic | ac3b4718fbc778bfe2ad264ccea3949b71d41983 | [] | no_license | natagonz/mambang | ddd37de0b15717a9a3292e381fa5cb482d3fa5ed | cabab22dfaf04d31fb6b6bebbaaa92cffa9b0e0b | refs/heads/master | 2020-03-11T00:36:11.013564 | 2018-04-16T01:36:07 | 2018-04-16T01:36:07 | 129,667,961 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 234 | #!/var/www/html/ems/env/bin/python2
# -*- coding: utf-8 -*-
import re
import sys
from alembic.config import main
if __name__ == '__main__':
sys.argv[0] = re.sub(r'(-script\.pyw?|\.exe)?$', '', sys.argv[0])
sys.exit(main())
| [
"root@dev.mambangsehat.com"
] | root@dev.mambangsehat.com | |
91abe388075942a28f543fc7085eb9c91a707e33 | c1aa719c6d0f66c0530e06e478c13f3c1fbcc5de | /Fabrizio/RNN/src_RNN/allprocess/DataSet.py | 3b6004fe9a48ad53cc1845928b82347f1b89738b | [] | no_license | deepbrain2016/websiteclassificator | 5d3c2c77c39a778aa79f483b0bc2eae6618470a2 | dde350f28d6df3fe267ebde7a8658a9dfb0b7e7c | refs/heads/master | 2021-01-12T09:50:45.532510 | 2016-12-15T16:53:18 | 2016-12-15T16:53:18 | 76,276,524 | 0 | 0 | null | 2016-12-29T08:39:40 | 2016-12-12T16:52:42 | Python | UTF-8 | Python | false | false | 4,057 | py | '''
Created on 03/ott/2016
@author: fabrizio
'''
from Parameters import *
from keras.datasets import imdb
from keras.preprocessing import sequence
import pickle,numpy,sys
class DataSet(object):
'''
classdocs
'''
def load_data_contex(self,nomefile):
reader = pickle.load(open(nomef... | [
"defausti@istat.it"
] | defausti@istat.it |
51590b835aa43662e38c926541bf933823e59792 | c664cbe6cd433ec5f63272b1ebecb9ae81dfe10a | /python/union-find/percolation.py | 1ed429f3c47c7193189a351d13777a6910cbd3c7 | [] | no_license | paramsingh/algs4 | 9c0e84375d0e87f0b6e92aee9a000b9e4fcd33bb | 2e2db8f9b431bb52023a1065c4fdcef9ffdc7b2a | refs/heads/master | 2021-01-16T21:37:57.951848 | 2015-07-24T14:05:25 | 2015-07-24T14:09:30 | 37,737,568 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,132 | py | from weightedQuickUnionUF import WeightedQuickUnionUF
class Percolation:
def __init__(self, n):
if n <= 0:
raise ValueError("n should be greater than 0")
self._grid = [[False for _ in range(n)] for _ in range(n)]
self._size = n
# a quick find data structure containing ... | [
"paramsingh258@gmail.com"
] | paramsingh258@gmail.com |
1dc0dea861966e90029e565da5df0e5edce1c8de | 73e8ce6e3b1b938359928f9c9e1620e1ded0f8de | /pomtracker/extensions.py | 3e7310b5c5d3094dbef354d7eef0b25ad26b90bc | [] | no_license | haydenhw/pomtracker-flask | 78db7de671453ac3a4a2043b0bbb7914f1d4e34e | bb460a09befaf4bd17129b5d0e1b4766d415869d | refs/heads/master | 2023-04-23T21:57:04.172481 | 2021-04-02T15:44:29 | 2021-04-02T15:44:29 | 284,805,426 | 0 | 0 | null | 2021-05-06T20:25:59 | 2020-08-03T20:55:37 | Python | UTF-8 | Python | false | false | 878 | py | from flask_sqlalchemy import SQLAlchemy
db = SQLAlchemy()
class CrudMixin:
@classmethod
def find_by_id(cls, id_):
return cls.query.filter_by(id=id_).first()
@classmethod
def find_by_user_id(cls, user_id):
return cls.query.filter_by(user_id=user_id).all()
@classmethod
def cre... | [
"hayden321@gmail.com"
] | hayden321@gmail.com |
fe1cd37ddd5460332b2a2248effe4f29cf9f8f34 | 0f94eef14ffe0e9502e20f20d0e4c74045e46bec | /views/match.py | ffa81cd89a9f70fd063f6e0ac5405ff2a6b565b8 | [] | no_license | Ikeaven/P4_konrath_kevin | 63d5c229f39f64fe6d60ed0a40c63db7c153229c | b65637e3f3dcb9ad88df08902df48cbebc0cf75e | refs/heads/master | 2023-06-17T02:50:44.278125 | 2021-07-02T13:38:33 | 2021-07-02T13:38:33 | 368,557,801 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,000 | py | """ Match View Module """
import pandas as pd
from .utilities import UtilitiesView
class MatchView:
def display_match(self, match):
"""Print all match informations in a pandas DataFrame
Args:
match (obj): Match instance
"""
UtilitiesView().line_separator()
pr... | [
"36306272+Ikeaven@users.noreply.github.com"
] | 36306272+Ikeaven@users.noreply.github.com |
be841d0c140f1313cdf1a56717dd41a56a9726d5 | 9e68b186856d0cab2513d2d3ca1b383847e5aa11 | /virtual/bin/django-admin.py | 364ad7a2af5440f2efb00decd6b9659835112c31 | [
"MIT"
] | permissive | Yvonne-Ouma/Neighborhood | 9af5a8a2e802ec1cb987b672a012ec9a63a9cb06 | 9dcd5b65c1deb7a72b022e670790d8242d71bebe | refs/heads/master | 2020-04-01T20:58:23.361371 | 2018-10-23T14:34:06 | 2018-10-23T14:34:06 | 153,629,808 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 155 | py | #!/home/yyvonne/Desktop/nhood/virtual/bin/python
from django.core import management
if __name__ == "__main__":
management.execute_from_command_line()
| [
"yvonneouma98@gmail.com"
] | yvonneouma98@gmail.com |
664eb7abb9eb41389f8841ef285b03ec9b8d74a8 | 5aedbd845fb6341bc9737c534760b51e3baa868c | /rakutenMobileCheck.py | 28f155ba4fd1fecb9e523b04302f0cb23a99e763 | [] | no_license | suzusho515/- | 83ff9b3fb347f5ec17b330c5010919407360051a | 90272043d7611de1ed444e78672fd1bb83d5e41b | refs/heads/main | 2023-08-14T12:47:26.613656 | 2021-10-03T04:13:33 | 2021-10-03T04:13:33 | 412,972,730 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 8,115 | py | import json
from time import sleep
import datetime
import win32com.client
import threading
import eel
from common.driver import Driver
from common.logger import set_logger
DATE_FORMAT = '%Y-%m-%d-%H-%M-%S'
class Search:
"""
楽天モバイルで在庫を確認する処理
"""
def __init__(self, rakuten_url, s... | [
"noreply@github.com"
] | noreply@github.com |
34ce5c921dd9f1b778bc6419d7f3772aa88e3545 | 1193a870dae7233f284b90993d0563a3c6b8bc9d | /number.py | bd9b8255f5e01d3e79ffc32be6dc63c01b656d51 | [] | no_license | sabin-nepal/python | 6892363ffb27d7deb762cdff1b5059b3d2ca41b9 | bfcd8953b30d3bd73d13d092b0b7bfcaf349ccda | refs/heads/master | 2020-04-19T14:50:31.610515 | 2019-02-18T07:20:13 | 2019-02-18T07:20:13 | 168,255,792 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 361 | py | #enter 10 number
i=0
list = []
while i<10:
data= int(input('Enter the 10 numbers to be added in list'))
list.append(data)
i+=1
print(list)
##display only evenn number from a list
#if length is unknown
#size = len(list)
#print(size)
j = 0
new_list =[]
while j <10:
if list[j]%2==0:
new_list.ap... | [
"sabinnepal2k17@gmail.com"
] | sabinnepal2k17@gmail.com |
d07346a54a738ce1a6f148d25d58bdae099d3070 | e569fed15f699fd5ebd8333671274cf527fabbfb | /Dokkan_Battle/__init__.py | cd1ddc37759d09afd6de2cbff78872b68a36016f | [] | no_license | sagarp-patel/dokkan_set | 09812c142408d720f96ba4d3a75f28605144071c | fc470d2e55d511952719fcc02adf2247db6c3bb4 | refs/heads/master | 2020-05-23T08:20:47.091055 | 2019-05-14T19:36:39 | 2019-05-14T19:36:39 | 186,684,102 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 192 | py | #This file will run the application
from DokkanGUI import Window
import sys
from PyQt5 import QtWidgets,QtGui
app = QtWidgets.QApplication(sys.argv)
a_window = Window()
sys.exit(app.exec_())
| [
"sagarp@coyote.csusb.edu"
] | sagarp@coyote.csusb.edu |
2f8969c2405bef1307bb54cc0d04bd39b9cc79cd | 42a2226d9d2d6c6c8e43e07f08bef14ec83ebba6 | /noise_removal/fbs/ebl.py | c2ea756049ff11cb7bc570cb92f797996a25b893 | [] | no_license | sdimitro/minions | 0037adf7f49357562bd70d3c959b83189d338b0f | aab490e5eb9a8d248f880cb87b4c3d76e1179b8c | refs/heads/master | 2020-12-19T22:56:44.404452 | 2017-02-11T16:42:14 | 2017-02-11T16:42:14 | 30,044,992 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,072 | py |
from bs4 import BeautifulSoup
import sys
blacklist = [
"place:folder=BOOKMARKS_MENU&folder=UNFILED_BOOKMARKS&folder=TOOLBAR&queryType=1&sort=12&maxResults=10&excludeQueries=1",
"place:type=6&sort=14&maxResults=10",
"http://www.ubuntu.com/",
"http://wiki.ubuntu.com/",
"https://answers.launchpad.ne... | [
"serapheimd@gmail.com"
] | serapheimd@gmail.com |
655844d63f2a4178988a51339f7f95e0c8e8ab96 | 8855e6bc0aa97dbd0ef31ea3dcc3c51d46690891 | /testing/dag_communication.py | 1366a664412d5bc4654e3fb84e3fea12f4932344 | [] | no_license | brian-kalinowski-sonos/airflow-poc | 9be76adb7bb380495cca78f890104205ced16371 | c3e9549cefc1946ea416a78fa6ce63a287ab6ad6 | refs/heads/master | 2021-04-24T05:17:27.201740 | 2020-02-25T18:26:48 | 2020-02-25T18:26:48 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,206 | py | import unittest
from datetime import datetime
from airflow.models import DagBag,TaskInstance
class TestDagCommiunication(unittest.TestCase):
LOAD_SECOND_THRESHOLD = 2
def setUp(self):
self.dagbag = DagBag()
self.emails='airflow@example.com'
self.dag_id = 'hello_world_xcoms'
self... | [
"hardik.furia@sonos.com"
] | hardik.furia@sonos.com |
97fa0e9ee730c87d48b090216f91c70f823bd477 | 682638ecc330000ac70d92db66552546aaa72d2f | /eg.py | b2100faeadce53e2dc2275b1fa9765c09b758f44 | [] | no_license | inirpa/fashion-mnist-keras | 5f2e095af2f7a939d22bdccfe513ee5e8d29a8f2 | b31b522e23d52c2b4838bcf7a7bd773c6a12e37e | refs/heads/master | 2022-01-06T20:17:30.405540 | 2019-02-18T04:12:27 | 2019-02-18T04:12:27 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,771 | py | import tensorflow as tf
import numpy as np
import matplotlib.pyplot as plt
from tensorflow.examples.tutorials.mnist import input_data
#########download and extract data set
# Load the fashion-mnist pre-shuffled train data and test data
# data_train = pd.read_csv('data/fashion_train.csv')
# data_test = pd.read_csv(... | [
"nirparai@yahoo.com"
] | nirparai@yahoo.com |
854af7420db7d0f4e86a40c4f14decf87adb1b66 | 283f5fb9b6e17b51ec087cb21d0f8a2ed1441f61 | /src/datasets/k_fold_split.py | 53f7abe49a511767412477f8b27bc5478ee62f74 | [] | no_license | javierleung/bias-detection | 4af1667a637a3b0d0778ef2f1b5bd727018bde00 | 4563c805a6c77a0c3706a3abf8ac84e676edd26a | refs/heads/master | 2022-04-12T17:14:06.975381 | 2020-04-01T13:19:43 | 2020-04-01T13:19:43 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 337 | py | """
Utilitary functions for splitting a dataset into subsets.
"""
import torch
from torch.utils.data import Dataset, Subset
def k_fold_split(dataset, k):
"""Return k pairs of (train_subset, test_subset) representing k-fold splits"""
# TODO
# can be done by using sklearn, but only with already tensorized ... | [
"andrecruz97@gmail.com"
] | andrecruz97@gmail.com |
795985da57f6d924af7ddb13359a42bc964faca8 | 334d0a4652c44d0c313e11b6dcf8fb89829c6dbe | /checkov/terraform/checks/resource/aws/ImagebuilderImageRecipeEBSEncrypted.py | 754146fc760da36332b301b41159066dcef14f23 | [
"Apache-2.0"
] | permissive | schosterbarak/checkov | 4131e03b88ae91d82b2fa211f17e370a6f881157 | ea6d697de4de2083c8f6a7aa9ceceffd6b621b58 | refs/heads/master | 2022-05-22T18:12:40.994315 | 2022-04-28T07:44:05 | 2022-04-28T07:59:17 | 233,451,426 | 0 | 0 | Apache-2.0 | 2020-03-23T12:12:23 | 2020-01-12T20:07:15 | Python | UTF-8 | Python | false | false | 1,199 | py | from typing import Dict, List, Any
from checkov.terraform.checks.resource.base_resource_check import BaseResourceCheck
from checkov.common.models.enums import CheckCategories, CheckResult
class ImagebuilderImageRecipeEBSEncrypted(BaseResourceCheck):
def __init__(self):
name = "Ensure that Image Recipe E... | [
"noreply@github.com"
] | noreply@github.com |
c39e8230c431368878239dd20fc0eb3c5513713d | 65184b509bd974d0475f7b51c50b7b6701adf57e | /packageDaisy/euler.py | 00a7a1dd501c508f48c4277d09b60813ce668caa | [] | no_license | Locki22/Assignment5 | a043ea23e6c4a881d3b14da432f6d17a6b1802d5 | 0e250d7e9df4a41b7e3735869a6794529a57d754 | refs/heads/master | 2020-06-17T05:16:19.555629 | 2019-07-26T21:06:28 | 2019-07-26T21:06:28 | 195,809,348 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 536 | py | # -*- coding: utf-8 -*-
"""
Created on Mon Jul 15 14:59:51 2019
@author: nickh
"""
def euler(initial, tendency, h=1):
"""Integrate forward in time using Euler's method of numerical integration.
initial + h*tendency
Arguments
---------
initial : float
The initial state.
... | [
"noreply@github.com"
] | noreply@github.com |
9bdd0b54603f4bced8f4c82edb28d3dca4e88841 | 4a191e5aecd53c4cea28482a0179539eeb6cd74b | /blogproject/settings.py | a7f99cc15f936dff53808f9385c2c2992e57abbc | [] | no_license | jiangjingwei/blogproject | 631a2e8e2f72420cce45ddaf152174852376d831 | daf14e88092dc030a3ab0c295ee06fb6b2164372 | refs/heads/master | 2020-03-14T23:29:08.052253 | 2018-05-10T11:35:59 | 2018-05-10T11:35:59 | 131,846,149 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,596 | py | """
Django settings for blogproject project.
Generated by 'django-admin startproject' using Django 1.10.6.
For more information on this file, see
https://docs.djangoproject.com/en/1.10/topics/settings/
For the full list of settings and their values, see
https://docs.djangoproject.com/en/1.10/ref/settings/
"""
impor... | [
"270159429@qq.com"
] | 270159429@qq.com |
c5e0dd3c000acac9c2ceaabe7ab9ea965ce8179e | c07516e3cd8a0f94be5e77fc8ff83f4552c145d3 | /Day 5/password-generator.py | b31e56264fa320668901292a68c76fd7b610707e | [] | no_license | zaahidali/100-Days-of-Python | 3556c5db3a054be8b2a60cd780d59e1da1a23d6c | 1613c0e62430affeb4486d24f358e8bc120c5255 | refs/heads/master | 2023-07-13T05:24:04.593860 | 2021-08-24T17:13:16 | 2021-08-24T17:13:16 | 398,355,296 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,733 | py | #Password Generator Project
import random
letters = ['a', 'b', 'c', 'd', 'e', 'f', 'g', 'h', 'i', 'j', 'k', 'l', 'm', 'n', 'o', 'p', 'q', 'r', 's', 't', 'u', 'v', 'w', 'x', 'y', 'z', 'A', 'B', 'C', 'D', 'E', 'F', 'G', 'H', 'I', 'J', 'K', 'L', 'M', 'N', 'O', 'P', 'Q', 'R', 'S', 'T', 'U', 'V', 'W', 'X', 'Y', 'Z']
numbers... | [
"zahid.4317@gmail.com"
] | zahid.4317@gmail.com |
94e2a43014b05f292486e68815f57b103be12c22 | f161fa804dc78cb87c160368b24a7ff34bfcd20d | /clubCalendar/clubCalendar/settings.py | c7f75f5230485e48dc77e444618aa74174e0450d | [
"MIT"
] | permissive | AkshilVT/clubCalendar | 42bf47afce2b4fa2d5f50adf5f4a1cad5a74c211 | 3a9d51d3b3586e22d2f16f8b8797508d86300b0a | refs/heads/main | 2023-03-31T11:23:44.556582 | 2021-03-28T08:24:49 | 2021-03-28T08:24:49 | 351,843,313 | 1 | 0 | MIT | 2021-03-26T16:21:54 | 2021-03-26T16:21:54 | null | UTF-8 | Python | false | false | 3,267 | py | """
Django settings for clubCalendar project.
Generated by 'django-admin startproject' using Django 3.1.5.
For more information on this file, see
https://docs.djangoproject.com/en/3.1/topics/settings/
For the full list of settings and their values, see
https://docs.djangoproject.com/en/3.1/ref/settings/
"""
from pa... | [
"72624080+kavania2002@users.noreply.github.com"
] | 72624080+kavania2002@users.noreply.github.com |
0a3714c4393419c790f0b83b5e274f57f3d9effd | c140ad38b1463024e289ceb0d5d6d44a45c91724 | /test/test_sed.py | de9b9a31a4d19a6bce8f59f8af9aff375038c1e6 | [
"Apache-2.0"
] | permissive | NVIDIA/hpc-container-maker | 3a333526decbd18352ef8d1fb3bec0033be221e8 | 60fd2a51c171258a6b3f93c2523101cb7018ba1b | refs/heads/master | 2023-08-21T13:32:27.132476 | 2023-06-12T21:12:40 | 2023-06-12T21:12:40 | 126,385,168 | 419 | 88 | Apache-2.0 | 2023-09-11T18:33:26 | 2018-03-22T19:26:41 | Python | UTF-8 | Python | false | false | 1,626 | py | # Copyright (c) 2018, NVIDIA CORPORATION. All rights reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by appli... | [
"noreply@github.com"
] | noreply@github.com |
da0e360ef04be5b4a9aef897331aa98e4b9ce97c | 4d93c6999f1c938f12b7ff6fb779557e1a77479f | /chapter11/names.py | 37cab2bbcddd9ca3a3f64613ed94eea1aa8473fc | [] | no_license | MadhuV99/pywork | 5efd1aac74f2c88413bb90bbc9e0d0c250057e7c | 81ea17d8bed89ba57cdd35d2ceb0560f68a21cc8 | refs/heads/main | 2023-01-20T06:50:03.004849 | 2020-11-29T16:01:06 | 2020-11-29T16:01:06 | 312,609,445 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 422 | py | # names.py
from name_function import get_formatted_name
print("Enter 'q' at any time to quit.")
while True:
first = input("\nPlease give me a first name: ")
if first.strip().lower() == 'q':
break
last = input("Please give me a last name: ")
if last.strip().lower() == 'q':
break
for... | [
"madhuvasudevan@yahoo.com"
] | madhuvasudevan@yahoo.com |
8d9bb6926f1bd85ef8da53778229913d6ac4bc86 | a8160d8e37a227fd4d8b5fed6a1c4c1eef980612 | /dsnalgo/sort_pile_of_cards.py | cd0bcb2f01f2b3b82b47bf0086785a3c148482e7 | [] | no_license | gauravtatke/codetinkering | c5d5e1259592b681573c864bc9aabfbfd5d41cbd | fe3c39e0c1cb689dad5f5305a890f21a3edb2260 | refs/heads/master | 2022-09-29T02:39:50.601689 | 2022-09-21T16:02:51 | 2022-09-21T16:02:51 | 93,332,678 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,047 | py | #!/usr/bin/env python3
# We have N cards with each card numbered from 1 to N. All cards are randomly shuffled. We are allowed only operation moveCard(n) which moves the card with value n to the top of the pile. You are required to find out the minimum number of moveCard() operations required to sort the cards in incre... | [
"gauravtatke23@gmail.com"
] | gauravtatke23@gmail.com |
cd7fe7d9b83a05f42d321c44d90d1d46ece98287 | 3dfd14d5b19fffb361b55f55581547e1ee2ff3a3 | /adi/trash/browser/browser.py | 45f138f31c032ecfe60b78a7656656b9d3d5163e | [] | no_license | idgserpro/adi.trash | 5a13036bcfa0c495cc3571d8acc35ee883a3e7d4 | a9c6fb350b6cd4ce4e40646ac12598cc9dbf407f | refs/heads/master | 2021-01-01T18:51:38.472346 | 2017-07-26T18:17:09 | 2017-07-26T18:17:09 | 88,053,711 | 0 | 0 | null | 2017-04-12T13:16:18 | 2017-04-12T13:16:18 | null | UTF-8 | Python | false | false | 3,096 | py | from plone import api
from zope.i18nmessageid import MessageFactory
from Products.statusmessages.interfaces import IStatusMessage
from Products.Five.browser import BrowserView
from Products.Five.browser.pagetemplatefile import ViewPageTemplateFile
_ = MessageFactory('plone')
class Trash(BrowserView):
def _... | [
"contact@ida-ebkes.eu"
] | contact@ida-ebkes.eu |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.