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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
b064ad842e4abb4fafbe6d3de41b3cdcf4a0024a | 80930b162b7542d8c2dbfe9763f61a72898e7dca | /Ex1/Rand2.py | cf696a576406f680dc03a1bf2d8d45ae2fd37735 | [] | no_license | Sajedeh-darroudi/into-python | 66636e5a57d12d9ff28663916d643a3f8a1030bb | fb0ea70d9ab5feefdb91dd6d00b255faddfb3f91 | refs/heads/main | 2023-05-14T23:17:38.012728 | 2021-06-14T17:10:04 | 2021-06-14T17:10:04 | 347,717,303 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 277 | py | Numbre1 = int(input("Please enter a number greater than or equal to zero"))
Numbre2 = int(input("Please enter another number greater than or equal to zero"))
import random
def Rand2(Numbre1, Numbre2):
print(random.randint(Numbre1, Numbre2))
print(Rand2(Numbre1, Numbre2))
| [
"noreply@github.com"
] | Sajedeh-darroudi.noreply@github.com |
1568a018a87eb7fb715c30958272328cd5f4e86c | 9f2445e9a00cc34eebcf3d3f60124d0388dcb613 | /2019-12-25-Parametersearch_Hay2011/plotcsv.py | 4cf4ec481715b8ba3cc2c53eac9f70c8528747cc | [] | no_license | analkumar2/Thesis-work | 7ee916d71f04a60afbd117325df588908518b7d2 | 75905427c2a78a101b4eed2c27a955867c04465c | refs/heads/master | 2022-01-02T02:33:35.864896 | 2021-12-18T03:34:04 | 2021-12-18T03:34:04 | 201,130,673 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 2,228 | py | #exec(open('plotcsv.py').read())
import matplotlib as mpl
mpl.rcParams["savefig.directory"] = '/mnt/c/Analkumar2/Study/Biology/Neuroscience/2018 - 23 PhD Thesis/Thesis work'
import csv
import matplotlib.pyplot as plt
import numpy as np
import os
from neo.io import AxonIO
import pandas as pd
invidx = 1
Injectcurr = 30... | [
"analkumar2@gmail.com"
] | analkumar2@gmail.com |
972b336cb5c9b240d2be57f4936deffbc6576967 | 767c293495841d1f15986dd4a4b90e199e690e8d | /blind_blizzards/data/consts.py | a8b3df4ade995b8c7f73b86e60556be08dcf366d | [
"MIT"
] | permissive | Starwort/code-jam-5 | a4f84872bc53d594fff35d503594088d9f90fa05 | c11ab7508ca8c68fe64f33118a3a44956c0a8292 | refs/heads/master | 2020-06-12T10:04:20.945855 | 2019-06-29T13:44:56 | 2019-06-29T13:44:56 | 194,266,624 | 0 | 1 | null | 2019-06-28T12:00:29 | 2019-06-28T12:00:29 | null | UTF-8 | Python | false | false | 639 | py | import enum
from discord import Colour
### GENERAL ###
# team logo
EMBED_THUMBNAIL = "https://i.imgur.com/xaqlfLO.png"
# colour for 'magic embeds'; that is, embeds appearing to have no
# coloured sidebar
MAGIC_EMBED_COLOUR = Colour(0x36393E)
### cogs.interactive / data.interactive ###
class AlignmentField(enum.En... | [
"tcphone93@gmail.com"
] | tcphone93@gmail.com |
6afded1246d1f7062c490a1205ece14505720572 | a8750439f200e4efc11715df797489f30e9828c6 | /codechef/KJCS2018_BOOK.py | b948dc53f60db9e60b446ba500360c8fc4f61da7 | [] | no_license | rajlath/rkl_codes | f657174305dc85c3fa07a6fff1c7c31cfe6e2f89 | d4bcee3df2f501349feed7a26ef9828573aff873 | refs/heads/master | 2023-02-21T10:16:35.800612 | 2021-01-27T11:43:34 | 2021-01-27T11:43:34 | 110,989,354 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 895 | py |
# -*- coding: utf-8 -*-
# @Date : 2018-09-30 15:05:32
# @Author : raj lath (oorja.halt@gmail.com)
# @Link : link
# @Version : 1.0.0
from sys import stdin
from itertools import accumulate
max_val=int(10e12)
min_val=int(-10e12)
def read_int() : return int(stdin.readline())
def read_ints() : return [int(... | [
"raj.lath@gmail.com"
] | raj.lath@gmail.com |
c101febd84907f8db0eda5cb28278adfbade9cf3 | aa94d18a9376220750820f1bab689193e1d3030f | /algorithm/greatest_common_divisor_and_least_common_multiple.py | 5f5cf6b0995e47b781ede6c91a3431e3c840f04a | [] | no_license | alvinsen/pycode | 7720cba28f63efced89a2d92cacda10ac39aca93 | 817dfdb5398c1563e9eae703dbeced302f2df1ed | refs/heads/master | 2016-08-12T05:52:12.394685 | 2015-07-16T03:25:38 | 2015-07-16T03:25:38 | 36,700,988 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 9,199 | py | #!/usr/bin/python
# -*- coding:utf-8 -*-
import random
import time
import math
"""
python 求最大公约数和最小公倍数
"""
def is_prime(n):
"""
求一个数是否是素数
"""
for i in range(2, int(math.sqrt(n))+1):
if n % i == 0:
return False
return True
def greatest_common_divisior(a, b):
"""
... | [
"shen.yongquan@hotmail.com"
] | shen.yongquan@hotmail.com |
857d9434c9309e580b2b741fa15785895ffc5948 | 1040b320168c49e3fd784d93ff30923527582d26 | /calm/dsl/api/vm_recovery_point.py | 6c38001e2886ff7ea3c342f1f6e12a8c4d6bc643 | [
"Apache-2.0"
] | permissive | nutanix/calm-dsl | 87eb8a82f202ec0c71b5c8d8fe49db29bdcf2cfc | 56c52702cec4370f551785508d284e5cbe1a744a | refs/heads/master | 2023-08-31T16:43:51.009235 | 2023-08-28T05:20:41 | 2023-08-28T05:20:41 | 227,190,868 | 41 | 59 | Apache-2.0 | 2023-08-28T05:20:43 | 2019-12-10T18:38:58 | Python | UTF-8 | Python | false | false | 195 | py | from .resource import ResourceAPI
class VmRecoveryPointAPI(ResourceAPI):
def __init__(self, connection):
super().__init__(connection, resource_type="nutanix/v1/vm_recovery_points")
| [
"abhijeet.kaurav@nutanix.com"
] | abhijeet.kaurav@nutanix.com |
5c14f9e5ac32a9df71e9620a535ad31b27980fcc | 8714fe820464ed17128cccaf038b79866264a139 | /test/searclassi.py | 9f59ab01e9e6a0eaf03d4eb7ff1af8da3329e618 | [] | no_license | 1006927966/classi_masterv2 | b3a81271d4f690fdba284ceed2f9fd8d0b04b907 | 9a9ae7c742f5a63fcd58833a429ec88812d1cab1 | refs/heads/master | 2022-12-27T01:06:38.965217 | 2020-10-13T12:07:35 | 2020-10-13T12:07:35 | 303,689,838 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,814 | py | import os
import shutil
class usefulpic:
def __init__(self, project, epoch, rootdir, iou, label):
self.project = project
self.epoch = epoch
self.rootdir = rootdir
self.iou = iou
self.label = label
def savepic(self, name):
origndir = os.path.join(self.rootdir, sel... | [
"1006927966@qq.com"
] | 1006927966@qq.com |
6337451b05cbf067292a030396b3af9ccc2f1535 | 6cc588476de886a821bb57d53f5e7eee6908f078 | /models/models.py | 23d5ad553e48998a56f12ab86f5811020301b09a | [] | no_license | jlising12/odoo-jlising | 56777c19ac9d4e96df04b6406f03626243ace3e3 | b21a6d5218e7663e7b76f01b4e89f7a752925811 | refs/heads/master | 2022-12-24T16:55:19.671115 | 2020-10-07T00:42:24 | 2020-10-07T00:42:24 | 301,889,132 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 194 | py | # -*- coding: utf-8 -*-
from odoo import models, fields, api
class PurchaseOrderInherit(models.Model):
_inherit = 'purchase.order'
request_ref = fields.Char('Request Reference')
| [
"joshualisingdev@gmail.com"
] | joshualisingdev@gmail.com |
f926899fe2dc401d56b6c00621aee2cf8d3fb5e8 | 775c7e874357667485c25c1fa84f03cef362c2d8 | /api/musik/sendfile.py | d29ef7a1ce65543040f34fedb6c597cf36037e1f | [] | no_license | karlbloedorn/musik | 1e7a215e4224ba6c1b9a90cc225527889b159b18 | 2b23df21efd45855728debfb417830108f47b37a | refs/heads/master | 2021-01-25T03:54:51.104479 | 2013-02-18T04:58:37 | 2013-02-18T04:58:37 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,497 | py | from flask import Response, request
from re import findall
import os
from werkzeug.datastructures import Headers
import mimetypes
from wsgiref.handlers import format_date_time
from datetime import datetime
from time import mktime
def __http_date(dt = None, delta = None):
if dt is None:
dt = datetime.now()
... | [
"coagentpai@gmail.com"
] | coagentpai@gmail.com |
8282c6eba08270ce6cbcf6810fff1f2fa5198063 | 0eff535855a00b73ab6852dd0f4e11993add8c1c | /assignment1/nnScript.py | 8023332ef4f5155b6df43e0c67c1f684eb267393 | [] | no_license | pinnockf/machine-learning | 6af093a514a54ba588c3f0d99b6d28f0ead74799 | 924eb2f73719f4b0263ccbf123ccade1e5a5eb5c | refs/heads/master | 2021-06-15T22:33:14.424481 | 2017-05-04T13:49:13 | 2017-05-04T13:49:13 | 83,069,152 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 12,101 | py | import numpy as np
from scipy.optimize import minimize
from scipy.io import loadmat
from math import sqrt
def initializeWeights(n_in, n_out):
"""
# initializeWeights return the random weights for Neural Network given the
# number of node in the input layer and output layer
# Input:
# n_in: number... | [
"pinnockf@gmail.com"
] | pinnockf@gmail.com |
13f640496646629690e453aeb843920306e7212a | 9e16e90e607b8f17a6f69eda5b67610c567d44fb | /scripts/konrad/l_on_4.py | 4d8c3b9b664e2392bec977580537b7fc0368e390 | [] | no_license | mauntrelio/XTCD | 3f8e033ff6e2ec27d3de2292bef91bc769178f92 | fae75ff288435cb73dea1fd19f8ff23a442597b6 | refs/heads/master | 2020-04-02T10:05:20.507330 | 2019-07-16T11:16:47 | 2019-07-16T11:16:47 | 154,323,821 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 193 | py | import Adafruit_PCA9685.PCA9685 as pca
pwm = pca (address = 0x41)
pwm.set_pwm(6,0,4095)
pwm.set_pwm(7,0,0)
pwm.set_pwm(8,0,4095)
pwm.set_pwm(9,0,4095)
pwm.set_pwm(10,0,4095)
pwm.set_pwm(11,0,0) | [
"maurizio.manetti@xfel.eu"
] | maurizio.manetti@xfel.eu |
32a7317718b83a0c7ecef1b061da7649186a8798 | 136fbe9cdd9cf4645cab768dd01238cae06c1776 | /ch2/tasks_proj/tests/func/test_unique_id_2.py | bf6b1ace068205c22141985e2eef4d02410467e0 | [] | no_license | tinghsiangyang/PythonTestingWithPytest | 2dc0ecdbb827c76b9d60922ec898a103313b52e2 | a0deb57283687facf5351a1ad9f0f13f0dac9227 | refs/heads/master | 2023-06-03T09:16:15.527548 | 2021-06-22T14:03:55 | 2021-06-22T14:03:55 | 361,180,365 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 570 | py | import pytest
import tasks
from tasks import Task
@pytest.fixture(autouse=True)
def initialized_tasks_db(tmpdir):
tasks.start_tasks_db(str(tmpdir), 'tiny')
yield
tasks.stop_tasks_db()
@pytest.mark.skip(reason='misunderstood the API')
def test_unique_id_1():
id_1 = tasks.unique_id()
id_2 = tasks.... | [
"tinghsiangyang@qq.com"
] | tinghsiangyang@qq.com |
84abd4b367c009716c4e5e6408a26ea7277a4f65 | add8f36d93645164a704cc9da880bcf8af6c5895 | /match.py | 85e517040071ae81267f1f8f3c36e9bd9ee3925e | [] | no_license | bengoldstein19/Stable-Marriage | dda4bb4f5a61e78e3611ff7528ad2142f549b7cf | 04c70bd0d4f59e08597e7f844be9edfb654f324f | refs/heads/master | 2022-06-21T12:29:08.680534 | 2020-05-12T05:34:21 | 2020-05-12T05:34:21 | 263,242,598 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 10,644 | py | import csv #import csv to read/write csv files
from random import shuffle #import shuffle to randomly order list
#DEFAULT VALUES FOR NAMES AND NUM NAMES
men_names = ["Andrew", "Benjamin", "Chris", "David", "Earl", "Frank", "George", "Harry", "Isaiah", "Jack", "Kyle", "Landry", "Mark", "Nick", "Oscar", "Phil", "Quinn",... | [
"27benjamin.goldstein@gmail.com"
] | 27benjamin.goldstein@gmail.com |
319d58ed3197580898e4249bda21bfd1cec0797b | bad04904c1c939be61682aebabb0e37409011b3f | /authentication/views/admin.py | c64770c7f650d395b8cdb30fe504657672abe7ae | [] | no_license | oosprey/SRPA | 499213d39f41141dc35ab9170510a1f18332b17c | 37017f600f61ea1b4a8c8c928ca65ab2c1f00d29 | refs/heads/master | 2021-01-23T22:00:31.865443 | 2017-10-12T03:16:27 | 2017-10-12T03:16:27 | 102,920,120 | 0 | 0 | null | 2017-09-09T02:17:00 | 2017-09-09T02:17:00 | null | UTF-8 | Python | false | false | 5,429 | py | #!/usr/bin/env python3
# coding: UTF-8
# Author: David
# Email: youchen.du@gmail.com
# Created: 2017-10-06 14:12
# Last modified: 2017-10-07 17:05
# Filename: admin.py
# Description:
from django.views.generic import TemplateView, CreateView, UpdateView
from django.views.generic import DetailView, ListView
from django.c... | [
"youchen.du@gmail.com"
] | youchen.du@gmail.com |
1c3e6ed480922197c5292d0418229fc7eb35fa41 | d1014363b0a2d5a16bdcbe74f327f8ffa9f571ec | /utils/createDataset/gather_64_32_16_fromvoxel256.py | 879b9f5cdc46d466273847a06bfbdd95693714ba | [] | no_license | jinghuan-Chen/Implict-3D-Reconstruct | 2b56b9d8c32d4d45576fa2f94d4a956db1e0168e | e903c9cbbb60ddffa8ef6c508bd3daa2cc485a96 | refs/heads/master | 2023-01-11T07:27:53.978313 | 2020-11-07T08:33:17 | 2020-11-07T08:33:17 | 308,265,206 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 13,660 | py | import numpy as np
# import cv2
import os
import h5py
from scipy.io import loadmat
import random
import json
from multiprocessing import Process, Queue, Lock
import queue
import time
dim = 64
vox_size_1 = 16
vox_size_2 = 32
vox_size_3 = 64
batch_size_1 = 16*16*16
batch_size_2 = 16*16*16
batch_size_3 = 16*16*16*4
''... | [
"275923410@qq.com"
] | 275923410@qq.com |
ed009c63f5a3c7ece89552ccefba440deb74a17f | 92b031f51f1c52c26d93987005b8209d9bb050a1 | /mamba/pymtl/__init__.py | d775f90607b8d0da2431cc3660e6a9caecfb0394 | [] | no_license | cornell-brg/mamba-dac2018 | e9353b142456768fcc0d3a9f9b3d29e162ad508e | 01efaadc704a8abec9fa7d4b668005ee412a2353 | refs/heads/master | 2020-03-19T04:42:27.349346 | 2018-06-27T14:57:58 | 2018-06-27T15:00:29 | 135,856,412 | 4 | 1 | null | null | null | null | UTF-8 | Python | false | false | 635 | py |
from model.ConstraintTypes import U, M, RD, WR
from model.Connectable import Wire, InVPort, OutVPort, Interface
from model.RTLComponent import RTLComponent
from passes import SimRTLPass, PrintMetadataPass, EventDrivenPass
from datatypes import *
from datatypes import _bitwidths
__all__ = [
'U','M','RD','WR'... | [
"sj634@cornell.edu"
] | sj634@cornell.edu |
c3b667c46fa1e0574626695cf60534a6c36e3f66 | 0ad7fa728c4a8eabb82edb7eb757a4bef3f0a19f | /ha/I2CInterface.py | 9883e5e8fc196114b756733829d1bfdb8cceedfa | [] | no_license | randyr505/ha | bb5d8d38441cee41a0c961a6e9d92e8cbbf89a0f | 6771c50e3141c4162c89569fa4bce95b5f121867 | refs/heads/master | 2020-12-29T02:54:43.339856 | 2016-05-23T00:51:47 | 2016-05-23T00:51:47 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,275 | py |
import smbus
from ha.HAClasses import *
class I2CInterface(HAInterface):
def __init__(self, name, interface=None, event=None, bus=0):
HAInterface.__init__(self, name, interface=interface, event=event)
self.bus = smbus.SMBus(bus)
def read(self, addr):
try:
debug('debugI2C',... | [
"joe@thebuehls.com"
] | joe@thebuehls.com |
70316e57cbdad4e061ebc2d007b8eb70b133fadf | 4aea758ddef687796f3fe184986ebd1d8386f9cc | /myapp/migrations/0002_delete_student.py | ebd0ca8e67b77dc8fd7e504590bfb1da410e0841 | [] | no_license | jayeshchauhan007/myproject | 2855021bf08f7fd6e62689beb6bb8791772dc72e | 989479b6eb1e0d996c98774466f662eb94a793b8 | refs/heads/master | 2023-02-02T22:25:06.790918 | 2020-12-23T03:55:04 | 2020-12-23T03:55:04 | 286,919,008 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 283 | py | # Generated by Django 3.0.4 on 2020-07-03 06:40
from django.db import migrations
class Migration(migrations.Migration):
dependencies = [
('myapp', '0001_initial'),
]
operations = [
migrations.DeleteModel(
name='Student',
),
]
| [
"52233699+jayeshchauhan007@users.noreply.github.com"
] | 52233699+jayeshchauhan007@users.noreply.github.com |
62efaef4c35f83861dd5de7f6c954b1a4eb15c55 | 11ff14c118240e87c4804d0373e4656d0683d479 | /RatToolAgent/ZapAgent.py | 77c8328884d695c9fe760d84041ff9d8482c5aa6 | [] | no_license | wxmmavis/OS3.1 | e3028d9c79d5a1a17449fea6380fcdda902bdec7 | 26d954344207a82d2298821c3c4f01302393dc7e | refs/heads/master | 2020-03-25T20:07:11.225493 | 2018-08-13T03:20:57 | 2018-08-13T03:20:57 | 144,115,963 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,868 | py | import subprocess as sp
import time
import threading
import pdb
import re
from RatToolAgent import _adapter_name
_zap_dict = dict(thread=None,
zap_cmd=r'zap -s%s -d%s -X%s',
pskill_cmd=r'C:\bin\win\pskill')
def send_zap_traffic(source_ip="", destination_ip="", duration="", speed="", proto="", ... | [
"1475806321@qq.com"
] | 1475806321@qq.com |
c702956a4a2e74d48fbc44229dde4a04631056e3 | ec84619271eac42481231218c9ee653dec99adad | /3. Linear Data Structure/146. Lowercase to Uppercase II.py | 1a3326e9a6fb166e2b6f1f1534d527cf102ead1c | [] | no_license | LingHsiLiu/Algorithm0 | 19a968fffb5466022f9856c36af0364da6472434 | f438e828dc9dd6196ee5809eb8fac21ccb688bf2 | refs/heads/master | 2020-04-04T17:55:48.182172 | 2019-01-02T19:06:57 | 2019-01-02T19:06:57 | 156,142,530 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 423 | py | # 146. Lowercase to Uppercase II
# Implement an upper method to convert all characters in a string to uppercase.
# You should ignore the characters not in alphabet.
# Example
# Given "abc", return "ABC".
# Given "aBc", return "ABC".
# Given "abC12", return "ABC12".
class Solution:
"""
@param str: A string
... | [
"noreply@github.com"
] | LingHsiLiu.noreply@github.com |
343be44e4af8b4e559c539b1309eb0b51ec5a7a3 | 90f142d9417894e8d0efe20071eef11a1cca6df0 | /test/test4.py | 6bdacf0d1a35b2c368e6051e42d68f9420888523 | [] | no_license | jzp1025/test_script | a4071f4e017541d4380d157b0060cdb40573e9f4 | 2e6a15d475ef1866635b8d3ec00aee26cab12ae4 | refs/heads/master | 2020-03-10T00:28:43.182902 | 2018-05-28T09:58:45 | 2018-05-28T09:58:45 | 129,082,653 | 1 | 1 | null | null | null | null | UTF-8 | Python | false | false | 614 | py | # -*- conding: UTF-8 -*-
import os, sys, commands, subprocess, re , signal
from test_method import time_test
def test(run_time , test_name , log_number , log_path):
print "start test 4 : "
print "Test Content : cpp , 3 talker , 3 listener , 1 topic"
package_name = "pub_and_sub_cpp"
talker_name = ["talker4_... | [
"609827646@qq.com"
] | 609827646@qq.com |
49168dfc9495b1edf2ceaed62fd768a00eeadc81 | 642bed3096e898cc2c44a14b13f30b5ee1e6c674 | /CMSSW/BAnalysis/MCatNLOAnalyzer/python/mcatnloanalyzer_cfi.py | d64be6bed24ffd02c8e67a3c607d9c54f13820f3 | [] | no_license | RemKamal/bb-correlation | 70efff40e23140a7e580489fe41cb3f83f8b65c2 | 7d58f719ba57e966218556aa4e8ca8719659f043 | refs/heads/master | 2021-01-18T06:37:45.508156 | 2012-05-02T13:37:20 | 2012-05-02T13:37:20 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 84 | py | import FWCore.ParameterSet.Config as cms
demo = cms.EDAnalyzer('MCatNLOAnalyzer'
)
| [
""
] | |
d12f0dfc9cecdc462ead55f260a9a8185bd6b3bc | e573b586a921084f29a36f8e2de5afcae2c65ff8 | /tasks/part_2/shape.py | 2b170227c0348f5c73280085dea6db24fbffca36 | [] | no_license | HannaKulba/AdaptiveTraining_English | e69c8a0c444c1fa72b4783ba837cb3d9dc055d91 | 46497dc6827df37f4ebb69671912ef5b934ab6f0 | refs/heads/master | 2020-12-28T15:05:25.762072 | 2020-02-19T14:39:22 | 2020-02-19T14:39:22 | 238,381,636 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 496 | py | n = int(input())
if n == 1:
print('You have chosen a square')
elif n == 2:
print('You have chosen a circle')
elif n == 3:
print('You have chosen a triangle')
elif n == 4:
print('You have chosen a rhombus')
else:
print('There is no such shape!')
# if n == 0:
# print('do not move')
# elif n == 1... | [
"anna.mirraza@gmail.com"
] | anna.mirraza@gmail.com |
a7700a712ddd8d21a4439696f5d2596ebfcf4142 | dc8cc2e668aa741c62ce732ed29bcd971383f664 | /venv/lib/python3.7/site-packages/robotpy_ext/autonomous/selector.py | 38da8a41ebeb3c7719d2155a9d7fe7d686ec4ce7 | [] | no_license | cadenmr/python-frc-test | e3054319e05dbdf37ef7a40d30fae083b0a816be | f2a56db911fe600e113043e6a9372248b47de7f3 | refs/heads/master | 2021-04-24T12:36:22.755856 | 2020-03-26T17:47:41 | 2020-03-26T17:47:41 | 250,119,313 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 12,973 | py | import importlib
import inspect
import logging
import os
from glob import glob
from typing import Union
import hal
import wpilib
from ..misc.precise_delay import NotifierDelay
from ..misc.simple_watchdog import SimpleWatchdog
logger = logging.getLogger("autonomous")
class AutonomousModeSelector:
"""
Th... | [
"cadenmr"
] | cadenmr |
a5fec16ff44d805da951c5e78c500dc1f20fa18b | 72862afa9678196e5c152929fa6c3c7c50afc443 | /12/part1.py | 398191bf3a216a806a5be167d3fbc4f7bcf745e9 | [] | no_license | gregorulm/advent_of_code_2016 | ea4f055344fc94a6c0c809d1ae20963470c650cf | 155030c8eccf1986cac2e72c482624044e9711ab | refs/heads/master | 2020-12-12T09:40:20.601531 | 2018-11-15T14:47:18 | 2018-11-15T14:47:18 | 234,101,638 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,150 | py | # Advent of Code 2016: Day 12, Part 1
# Gregor Ulm
def main():
f = open("input")
instructions = f.readlines()
reg = { "a" : 0 ,
"b" : 0 ,
"c" : 0 ,
"d" : 0 }
pos = 0
while pos < len(instructions):
x = instructions[pos]
if x.start... | [
"gregor.ulm@gmail.com"
] | gregor.ulm@gmail.com |
7e2bb106009a090a2ad1c4d96f52dd22e5d71aa5 | 34ce9a01b589179068b39af2d37e33207436be0f | /Assignment_3/Remove_text_hw_3_ex_13.1.py | 3ab8629ae323591be2641ce92102b2912559f282 | [] | no_license | fopioabari/Introduction-to-Programming-Using-Python | f2500f9de1e0cc1ec227dc9d4b8c7369c3322b8b | fc6748acd9be1b369c3fc4a8869d94778522fa12 | refs/heads/master | 2021-04-18T21:38:58.531696 | 2018-03-27T00:01:07 | 2018-03-27T00:01:07 | 126,882,259 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 419 | py | #!/usr/bin/env python3
# -*- coding: utf-8 -*-
"""
Created on Tue Jan 30 12:20:37 2018
@author: francisabari
"""
file_name = input("Enter a file name:")
removed_word = input("Enter the string to be removed:")
lt = []
f= open(file_name,'r')
for line in f.readlines():
line = line.replace(removed_word,"")
lt.appen... | [
"noreply@github.com"
] | fopioabari.noreply@github.com |
6ec84f8e06eb6c4dfee16b7dee792d375386d2a6 | 6c1f3c640012da447a0de8da86a4788683648095 | /script/MakeElectronIDFunctions/print.py | a5b55dffc2c72b291309658df87095e2031953df | [] | no_license | ljs9125/SKFlatAnalyzer | 3886c2a157777edbf78190be8f8ee4d46d0c4dda | d0e53c3fa85f3f6c20bbf18c3b34765336ea25bc | refs/heads/master | 2021-06-24T18:58:08.496932 | 2020-02-13T05:02:43 | 2020-02-13T05:02:43 | 200,600,404 | 1 | 1 | null | 2021-01-21T06:06:18 | 2019-08-05T07:03:35 | C | UTF-8 | Python | false | false | 273 | py | import os
lines = open('ids.txt').readlines()
for line in lines:
line = line.strip('\n')
#print ''' bool {0}() const {{return j_{0};}}'''.format(line)
#print ''' electron_{0}->at(i),'''.format(line)
print ''' if(ID=="{0}") return {0}();'''.format(line)
| [
"jae.sung.kim@cern.ch"
] | jae.sung.kim@cern.ch |
4afecaed7d549f21e85ffa373e6b6bd797513efe | 3fda2cf03821d5627d6628aca348870ac3d127c2 | /utils.py | 4561fe05ef59a3c5eb413fc664df80a1786c8aa1 | [
"MIT"
] | permissive | valohai/aws-pricelist-tool | 04f0e601cb32995d37f2b207480fe4db4f094f0a | 637ff1add70dc5bab0651abd7051822da9df671f | refs/heads/master | 2020-04-25T22:24:50.348013 | 2019-10-18T16:51:00 | 2019-10-24T13:35:01 | 173,110,705 | 1 | 0 | MIT | 2019-10-24T13:35:03 | 2019-02-28T12:45:16 | Python | UTF-8 | Python | false | false | 2,293 | py | import fnmatch
import itertools
import json
import os
import time
import logging
from typing import Set
import requests
log = logging.getLogger(__name__)
REGIONS = {
'ap-northeast-1': 'Asia Pacific (Tokyo)',
'ap-northeast-2': 'Asia Pacific (Seoul)',
'ap-northeast-3': 'Asia Pacific (Osaka-Local)',
'ap... | [
"akx@iki.fi"
] | akx@iki.fi |
b1bd0efc7b474badb5572cbd0c27df617398b0af | 202d71144f44e7fd3dd40788d4925deab91d7631 | /BayesianNetwork.py | 8a6bd5655712a47512390ab08afd4aab202693f1 | [] | no_license | atreyamj/Bayesian_NW | 04947b8feb3f2a91164911ea62ef74c90ddbaa9c | cff1f70f4c39b2364828145017053cba214fcf1c | refs/heads/master | 2020-12-24T18:55:52.238069 | 2016-04-18T08:02:49 | 2016-04-18T08:02:49 | 55,949,117 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 11,867 | py | import re
DECISION_VAR_LIST=[]
bayes_network={}
queriesMap={}
def read_file_data(file_handler):
queries = []
all_vars = []
utility = []
while True:
query_str = str(file_handler.readline().rstrip())
if query_str == "******":
break
queries.append(query_str)
bayes_... | [
"atreyamj@usc.edu"
] | atreyamj@usc.edu |
2967013c3c0c4a820168109b8f5c6c19cdcfe04c | 53396d12d606bebea71c149aed0150af7b17b6f5 | /array/medium/215-kth-largest-element-in-an-array-1.py | af2f422c0b1f7c9ef583847bde0cd8c0f18028da | [] | no_license | superggn/myleetcode | 4c623bd9ad3892d826df73ad3b2c122e08aaa9e9 | 40ca33aefbf0cf746a2d0b7e7f52643ae39591be | refs/heads/master | 2023-02-02T11:06:35.163570 | 2020-12-19T10:36:45 | 2020-12-19T10:36:45 | 322,821,962 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 302 | py | """
排序-普通版
https://leetcode-cn.com/problems/kth-largest-element-in-an-array/solution/pai-xu-by-powcai-2/
"""
import heapq
from typing import List
# 排序
class Solution:
def findKthLargest(self, nums: List[int], k: int) -> int:
return sorted(nums, reverse=True)[k - 1]
| [
"939401399@qq.com"
] | 939401399@qq.com |
52afe2fe2d6b878609a8ca061380d4bdaf627bc6 | e121ceeeeea5dbacbd3ea36f8d5f226ea43faa89 | /shop_catalog/shop_catalog/urls.py | c162cf0f299f8c60d5e66f4a4badb4ace00cf7b0 | [] | no_license | Ranc58/training_django_shop | dae7b264f849502da0e54f2d70c715335a8d52f9 | 260b7c1be1c120652a791ff355afdd64c06602b0 | refs/heads/master | 2021-05-16T01:34:08.820340 | 2017-10-16T13:50:08 | 2017-10-16T13:50:08 | 107,131,650 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,148 | py | """shop_catalog URL Configuration
The `urlpatterns` list routes URLs to views. For more information please see:
https://docs.djangoproject.com/en/1.11/topics/http/urls/
Examples:
Function views
1. Add an import: from my_app import views
2. Add a URL to urlpatterns: url(r'^$', views.home, name='home')
Cla... | [
"rancvova@gmail.com"
] | rancvova@gmail.com |
db60f9afc2d0372c9b1f346e8909368e187946ab | c3b60fef50c3ccc2a3cda6e0fd4a286382d1fa32 | /quizbot/settings.py | 67afc61ac156e31f9f348b3f891731e69f6a7dc3 | [] | no_license | PatrykJagielski/discord-bot | 9cd190e79eb92809733636de375023595345e633 | c6ebd7d57f10541bdb7cfa396e5f0b85a554edcd | refs/heads/main | 2023-04-22T15:55:32.041419 | 2021-05-05T23:25:45 | 2021-05-05T23:25:45 | 364,730,089 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,158 | py | """
Django settings for quizbot project.
Generated by 'django-admin startproject' using Django 3.1.
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 pathlib i... | [
"patryk1993xd@gmail.com"
] | patryk1993xd@gmail.com |
67fd7ac430f02f90e57cf3651190c6e9dd7bb15f | ff6f60d02ed8d024f7b2db5c9eb4b1196ebf166b | /mysite/blog2/migrations/0002_article_pub_time.py | 761ae2617117e36ba66c73bf9d7ffbcc593e45f4 | [] | no_license | cekong/learnit | 43b707e347ff552754b6592e01dd106c98cd0cc5 | b4111d6fee95960f7b7ca5421b7159cb6122ad2a | refs/heads/master | 2020-03-25T13:53:37.848843 | 2019-08-29T06:46:48 | 2019-08-29T06:46:48 | 143,848,485 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 378 | py | # Generated by Django 2.0.7 on 2018-10-25 06:24
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('blog2', '0001_initial'),
]
operations = [
migrations.AddField(
model_name='article',
name='pub_time',
fi... | [
"noreply@github.com"
] | cekong.noreply@github.com |
bb7672c211d730b8ac2e4d8c18f97d833e607424 | 824b582c2e0236e987a29b233308917fbdfc57a7 | /sdk/python/pulumi_google_native/iam/v1/get_service_account_iam_policy.py | cb879aff8b8fc2d019e19500fe1af7596f78c7a2 | [
"BSD-3-Clause",
"Apache-2.0"
] | permissive | 24601/pulumi-google-native | ce8faf8455609a9572a8cbe0638c66427bf0ae7f | b219a14201c6c58eaa10caaeacbdaab528931adf | refs/heads/master | 2023-08-23T05:48:31.819709 | 2021-10-08T18:50:44 | 2021-10-08T18:50:44 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 7,255 | py | # coding=utf-8
# *** WARNING: this file was generated by the Pulumi SDK Generator. ***
# *** Do not edit by hand unless you're certain you know what you are doing! ***
import warnings
import pulumi
import pulumi.runtime
from typing import Any, Mapping, Optional, Sequence, Union, overload
from ... import _utilities
fro... | [
"noreply@github.com"
] | 24601.noreply@github.com |
0caa68484cc22a486058322e3e3f6bb9e4dbb03d | 826cd9607d433f26cc3c2a29553bc2158db1fb76 | /python machine learning Michigun university Coursera/course1 numpy and pandas/c1week2_pandas1.py | 9411f7a72814902a74cbcbdc7e727ecdf62eef84 | [] | no_license | realdingke/undergraduate-projects-showcase | 621b61829916aed71f0279b72f84e4ee3e379833 | b1698572208d5d7e5c242f98ba72f9af1df4f107 | refs/heads/master | 2021-09-16T04:30:53.807251 | 2021-08-14T18:06:26 | 2021-08-14T18:06:26 | 226,111,604 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,391 | py | import pandas as pd
import numpy as np
#purchase_1 = pd.Series({'Name': 'Chris',
# 'Item Purchased': 'Dog Food',
# 'Cost': 22.50})
#purchase_2 = pd.Series({'Name': 'Kevyn',
# 'Item Purchased': 'Kitty Litter',
# 'Cost': 2.... | [
"noreply@github.com"
] | realdingke.noreply@github.com |
33cb531d016b53d9e66de77beab3280ef808fe8e | 61ce1dff5e61dde649e3908b6ba7c2a270a78e94 | /users/models.py | fd8f6f26694565195903bf3553da2c8b17a77c6a | [
"Unlicense"
] | permissive | xeddmc/pastebin-django | b9438104691b4c21af4a01e46e8c9ada7ee66403 | 5e38637e5a417ab907a353af8544f64a0ad2b127 | refs/heads/master | 2021-01-12T20:07:53.454983 | 2015-12-21T09:31:29 | 2015-12-21T09:31:29 | 45,421,895 | 0 | 0 | Unlicense | 2019-08-05T19:47:34 | 2015-11-02T21:03:40 | Python | UTF-8 | Python | false | false | 6,890 | py | from django.db import models, transaction
from django.core.cache import cache
from django.contrib.auth.models import User
from django_redis import get_redis_connection
from ipware.ip import get_real_ip
from sql import cursor
from pastes.models import Paste
from pastebin import settings
import datetime
class Favo... | [
"jannepulk@gmail.com"
] | jannepulk@gmail.com |
960776e94ed10cbbc2aa41792314d106e059f4f4 | ee3d909dee704047ca01dadf41005a9ab2dcbee0 | /cleaner_runner.py | 362926fe1162beea3563ebdec655422ba0a52837 | [] | no_license | piBrain/aura_dataset_scraper | 5c21e669d18645310d23308828725b9e69203f59 | 29dfea3112087339d2aae1cd48dd703559fc302f | refs/heads/master | 2021-03-22T04:32:08.159056 | 2017-04-01T23:27:52 | 2017-04-01T23:27:52 | 74,279,726 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 389 | py | import data_cleaner
import json
import os
def main():
root_dir = os.path.dirname(__file__)
cleaner = data_cleaner.DataCleaner()
print('Starting clean...')
with open('data/scrape_file.jl','r') as f:
for line in f:
cleaner.process_row(json.loads(line))
cleaner.flush_row_cache()
... | [
"iantbutler@pibrain.io"
] | iantbutler@pibrain.io |
c6cb81d05d1327c650793835d04ddd9cd32a007c | 750fa6642143723f4585a8668af701cccf053c5d | /barcodecop/barcodecop.py | d617f934941522f30ee36fabd89d40fe41fc19f7 | [
"MIT"
] | permissive | dhoogest/barcodecop | 858c2cb9d553c4334e1edf67ed7d9723de59cfc5 | 586fb0df6889caef1bfe9d7cf2a138667465ca89 | refs/heads/master | 2021-01-25T06:25:19.933057 | 2017-03-13T19:24:45 | 2017-03-13T19:24:45 | 93,571,730 | 0 | 0 | null | 2017-06-06T23:08:28 | 2017-06-06T23:08:28 | null | UTF-8 | Python | false | false | 5,274 | py | #!/usr/bin/env python
"""Filter fastq files, limiting to exact barcode matches.
Input and output files may be compressed as indicated by a .bz2 or .gz
suffix.
"""
import argparse
import sys
from collections import Counter
from itertools import islice, tee, izip
import operator
import logging
from collections import... | [
"noah.hoffman@gmail.com"
] | noah.hoffman@gmail.com |
e930fcf1d9e3591b8355dc83e036d4b6dbf943c0 | d66e2c71d0ea41d353fc3226f0897383e69316e8 | /localiza.py | 633efda6f849078e0b8e4a602f1176f52cb54d4c | [] | no_license | EduardoRenani/Desafio-Quantitas | 0444b5be498206543191989a9088c62e3a94b529 | cbd967611173ba4873a567d7a86a19d7d4024cfb | refs/heads/master | 2020-03-19T02:50:01.550277 | 2018-06-01T16:30:54 | 2018-06-01T16:30:54 | 135,665,855 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,329 | py | from selenium import webdriver
from bs4 import BeautifulSoup as soup
from nltk.tokenize import WhitespaceTokenizer
import math
import json
from selenium.common.exceptions import NoSuchElementException
def localiza(filename):
localizaURL = "https://seminovos.localiza.com/carros-seminovos"
tknzr = WhitespaceToke... | [
"eduardo.renani@hotmail.com"
] | eduardo.renani@hotmail.com |
dc8862d5f210ae31a1ad69817c3da3b3f20d26f3 | 5f4e13201d4c5b7edc8dbbda289380682a187bec | /services/ping_service/coffeehouse_ping/__main__.py | 54c78ce3e37e965ab5bbec124d3465090942452d | [] | no_license | intellivoid/CoffeeHousePy | 92f4fb344de757837c3d3da05cb5513e90408039 | 57c453625239f28da88b88ddd0ae5f1ecdd4de3c | refs/heads/master | 2023-02-23T14:32:01.606630 | 2021-01-28T02:57:10 | 2021-01-28T02:57:10 | 324,419,067 | 0 | 2 | null | null | null | null | UTF-8 | Python | false | false | 850 | py | import sys
from coffeehouse_ping import Server
def _real_main(argv=None):
"""
The main command-line processor
:param argv:
:return:
"""
if argv[1] == '--help':
_help_menu(argv)
if argv[1] == '--start-server':
_start_server(argv)
def _start_server(argv=... | [
"netkas@intellivoid.info"
] | netkas@intellivoid.info |
32cff48548bf4d3ddf0478d84aabde1221c4b7dd | 5dc0ebff296966fbff4467a6ecac1973ab496399 | /microblog-0.4/app/views.py | a3e08e1f339c5408ba2c9604edf17b481c64aebd | [] | no_license | dynamicwebpaige/trust_in_dragons | af6390ddc4752db67fd162ed5e6577f4c7eb1139 | 30e6879a4795893325d10aa9da9a6b276c27634d | refs/heads/master | 2021-03-24T11:01:29.311423 | 2017-06-07T19:38:30 | 2017-06-07T19:38:30 | 13,287,050 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,388 | py |
from flask import render_template, flash, redirect
from app import app
from forms import LoginForm, StartPage, RegistrationForm, AdminForm
from newuser_db import addSingleUser
from phonequery_db import sendSms
from emailquery_db import sendMails
@app.route('/')
def home():
#return redirect('/start')
return re... | [
"Christine@Christine-Doigs-MacBook.local"
] | Christine@Christine-Doigs-MacBook.local |
3f3f5091d3f3ce5c2320d35de001deed5206ba80 | 5c595609760c5906628ad278f7ea8ce797ad0c61 | /article/admin.py | df56697c3033f68382767034ec072c0e85409975 | [] | no_license | lovekk/pro_wait | d7b1016aa58664eabed91a9189c874cbe9211c4b | d59c8e7c06b0253426394085bcc3cafee4149668 | refs/heads/master | 2022-12-14T13:36:40.417231 | 2020-07-03T07:14:29 | 2020-07-03T07:14:29 | 160,025,580 | 1 | 0 | null | 2022-12-08T01:31:42 | 2018-12-02T07:54:54 | Python | UTF-8 | Python | false | false | 1,150 | py | from django.contrib import admin
from article.models import Article,ArticleComment
# 九点读书 文章
@admin.register(Article)
class ArticleAdmin(admin.ModelAdmin):
# 显示的字段
list_display = ['id','title','short_content','author','editor','is_all_school','is_original','publish_date','view_num','school','is_show']
#... | [
"347699885@qq.com"
] | 347699885@qq.com |
4da8936b56d2e6324281bcabad76b3f052bf8489 | 6401ca2a8f9df6d480c13a98ed448946c1138db5 | /scripts/deploy_polygon_metapool.py | 0448df44661af48ad88757a5d3993b7b9b86e13d | [] | no_license | 0xrs/curve-crypto-contract | 1e035cdfd619c7f208472bc96fcbb39a0d6fd3a9 | 5d6cdcd44d990522f2fb36515022ea98a065273c | refs/heads/master | 2023-06-27T14:48:30.608074 | 2021-07-10T23:27:44 | 2021-07-10T23:27:44 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,457 | py | import requests
from brownie import (
accounts,
CurveCryptoMath3,
CurveTokenV4,
CurveCryptoViews3,
CurveCryptoSwapMatic,
ERC20Mock,
ZapAave,
compile_source,
)
from brownie import interface
import json
# Addresses are taken for Matic
COINS = [
"0xE7a24EF0C5e95Ffb0f6684b813A78F2a3AD7D... | [
"michwill@gmail.com"
] | michwill@gmail.com |
376a2456464d78cd73ca6a1c1a3edd6075c876e5 | a550700cb41a59594c57742e25f73dbac0082ad7 | /pymote/examples/fastfood.py | ab95c0a5e489d96e65cb671581bd7f2b4800151a | [
"BSD-3-Clause"
] | permissive | bbpatil/pymote2.0 | a3243c89bce8a425bbe3d291a3f702f5fa4f5bb7 | 265087e9a70028c8334aa1cf6ac22433bfa10c7f | refs/heads/master | 2022-03-25T19:56:43.903735 | 2020-01-03T03:41:12 | 2020-01-03T03:41:12 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 11,500 | py | import random
import pylab
verbose = False # whether to print out a description
# of events as the program runs
numServers = 4 # number of serving points
maxServerQueue = 10 # max length o... | [
"farrukhshahzad2002@hotmail.com"
] | farrukhshahzad2002@hotmail.com |
50c373016459f07c791a1db418b8a1222c5f3234 | 9996c9d36318cce6f1ffa1ed22261d14ea933371 | /lesson19/lesson19_select_data.py | 6e4d2185448326c62d455817d25ed34d83567d49 | [] | no_license | andrewdiemientiev-beetroot/LessonsCodeExemples | 92d87b2a6d50cf6c42a2a027ff184c2b38777212 | 5ba5c9188a9144cc0d344956434a7351b2bc7ac3 | refs/heads/master | 2023-06-23T07:59:22.694970 | 2021-07-24T11:12:18 | 2021-07-24T11:12:18 | 358,840,046 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 251 | py | import sqlite3
# create context manager with generator
con = sqlite3.connect('test.db')
### move this part under context manager
cur = con.cursor()
data = cur.execute("SELECT * FROM stocks")
for record in data:
print(record)
###
con.close()
| [
"andrii.diemientiev@beetroot.se"
] | andrii.diemientiev@beetroot.se |
36c5f561ec1c9596b288eb22e197ddb50c6f4fac | 7ae25ddf7ef0e5dc748ec8006c9830a388989700 | /CustomUser/migrations/0001_initial.py | 7d53f07793ccb590f6e0122fbdb084c75a6d7d10 | [] | no_license | ernesto-licea/ResMan | c0f2eb6a2d6a476d6d3ba12a2a4aa20a90367d18 | 1d5daf2ffb327b91ad41bc4a81f2c3d39f94cfed | refs/heads/dev | 2022-07-06T00:00:33.407783 | 2020-06-30T20:12:11 | 2020-06-30T20:12:11 | 157,600,953 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 9,197 | py | # Generated by Django 2.1.3 on 2018-11-21 19:29
import CustomUser.models
from django.conf import settings
import django.contrib.auth.validators
from django.db import migrations, models
import django.db.models.deletion
import django.utils.timezone
class Migration(migrations.Migration):
initial = True
depend... | [
"ernesto.licea@gmail.com"
] | ernesto.licea@gmail.com |
38c7db2f3e9e2e931c2030a513517576edad3dc2 | 594d2a2b90dd0dbed23046c3fd6a7781ed7656c0 | /utils/pre_processing.py | 40fc7481e44a76db1420a34706643885b4ad6cff | [] | no_license | Dmitriuso/translate_fnet_github | 5cb9047e741fcee33a5c2803773c872f0d9b4999 | 1a517d796a27a84faa4f6bf707bff690ce01ac14 | refs/heads/master | 2023-07-29T03:53:02.384408 | 2021-09-09T15:41:54 | 2021-09-09T15:41:54 | 401,340,847 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,256 | py | import spacy
import torch
import torchtext
from torchtext.legacy.datasets import Multi30k
from torchtext.legacy.data import Field, BucketIterator, TabularDataset
spacy_de = spacy.load('de_dep_news_trf')
spacy_en = spacy.load('en_core_web_trf')
def tokenize_de(text):
"""
Tokenizes German text from a string in... | [
"dmitri.osipov@lexistems.com"
] | dmitri.osipov@lexistems.com |
e66f1215486fcffb635acea5ebf1bfb501c952b4 | 30082a4d11e9ee63ce4fc08b163fb747791415e1 | /draws_plus.py | eba103066b83c8eb681ef55d14d059b41c27251b | [] | no_license | vonsago/Python3_study_note | cb2c11f0b39fded78bde59a78a7ee00c8cf93dd0 | b186c840bbaa931332cde0dc8604273f8e3e0010 | refs/heads/master | 2021-01-22T21:00:42.913981 | 2020-04-16T02:58:40 | 2020-04-16T02:58:40 | 85,387,237 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 464 | py | import turtle
def draw_square():
window = turtle.Screen()
window.bgcolor("black")
pet = turtle.Turtle()
pet.speed(40)
pet.shape("turtle")
pet.color("white")
apet=turtle.Turtle()
apet.shape("turtle")
apet.color("pink")
apet.speed(20)
for x in range(36):
for i in range(4):
pet.forwar... | [
"noreply@github.com"
] | vonsago.noreply@github.com |
cdd0c0cd75ad9ee6cc2d2b6ffa6a5408869cc5ee | f77f24c17f122d0b3477211d3c3edd89250af067 | /src/main/views/hashbuf.py | 1d10c7094f2387bcc6254e5de48d7e8b0f8a9e3f | [
"Apache-2.0",
"MIT"
] | permissive | jonm/gae-atompub-server | ed324b9a77204226b3c32c24a961522dbd433364 | a7bd6e16998aabe627f87976217c4ff8fc75f1c7 | refs/heads/master | 2021-01-01T19:35:18.777097 | 2014-01-02T14:51:39 | 2014-01-02T14:51:39 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,910 | py | # Copyright 2013 Jon Moore
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, s... | [
"jonm@jjmoore.net"
] | jonm@jjmoore.net |
330d6ba8bd23fbbe890afd75cc61aab8d730c59b | d82704b67d9fbe20c39f86925fad1dbb46f98041 | /Main.py | ccf67a30f6b15a22755f93fa163202e3c97223ba | [] | no_license | rokitka007/pytpoz01 | 29e661e0bd7ec766cb4563b8bae392dea9d7feaa | 397c32ed64bb2bb7f9202ca5179fa39f63c87fd1 | refs/heads/master | 2020-05-30T15:35:31.937853 | 2019-06-02T13:32:27 | 2019-06-02T13:32:27 | 189,824,099 | 0 | 0 | null | 2019-06-02T13:32:28 | 2019-06-02T08:46:25 | Python | UTF-8 | Python | false | false | 505 | py | from Account import Account
from Card import Card
if "__main__" == __name__:
acoount = Account("Jan Kowalski", 2583)
card = Card(acoount, 1234)
print("Account owner is: " + acoount.getOwner())
print("Account number is: " + acoount.getNumber())
acoount.transfer(1500)
print("Account balance is:... | [
"k.popielarczyk91@gmail.com"
] | k.popielarczyk91@gmail.com |
feaa80f97b531ebedc54189d24bdbbe9153ea7f9 | eec24ae4df7ac793da8eac67bbebb3523215c57d | /projects/07/VMTranslator/vm_translator.py | c176f7a2b568db3a3ff79916580ba366d891d3e6 | [] | no_license | wholfeld/NandToTetris | 6fa30a1c250b7f37afd7ab504365e95da3c048fc | 51cac02fb08954d2c1d5de852f32b832f3325be5 | refs/heads/master | 2023-01-03T12:13:37.016729 | 2020-10-22T01:17:18 | 2020-10-22T01:17:18 | 260,814,639 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,329 | py | import sys
from pathlib import Path
from vm_parser import VMParser
from vm_codewriter import VMCodewriter
def format_folder(folder_name: str) -> str:
# folder_name = folder_name.lower()
return f'../{folder_name}'
def get_files_location() -> str:
# Open files in folder.
folder_location = format_folde... | [
"warrick87@gmail.com"
] | warrick87@gmail.com |
194ea14eaf4b23e565969d666db913b837eb3d1e | 0f16edb46a48f9b5a125abb56fc0545ede1d65aa | /doc/rst/conf.py | fee0a9988b79286c7831cf83dfe3e0e67b8e42df | [
"Apache-2.0"
] | permissive | DataONEorg/d1_python | 5e685f1af0c356190f2d6df45d1ac849e2f56972 | d72a9461894d9be7d71178fb7310101b8ef9066a | refs/heads/master | 2023-08-29T03:16:38.131760 | 2023-06-27T21:59:37 | 2023-06-27T21:59:37 | 60,103,877 | 15 | 12 | Apache-2.0 | 2023-09-06T18:27:53 | 2016-05-31T16:01:00 | Python | UTF-8 | Python | false | false | 6,408 | py | # This work was created by participants in the DataONE project, and is
# jointly copyrighted by participating institutions in DataONE. For
# more information on DataONE, see our web site at http://dataone.org.
#
# Copyright 2009-2019 DataONE
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you ma... | [
"git@dahlsys.com"
] | git@dahlsys.com |
6bab61d7e4263cca5c42e459d4717da173b3b8a7 | 163d0b1205ff608ae7bad9d37133828ae9a62a7f | /run.py | 18e7a62a68086050e4eec884028904efed916cdb | [] | no_license | Curiouskid0423/Club-Air | 038d56315a71eff38e2886a2306e2570e8bfeff8 | c54152a642045b3684fb98699a77bfdfb6ff47da | refs/heads/master | 2020-04-14T10:29:03.310182 | 2019-09-05T20:16:22 | 2019-09-05T20:16:22 | 163,788,224 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 122 | py | from flaskBlog import app
# will automatically take __init__.py file
if __name__ == '__main__':
app.run(debug=True)
| [
"kevinli042389@gmail.com"
] | kevinli042389@gmail.com |
f36dbd719cbfed21b7521676e7ce922391d062f4 | 9277d6cc8a295d9eb1467105d21b013eb98539e8 | /awsterraformecs/venv/bin/easy_install | 44d5b08733e04254e26c04330e11b1712a09be1d | [] | no_license | Geoff89/djangodevops | 4aab215cb0e68719ed3b5b8912c9cab0aeebfd58 | 323d8d8dbc9b0b6293140a9dc628277ac107b436 | refs/heads/main | 2023-07-02T19:26:01.686910 | 2021-07-27T08:05:35 | 2021-07-27T08:05:35 | 389,898,193 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 282 | #!/home/jeff/Desktop/djangodevops/awsterraformecs/venv/bin/python3
# -*- coding: utf-8 -*-
import re
import sys
from setuptools.command.easy_install import main
if __name__ == '__main__':
sys.argv[0] = re.sub(r'(-script\.pyw?|\.exe)?$', '', sys.argv[0])
sys.exit(main())
| [
"saginigeoffrey@gmail.com"
] | saginigeoffrey@gmail.com | |
57502ecd1d88cf997c4b70a179256c8d58f69ed6 | 9d8acc20d2ee1d1957849dfb71c22e0dae2d8c5c | /baomoicrawl/venv/Lib/site-packages/twisted/internet/iocpreactor/reactor.py | fcb4aa331cc7f1798f284ef1cc49bc7c67159a3c | [
"MIT",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | thuy4tbn99/TranTruongThuy_17021178_Nhom4_Crawler | b0fdedee2942a12d9f64dfed93f43802dc5ab340 | 87c8c07433466bbc43a24ea089f75baeb467c356 | refs/heads/master | 2022-11-27T21:36:33.917491 | 2020-08-10T23:24:42 | 2020-08-10T23:24:42 | 286,583,216 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 9,463 | py | # -*- test-case-name: twisted.internet.test.test_iocp -*-
# Copyright (c) Twisted Matrix Laboratories.
# See LICENSE for details.
"""
Reactor that uses IO completion ports
"""
import warnings, socket, sys
from zope.interface import implementer
from twisted.internet import base, interfaces, main, error
... | [
"thuy4tbn99@gmail.com"
] | thuy4tbn99@gmail.com |
568cd9494daecdf3221f450f038d6c3b0016be66 | eaad00e625bbc9c1276f3dd157a551093179bf63 | /diffusionconfusion/old.py | 646143b90c945bd83a6908bb726e39c4c6cd86aa | [
"MIT"
] | permissive | Ruben-Krueger/DiffusionConfusion | e4dd8a9c18e79062108120d5b85328c2cc37ffad | bc6b795f7b741b2f730db35ae6157be326251376 | refs/heads/main | 2023-01-14T06:38:28.223277 | 2020-11-21T07:44:30 | 2020-11-21T07:44:30 | 307,003,876 | 0 | 0 | MIT | 2020-11-18T08:18:45 | 2020-10-25T01:40:01 | Python | UTF-8 | Python | false | false | 1,979 | py |
# Four major factors interact to affect blood pressure:
# cardiac output, blood volume, peripheral resistance, and viscosity
import numpy as np
class Tissue():
def __init__(self, nX, nY, c_0, k_b, k_t, t = 0):
self.nX = nX
self.nY = nY
self.c_0 = c_0
self.c = c_0
self.t =... | [
"34781887+Ruben-Krueger@users.noreply.github.com"
] | 34781887+Ruben-Krueger@users.noreply.github.com |
e7348dc6911c9e728976279430b072574c0b76eb | 884112003b7bd1e200325bba3e3ac9a2f9d3ea8b | /applications/network/giftcurs/actions.py | 6a6df4bacb251e3247ce119c781a3dae547d4105 | [] | no_license | pars-linux/pardus-1.0 | e1a4049c17ac9f2fbc2ae50c61d81c15e03e5823 | 4d2196b7558b3870908e799e02568ee9a6eee419 | refs/heads/master | 2021-01-24T19:12:02.809085 | 2006-06-14T07:07:39 | 2006-06-14T07:07:39 | 82,460,626 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 518 | py | # Software Foundation; either version 2 of the License, or (at your option)
# any later version.
#
# Please read the COPYING file.
#
from pisi.actionsapi import autotools
from pisi.actionsapi import pisitools
from pisi.actionsapi import get
WorkDir = "giFTcurs-0.6.2"
def setup():
autotools.configure("--enable-nls... | [
"me@barismetin.com"
] | me@barismetin.com |
a204884acab08f712678c840bab689bf04f996c3 | 1ada3010856e39c93e2483c960aa8fc25e2b3332 | /Binary Tree/DiameterOfBT.py | accf7d2fa64c600f094487d5b2cfaf5cc85c7837 | [] | no_license | Taoge123/LeetCode | 4f9e26be05f39b37bdbb9c1e75db70afdfa1b456 | 4877e35a712f59bc7b8fffa3d8af2ffa56adb08c | refs/heads/master | 2022-02-24T20:09:21.149818 | 2020-07-31T03:18:05 | 2020-07-31T03:18:05 | 142,700,689 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 711 | py | class Node:
def __init__(self, data):
self.data = data
self.left = None
self.right = None
def height(node):
#Base case
if node is None:
return 0
return max(height(node.left), height(node.right)) + 1
def diameter(node):
if node is None:
return 0
lHe... | [
"taocheng984@gmail.com"
] | taocheng984@gmail.com |
7e50b982c8be1be501e6c301090f02c5bca1f434 | 845f2d0ec55d823221717d8ee8516f4ceeb0f39b | /src/ifood/model/order/order.py | 8cd2eaafec6aec92420a704815195bec0c6d5143 | [
"MIT"
] | permissive | alancamillo/sdk-ifood-python | 8b1b266e8f670bd9b12b83396605e0e5d207f4a3 | e74cd3ad02902d2261848b96f60bca52184678b2 | refs/heads/main | 2023-04-05T20:46:28.267302 | 2021-04-10T19:44:12 | 2021-04-10T19:44:12 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,993 | py | from datetime import datetime
from uuid import UUID
from typing import List
from ifood.utils import auto_str
from ifood.serializer import IfoodSerializable
@auto_str
class Phone:
number: str
localizer: int
localizer_expiration: datetime
@staticmethod
def unserialize(dict=None):
if dict i... | [
"duartemicael32@gmail.com"
] | duartemicael32@gmail.com |
a7c3a9bde2523900eaac0dfbcb31d7321562a11e | 726f3867bf979169aa796ba1dbe0969034e069e6 | /prescient/plugins/internal.py | 5eafee2a16c1109dcdb9f61bb2dfd3e19be04d72 | [
"BSD-3-Clause"
] | permissive | shrivats-pu/Prescient | faf8bca4fd705ec305c025088e23c6d5f4ce5456 | 3d4238e98ddd767e2b81adc4091bb723dbf563d3 | refs/heads/main | 2023-08-27T18:44:32.415590 | 2021-10-13T15:48:40 | 2021-10-13T15:48:40 | 373,965,099 | 1 | 0 | NOASSERTION | 2021-06-04T21:40:40 | 2021-06-04T21:40:40 | null | UTF-8 | Python | false | false | 2,402 | py | # Code that is not intended to be called by plugins
# The parser instance affect by plugins modifications
active_parser = None
# The instance of the PluginCallbackManager that handles
# calls to plugin_registration methods
active_plugin_manager = None
# stats callbacks registered by plugins but not yet
# added as su... | [
"djmelan@sandia.gov"
] | djmelan@sandia.gov |
b5beb73745533b98bffeb5eca86522ec952d4565 | 2b4bd58e431f4451c3e38545ba31e4ff9fba1bf1 | /regresionsimple.py | c6cffb899172b5d310d8ba500b4f0475d6c63353 | [] | no_license | allangit/python | 5ccd72fc915e68585f3555e589e920a30c16eb6f | 29d928574a2e9b610d6949d37d560ee4456fd610 | refs/heads/master | 2020-06-11T16:48:36.275149 | 2019-06-27T05:40:56 | 2019-06-27T05:40:56 | 194,028,389 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 796 | py | import matplotlib.pyplot as plt
import numpy as np
import pandas as pd
import statsmodels.formula.api as smf
data=pd.read_csv("Advertising.csv")
print data.head()
lm=smf.ols(formula="Sales~TV",data=data).fit()
parametros=lm.params
print parametros
p_valor=lm.pvalues
print p_valor
R2=lm.rsquared
print R2
Rajust=lm.rsq... | [
"descartes640@gmail.com"
] | descartes640@gmail.com |
86eb498a11d2976b86d4a360f3bb02659b0859cc | ff4aa7c3b1f0a4d0d360ecc524610d5e632abbee | /Tools/Scripts/webkitpy/webdriver_tests/webdriver_w3c_executor.py | 139e3a40b793b9954d2b3ef23752e06d2322f62f | [] | no_license | winer110/webkit | 3d2a2a01f2640217096a6ffea1c7370c6c2c95bd | 337621e9cfeb2212739ea2a2c4ea613ed8d02b68 | refs/heads/master | 2023-03-06T01:56:24.741151 | 2018-01-13T01:11:34 | 2018-01-13T01:11:34 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,673 | py | # Copyright (C) 2017 Igalia S.L.
#
# Redistribution and use in source and binary forms, with or without
# modification, are permitted provided that the following conditions
# are met:
# 1. Redistributions of source code must retain the above copyright
# notice, this list of conditions and the following disclaimer.... | [
"carlosgc@webkit.org@268f45cc-cd09-0410-ab3c-d52691b4dbfc"
] | carlosgc@webkit.org@268f45cc-cd09-0410-ab3c-d52691b4dbfc |
504400f2abd924ce881a92efe6772642d1acfea3 | 710edacc3f52b3f197e2e4c1ac945a90eff532eb | /MyTkinter程序/学生档案管理+课程信息管理(MySQL)/login.py | 67c0a4ff8bf9c3dac4f26abed8f9abe8a107e62b | [] | no_license | laggage/rainbow | b338787b97d84288828c423cf006b718dbbf332e | 8b89a9f438bff4659b30c769e9efc294033dd7bc | refs/heads/master | 2023-08-07T23:41:44.155187 | 2021-09-17T08:59:34 | 2021-09-17T08:59:34 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,186 | py | import socket
import tkinter
from tkinter import *
from tkinter import messagebox
from common import *
import main_page
import register
USERNAME = 'username'
PASSWORD = 'password'
RETURN = '<Return>'
class LoginFrame(object):
@staticmethod
def set_users():
users, msg = mysqltool.select(mysqltool.co... | [
"tanxiaohui@itiger.com"
] | tanxiaohui@itiger.com |
d95d507ad3998b370aac69c290d2aaa732a56260 | 25eb8ff8e4ea148a9ffed20576085eca152e790c | /init.py | fd407e170a6f4a54c367d896e3724765f9b7829a | [] | no_license | akky-1729/Jenkins | 21ded2ca57d676477aab1c88e772ff60ecafae77 | 5f0c18467d70760ed539ca0d5da9f67bef093b4f | refs/heads/main | 2023-03-30T18:34:59.974341 | 2021-04-14T05:12:14 | 2021-04-14T05:12:14 | 355,422,112 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 55 | py | print("Hello World")
print(">>>>>>>")
print("Goodbye")
| [
"noreply@github.com"
] | akky-1729.noreply@github.com |
c0897b47c4efd14df68a3e163ec7f79ba73fd76c | 783c8bb92754c3e9648411f719cc91d4561635b8 | /Set-2/ECB-cut-and-paste/solve.py | ef3e0e5731083e564fb195b9a381cc866dcb2713 | [] | no_license | aiviaghost/Cryptopals | 5fbf38bf682307ba9136747967178d7d1f10d930 | 247db9ffbdf7011e993c5a19368005fead796400 | refs/heads/main | 2023-07-19T11:00:54.927372 | 2021-09-11T21:26:34 | 2021-09-11T21:26:34 | 313,156,922 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,603 | py | from Profile_service import Profile_service
from base64 import b64encode, b64decode
"""
Standard format:
email={user controlled data}&uid=10&role=user
Goal:
<---16 bytes---> <---16 bytes---> <---16 bytes--->
email=aaaaaaaaaa aaa&uid=10&role= admin\x0b...\x0b
<-------------------------------> <-------------->
... | [
"48349394+aiviaghost@users.noreply.github.com"
] | 48349394+aiviaghost@users.noreply.github.com |
e9434fd533cdb3f821b1e588881b7f334223be83 | fad3aec87a2ebcc80a13d8333832f6a1e4a3a3a8 | /ELearning/courses/api/views.py | 02983de6aea12293c5a13987504421839f708b02 | [] | no_license | EricStone1900/Django-pro-k12 | eccf0dca3a247209e6a3b733282eb90fe8152d20 | 45436fe2f141fb02f064b73ff6af7933de0a17d2 | refs/heads/master | 2022-01-17T04:53:34.291872 | 2019-07-21T06:22:05 | 2019-07-21T06:22:05 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,700 | py | from rest_framework import generics
from ..models import Subject
from .serializers import SubjectSerializer
from django.shortcuts import get_object_or_404
from rest_framework.views import APIView
from rest_framework.response import Response
from ..models import Course
from rest_framework.authentication import BasicAuth... | [
"root@LA4.com"
] | root@LA4.com |
5f9dd4e1f1529a25dd821e8a2beae07110b3ecb3 | 155affe885d14d471b2390dc726e072e7b1db630 | /usr/lib/enigma2/python/mytest.py | 9ed240ee13e84633329bd93cbd1bc33d9a3ae3c9 | [] | no_license | kingvuplus/ME-3 | f495e2807f23e271c4b3e2f685cbecf53621d3ae | 4d29c1bf48452e56de8f684ce7e2698c0f24e42b | refs/heads/master | 2016-08-10T10:50:01.558878 | 2016-02-27T03:28:18 | 2016-02-27T03:28:18 | 52,610,152 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 22,555 | py | import sys
import os
from time import time
if os.path.isfile("/usr/lib/enigma2/python/enigma.zip"):
sys.path.append("/usr/lib/enigma2/python/enigma.zip")
from Tools.Profile import profile, profile_final
profile("PYTHON_START")
import Tools.RedirectOutput
import enigma
from boxbranding import getBrandOEM, getBoxType... | [
"r80@live.fr"
] | r80@live.fr |
b2ed75fc2dd45b549a10e1f9b92517347b9ce86b | 303a7b8bee255e87215c1eae7818600c2d19cef0 | /soma.sh | f69dca5fb8a714d62b461036a68881320550cede | [
"MIT"
] | permissive | olaf7/poc-soma | 5a4d91b0283e0fc4070015554cb29a51928b01ee | 05d2cab8d69fc10679b241be609def85cd895874 | refs/heads/master | 2023-06-14T10:27:20.101972 | 2021-07-05T12:58:12 | 2021-07-05T12:58:12 | 370,421,279 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,862 | sh | #!/usr/bin/env python3
# (c) Olaf Zevenboom 2021
# version 0.1
# MIT License
# use at own risk
import requests
import json
SomaConnect="192.168.178.116"
SomaConnectPort=3000
# https://support.somasmarthome.com/hc/en-us/articles/360026064234-HTTP-API
# note: may change without notice!
# currently no way to query soma... | [
"olaf_7@yahoo.com"
] | olaf_7@yahoo.com |
0f753f41af1669ba6d8e611afb2de2eb456186a1 | 72a3d0f75e64386dd46f18d27a2f1d8790aab0d7 | /conf.py | 6df25d3a4137a90404b8ffc76d40551bd699b31c | [
"MIT"
] | permissive | hyperchi/alphagozero | 4b783fd81b2f36e00764a8e7c51806385ec58ee6 | c5ba610702ca8befd003d738621250da30d1b7a3 | refs/heads/master | 2021-05-06T04:57:36.920882 | 2017-11-25T16:11:33 | 2017-11-25T16:11:33 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,937 | py | from math import sqrt
conf = {
'MODEL_DIR': 'models',
'LOG_DIR': 'logs',
'GAMES_DIR': 'games',
'BEST_MODEL': 'best_model.h5',
'SHOW_EACH_MOVE': False,
'SHOW_END_GAME': False,
### MODEL ###
'N_RESIDUAL_BLOCKS': 20, # Size of the tower of residual blocks, 20 for small model, 40 for alphag... | [
"nicolas@kwyk.fr"
] | nicolas@kwyk.fr |
37dc5397d508b401c12d7e0c3025929b02c9ae5c | 33cc54e2844468b50b39a1acbd204207b1e34845 | /RoomReservation/hotel.py | b98b6ad274c2ce924dd619c3d956cea1a1994d19 | [] | no_license | NagaraniR/Assessment | c3d03bf4a30e9dcc07433deac7862fa4cca2e8ee | 9e8fade9d6d30d9ea8206d7db234e2f214c48a4a | refs/heads/master | 2021-09-04T05:59:38.471645 | 2018-01-05T13:39:24 | 2018-01-05T13:39:24 | 114,630,324 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 841 | py | import operator
class Hotel:
def __init__(self, name, rating):
self.name = name
self.rating = rating
self.price_details = []
self.hotel_rate = ""
def add_price_details(self, regular_weekday, regular_weekend, reward_weekday, reward_weekend):
self.price_details.append(r... | [
"nagaraniraja9677@gmail.com"
] | nagaraniraja9677@gmail.com |
113ffbcabf72b96ff950c9973a922243f540df6a | 53fab060fa262e5d5026e0807d93c75fb81e67b9 | /backup/user_216/ch50_2020_09_23_01_25_05_690150.py | 3c21d662ff00c1e961bde777d852f3f46d55eb93 | [] | no_license | gabriellaec/desoft-analise-exercicios | b77c6999424c5ce7e44086a12589a0ad43d6adca | 01940ab0897aa6005764fc220b900e4d6161d36b | refs/heads/main | 2023-01-31T17:19:42.050628 | 2020-12-16T05:21:31 | 2020-12-16T05:21:31 | 306,735,108 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 198 | py | def junta_nome_sobrenome(nomes,sobrenomes):
e = ' '
resposta = []
i = 0
while i < len(nomes):
resposta.append(nomes[i] + e + sobrenomes[i])
i += 1
return resposta | [
"you@example.com"
] | you@example.com |
237654bd59fb6579cded5d4ac87c670ef14a62fd | 5c0acc5ddf9fab98f52a4aba942c1a886e5ff4fc | /Year 4/Dissertation (Python)/Predict stocks prices using neural netwoks/FeedForwardNeuralNetwork.py | ca20937596af8372034ac829db2541304aae29c3 | [] | no_license | MatenRehimi/University | 6e9060f483eda59bb47755ba7d3041bbcd27a7ca | a62d8726b58f911490223aab0e044da0b3ae2e1b | refs/heads/main | 2023-06-20T11:13:04.359346 | 2021-07-18T17:54:32 | 2021-07-18T17:54:32 | 385,974,914 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,238 | py | import pandas as pd
import numpy as np
import matplotlib.pyplot as plt
from tensorflow.keras.models import Sequential
from tensorflow.keras.layers import Conv1D,MaxPooling1D, Flatten, Dense,Activation,BatchNormalization,LayerNormalization,Dropout
from sklearn.metrics import mean_squared_error
class FeedForwardNeuralNe... | [
"matenrehimi@hotmail.com"
] | matenrehimi@hotmail.com |
04ba2466bf4436337b531a180db0e5787728c165 | 3df253504e0515cd6521abbb1b34417e1c012e56 | /source/conf.py | c1e79774eccf153a01d83e148de32b392e4300b5 | [] | no_license | forgeries/pycharm-guide | a4095b4924427d63249a87213030cf33c455da66 | 636466e05bc7dd594ede53db152c735e171314e1 | refs/heads/master | 2022-12-07T22:05:12.227888 | 2020-08-26T14:59:13 | 2020-08-26T14:59:13 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,242 | py | # -*- coding: utf-8 -*-
#
# python3-cookbook documentation build configuration file, created by
# sphinx-quickstart on Tue Aug 19 03:21:45 2014.
#
# 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 fi... | [
"wongbingming@163.com"
] | wongbingming@163.com |
44c3fa1c83d5db1ae74410a74e75b0018d130751 | 45a35de4808d9448d2a8a414dc67f8bcb9496215 | /triangle_transform.py | d2914865bae79385421a96cb7f8188d3769b6793 | [] | no_license | pageoty/code | a33c170ac56e2cc8437e5c5a64ba4889a5f722ca | 9a82624a3c59aecc2ed9b9813195c600e73126c4 | refs/heads/master | 2021-12-18T04:42:15.162730 | 2021-12-06T14:04:01 | 2021-12-06T14:04:01 | 247,019,543 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,189 | py | # -*- mode: python -*-
"""A plotting class to plot three-part composition from tabular data.
Written by C. P. H. Lewis while at the University of California, Berkeley, 2008-2009. """
from matplotlib.axes import Axes
from matplotlib.mlab import csv2rec
from math import sqrt
from matplotlib.mlab import load
import m... | [
"pageoty@cesbio.cnes.fr"
] | pageoty@cesbio.cnes.fr |
d14f31ac07279cce23450a388ef67a5cddc92c51 | 64145af9d3f7462a9e7b8d4a94d1d071b3e6e173 | /SimplexUI/menu/mayaPlugins/freezeCombo.py | 9dfa77535f893241399048cb433dbb6707676bf9 | [] | no_license | hooplee5/Simplex | 16d6e04424f4195921505d2c574a8af2ffeff206 | be8c139747e22a45ceb39d7e1e6b5f7b23146ccf | refs/heads/master | 2022-09-18T03:02:04.006143 | 2020-05-26T21:09:59 | 2020-05-26T21:09:59 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,968 | py | # This file is part of Simplex.
#
# Simplex is free software: you can redistribute it and/or modify
# it under the terms of the GNU Lesser General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
# (at your option) any later version.
#
# Simplex is distributed in... | [
"tyler@blur.com"
] | tyler@blur.com |
041e262947c9bf7972e3fb50938ddef32cf407cc | 8ed4bf9fbead471c9e5f88e4d18ac432ec3d628b | /hackerrank/algorithm/implementation/bonetrousle.py | f757a2dcc98a7f8c3969b716375b3557e543a413 | [] | no_license | hizbul25/programming_problem | 9bf26e49ed5bb8c9c829d00e765c9401222fb35c | 2acca363704b993ffe5f6c2b00f81a4f4eca7204 | refs/heads/master | 2021-01-10T22:28:26.105787 | 2018-01-21T16:45:45 | 2018-01-21T16:45:45 | 65,394,734 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,109 | py | # Problem URL: https://www.hackerrank.com/challenges/bonetrousle
firstLine = int(input())
for a in range(0, firstLine):
nums = input()
numsArr = list(map(int, nums.split(" ")))
n = numsArr[0]
k = numsArr[1]
b = numsArr[2]
num1 = 0
rem = 0
answer = True
remAdded = False
count ... | [
"hizbul.ku@gmail.com"
] | hizbul.ku@gmail.com |
a395b77ad9d196ded3e42ab16c37f826da4f642c | c0afccdb4540191d9b0def73fbc4b37002a08280 | /pyenv/bin/wheel | 83d69d9f945fb2fda5d68dc122ed1f3b5dbd1596 | [
"MIT"
] | permissive | bhuvana87/video-annotation-store | 9e8698f518ef44b5f6e0332519e12eed83d471cf | a4c51a31fda8f18dfae2603d5a0bdae7702a2442 | refs/heads/master | 2020-12-02T22:06:14.302938 | 2017-07-03T07:41:44 | 2017-07-03T07:41:44 | 96,083,572 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 261 | #!/var/www/html/JD/Video_Proofing/annotator-store/pyenv/bin/python2
# -*- coding: utf-8 -*-
import re
import sys
from wheel.tool import main
if __name__ == '__main__':
sys.argv[0] = re.sub(r'(-script\.pyw|\.exe)?$', '', sys.argv[0])
sys.exit(main())
| [
"bhuvaneswari.n@2adpro.com"
] | bhuvaneswari.n@2adpro.com | |
ec8803046d00e53caee0338e9aeffa5e83f59511 | 1a72000734d68b73ae1a08f1b0022a3ff332dbec | /clr.py | b8a52283d4a8d5a972c5fbb23ebb20ad7ff30575 | [] | no_license | hsmaurya/Restaurant-Billing-System | 740f96b3ccc421b3e53b34dbefba86d9fb8ec9c3 | eaefab0a26259594ed849063ad0ecba3dfa56089 | refs/heads/main | 2023-08-25T01:45:20.824678 | 2021-10-20T15:58:00 | 2021-10-20T15:58:00 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 21,046 | py | from tkinter import *
import time
import datetime
import random
root =Tk()
root.geometry("1650x750+0+0")
root.title("Billing System")
root.configure(background='light pink')
Tops = Frame(root,bg='light pink',pady=5)
Tops.pack(side=TOP)
lblTitle=Label(Tops,font=('arial',60,'bold'),text='Billing System',b... | [
"noreply@github.com"
] | hsmaurya.noreply@github.com |
ecc5a840574e9af6b0edde4243130924ca2e410b | 5e556e9bae5399f00934ce356ab8da7f46a1bb80 | /ICP2/StringAlternative.py | 134223beb891fb8235e741f71736ba0deae81dbf | [] | no_license | himaja29/Python_Programming | 7c706180a177f92ce24becbeb4ca0c4fc4edfc6f | ef0fe0497c3907c137eeaeb207b57b431e9bbb17 | refs/heads/master | 2022-11-23T07:13:10.204524 | 2020-07-24T19:54:39 | 2020-07-24T19:54:39 | 271,061,450 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 193 | py | str = input("Enter String : ")
def stringAlternative(str):
temp = ""
for i in range(len(str)):
if(i%2)==0:
temp = temp+str[i]
print(temp)
stringAlternative(str) | [
"41412661+himaja29@users.noreply.github.com"
] | 41412661+himaja29@users.noreply.github.com |
676a9a30cf2361110125fc794197ee1ffd437189 | 3ac558b35848a6b0cd8c9fbed8d9dd234e247ac4 | /tpm2_pytss/makecred.py | 2c16512032c2006d7ac485724e1e688904f8625a | [
"BSD-2-Clause"
] | permissive | galmasi/tpm2-pytss | 0b14d8da2dd01b700282f34d6bd31204693d516c | d77d863015f149cd26d4a523ab92e51492775d42 | refs/heads/master | 2023-06-27T20:01:53.161624 | 2021-07-29T21:27:37 | 2021-07-30T17:18:55 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,821 | py | from .crypto import (
kdfa,
kdfe,
public_to_key,
_get_digest,
symdef_to_crypt,
)
from .types import *
from cryptography.hazmat.primitives.asymmetric import padding
from cryptography.hazmat.primitives.asymmetric.ec import (
ECDH,
generate_private_key,
)
from cryptography.hazmat.primitives.hma... | [
"william.c.roberts@intel.com"
] | william.c.roberts@intel.com |
0a76e6a4182f33b8d7133076683717f8eb4bb562 | 9ac86f354bd71fd35eb446e1a893ff757b3f6dfe | /web_scrapper/main.py | fa0ed8c30d7d2519531e5b8ff1fa21e95111231b | [] | no_license | kmiiloberrio-dev/data-engineering | 6b6354dab37fa1d27eb42e972fa3fdb37516fe63 | 94bb4e27707bdf1f970541ff4410606af0973551 | refs/heads/master | 2022-03-01T11:38:51.825915 | 2019-07-29T15:54:03 | 2019-07-29T15:54:03 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,929 | py | import argparse
import logging
import re
import news_page_objects as news
from common import configuration
from requests import HTTPError
from urllib3.exceptions import MaxRetryError
logging.basicConfig(level=logging.INFO)
logger = logging.getLogger(__name__)
is_well_formed_url = re.compile(r'^https?://.+/.+$') # h... | [
"kmiiloberrio@gmail.com"
] | kmiiloberrio@gmail.com |
44ec018f5382b71053ac6c90399ede49c9e7b545 | cb6161460517e49eeaa4281807ca95e2ccedf906 | /venv/bin/python-config | e731632fdfce54921ff10e09ab0604e1b46f8f2c | [] | no_license | jrferrera/artikulo | 2c311a3e123f5d486cb7472af5eb889461e1e43e | 95488fedd0f28c46789381d936bccd44122dd6cd | refs/heads/master | 2021-03-24T13:01:51.317597 | 2018-03-02T06:44:56 | 2018-03-02T06:44:56 | 123,535,451 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,380 | #!/home/jeffersonferrera/Dropbox/Stratpoint/Python/artikulo/venv/bin/python
import sys
import getopt
import sysconfig
valid_opts = ['prefix', 'exec-prefix', 'includes', 'libs', 'cflags',
'ldflags', 'help']
if sys.version_info >= (3, 2):
valid_opts.insert(-1, 'extension-suffix')
valid_opts.appen... | [
"jrferrera17@gmail.com"
] | jrferrera17@gmail.com | |
a5d25833bfd90a21e26d867fcd9fd9f5f2571420 | 326cecfb95adad65c6d25437bd893b75ddfc7b87 | /make_annotation/keypointRCNN_one.py | 670ce376c8d7dafba9a75ab4dde9fe1d7576c978 | [] | no_license | khw11044/VC_PJ | 8f65d44ee5bf124e0d870e2f6a83316e51e19d88 | 18f7192a262f014655a348c170e7a6cae4093142 | refs/heads/master | 2023-04-23T19:00:53.970952 | 2021-05-18T09:04:30 | 2021-05-18T09:04:30 | 368,465,067 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,676 | py | import torch
import torchvision
from torchvision import models
import torchvision.transforms as T
import cv2
import numpy as np
import argparse
parser = argparse.ArgumentParser(description="tracking demo")
parser.add_argument('--file', default='imgs/swing005_106.png', type=str,
help='videos or i... | [
"khw11044@gmail.com"
] | khw11044@gmail.com |
6b8f6dbf41521d7d6397fdaf4ef3af2ad4fcc709 | 0d9c964fd7644395a3f0763f484e485fcc67f762 | /new/src/13.03.2021/OOP_ Змейка.py | 92f0fa1f4d92712f47d0aa2dcf595724363bb77d | [
"Apache-2.0"
] | permissive | VladBaryliuk/my_start_tasks | eaa2e6ff031f2f504be11f0f64f5d99bd1a68a0e | bf387543e6fa3ee303cbef04d2af48d558011ed9 | refs/heads/main | 2023-04-14T14:00:08.415787 | 2021-04-24T13:47:38 | 2021-04-24T13:47:38 | 354,538,499 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,801 | py | from tkinter import *
import random
# Создаем окно
root = Tk()
# Устанавливаем название окна
root.title("Змейка на PYTНON")
# ширина экрана
WIDTH = 800
# высота экрана
HEIGHT = 600
# Размер сегмента змейки
SEG_SIZE = 20
# Переменная отвечающая за состояние игры
IN_GAME = True
# создаем экземпляр класса Canvas (его м... | [
"vladmain9@gmail.com"
] | vladmain9@gmail.com |
0922a16dd2cacc23c8c92cdfddbe8f7cf93ac3b3 | eef4d2330edb808acdb82b92621f927db4911dda | /CURSOR/Batman/8/8.2.py | a2c0c3111209aabce9e3aec7d076b233909bc78b | [] | no_license | OkS369/Education | 648308c755dab6e8510c507211005f34cbed495d | c44f6b0223b567753089627056429d1f4dab7368 | refs/heads/master | 2023-05-24T06:31:10.869633 | 2021-06-15T13:52:23 | 2021-06-15T13:52:23 | 225,942,342 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 71 | py | n = 0
while n < 21:
print (f'2^{n} = {2**n}')
n += 1
| [
"romanincognito17@gmail.com"
] | romanincognito17@gmail.com |
d8de5633cb7ce084d0a8466f4b4f8d700640b44d | ba341b4e9e2f1ada14e60e9bc5d2c525a5109f1d | /MakeArrays.py | ddbcb54c0454e9bdc084c7da0ba41eb206d4df28 | [] | no_license | JeremyCollinsMPI/Grambank-Distances | 63ff4f7993d88944f069bc489af774d6eb91eafc | 95e150b7f0a19a1358fbee165e54471e8a726e5f | refs/heads/master | 2020-08-27T10:37:19.874220 | 2019-10-28T08:44:25 | 2019-10-28T08:44:25 | 217,336,522 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,790 | py | from CreateDataFrame import *
df = readData('data.txt')
dict = createDictionary(df)
languages = getUniqueLanguages(df)
features = getUniqueFeatures(df)
print(len(features))
print(len(languages))
def find_next_pair(index1, index2, last_index):
if index2 < last_index:
index2 = index2 + 1
return index1, index... | [
"jeremyccollins@gmail.com"
] | jeremyccollins@gmail.com |
62cf67b76e319177411c00f42fe4e635de20c14a | 360d2758ddda9317556793b3f27a8f5eb27bde99 | /app.py | 914816ab249d6d3a68f08bb86677cb9fed9db02f | [
"Apache-2.0"
] | permissive | nyurik/ordia | ec4eeb0af097a0d8f544dd31b47f4575fbec44a4 | ef835b265b14becc0a29ce99649b6d0813be4ce3 | refs/heads/master | 2020-03-26T22:53:00.363061 | 2018-07-13T14:15:17 | 2018-07-13T14:15:17 | 145,493,679 | 0 | 0 | Apache-2.0 | 2018-08-21T02:11:20 | 2018-08-21T02:11:20 | null | UTF-8 | Python | false | false | 218 | py | """Script to start webserving."""
from ordia.app import create_app
DEBUG = True
max_ids = None
if DEBUG:
max_ids = 100
app = create_app(max_ids=max_ids)
if __name__ == '__main__':
app.run(debug=DEBUG)
| [
"fn@imm.dtu.dk"
] | fn@imm.dtu.dk |
4d2ca5538814ed56f39cfdcd2e5c8a414e6c8afc | 8cfd8a996f3f9ebb759238f69ba0bef4831b932e | /scratch.py | 26bfcaceb79d6d0e108c1454c6d638d019c28f78 | [] | no_license | kaveeken/tweez-split | 5c5abc36a572a18e4ea78cfdc1aafc832cbbf8ac | c685b781656f8bbf1691753e6266e062f8aeb822 | refs/heads/master | 2023-03-29T18:46:55.360645 | 2021-04-08T11:37:07 | 2021-04-08T11:37:07 | 350,275,772 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,282 | py | import lumicks.pylake as lk
import numpy as np
import matplotlib.pyplot as plt
import h5py
# d = lk.File('/home/kris/proj/.data/tweez/full.h5')
# print(d.h5.keys())
# print(d.h5['Force LF'].keys())
# plt.clf()
# plt.ion()
# plt.plot(d.h5['Trap position']['1X'])
# plt.plot(d.h5['Distance']['Piezo Distance'])
# plt.plot... | [
"k.a.veeken@student.rug.nl"
] | k.a.veeken@student.rug.nl |
c3a758800867c8f784938d8829955c937576e0bd | 2bb219a7e63d00f65b1f3379c462837b3bf3de25 | /main/script.py | f5d390e6bc641a8c498161a6b50c12e74ff998e3 | [] | no_license | bbawj/Django-Anitrack | 40111a4d47eb132c663dda8b753fa75ef380d327 | b8fe5623d2d35e4f6c32f9179d0d88d06e92c618 | refs/heads/master | 2022-12-31T12:19:01.759979 | 2021-06-11T02:16:52 | 2021-06-11T02:16:52 | 229,254,530 | 1 | 0 | null | 2022-12-08T03:20:10 | 2019-12-20T11:42:03 | Python | UTF-8 | Python | false | false | 2,250 | py | from HorribleDownloader import Parser
def get_anime_info():
p = Parser()
current_shows = p.current_shows
show_info = []
for show in current_shows:
episodes = p.get_episodes(show)
latest_ep = episodes[0]
latest_ep_num = latest_ep["episode"]
latest_ep_title = latest_ep... | [
"brendanawjang@gmail.com"
] | brendanawjang@gmail.com |
4c1559b4ee2801825b1b9373593e0fe662301000 | 2f5db0fc097b52e807a47a596dd8d5aa45bc1837 | /Python/GUI/test_spinbox.py | b2bc8c54a96f51cdcb8f21009968f9be827dedf5 | [] | no_license | MrWater/XPyTest | 2fbd239b5dbf86eb56f9ac872c258ba68565c02f | 7013c115e11846ffd19d1029b5c739e37d82bbc0 | refs/heads/master | 2021-01-14T08:19:50.408519 | 2018-11-22T08:02:51 | 2018-11-22T08:02:51 | 82,042,143 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 315 | py | import tkinter
root = tkinter.Tk()
# 设置最大最小值,步距值
# textvariable绑定变量
# command
tkinter.Spinbox(root, from_=0, to=100, increment=5).pack()
spinbox = tkinter.Spinbox(root, values=(0,2,20,40,-1), increment=12, command=lambda: print(1))
spinbox.pack()
spinbox.delete(0)
root.mainloop() | [
"1733301206@qq.com"
] | 1733301206@qq.com |
72e913daef631492b07db354222189ae28173d4f | 32c12197f0c694a18544b452a11e19b38e7233b7 | /schpf/tests/test_integration.py | 3d10787d0d136d368d123f1df7015c28cc3360f3 | [
"BSD-2-Clause"
] | permissive | vitkl/scHPF | bba89b9a5c972a74f1621d721494a70f46867c1f | f5fa9ce031f7e2b35d59dd674e829dddadf1024c | refs/heads/master | 2020-06-06T15:00:29.434632 | 2019-06-20T21:02:42 | 2019-06-20T21:02:42 | 192,771,542 | 0 | 0 | BSD-2-Clause | 2019-06-19T16:51:17 | 2019-06-19T16:51:17 | null | UTF-8 | Python | false | false | 1,556 | py | #!/usr/bin/env python
import numpy as np
import pytest
from numpy.testing import assert_equal
def test__setup_meanvar(model_uninit, data):
bp, dp, xi, eta, theta, beta = model_uninit._setup(X=data,
freeze_genes=False, reinit=True)
cell_sums = data.sum(axis=1)
gene_sums = data.sum(axis=0)
... | [
"h.mendes.levitin@gmail.com"
] | h.mendes.levitin@gmail.com |
cbafd1d0a237ab6f7351fa1e1b4e967f4e702888 | 2fa00f3b0fe9924bae481897a2e34f007dc2182d | /venv/Lib/site-packages/dash_html_components/Blink.py | 9b0e6b30bae1c79b425c1169bf921f3cae8d76c5 | [] | no_license | amifidele/eventbrite | c488843f1f659df1c323a4d72d7424f3cda66caa | 42f58aae12dbd9e6868d88817f8998d469ed7172 | refs/heads/master | 2022-12-17T17:20:54.045180 | 2020-03-31T13:53:00 | 2020-03-31T13:53:00 | 225,651,148 | 12 | 3 | null | 2022-12-08T05:24:41 | 2019-12-03T15:18:45 | Python | UTF-8 | Python | false | false | 4,636 | py | # AUTO GENERATED FILE - DO NOT EDIT
from dash.development.base_component import Component, _explicitize_args
class Blink(Component):
"""A Blink component.
Keyword arguments:
- children (a list of or a singular dash component, string or number; optional): The children of this component
- id (string; optional): ... | [
"amifidele333@gmail.com"
] | amifidele333@gmail.com |
85f2ef22282e39f0faa6d8e1f3bdeba61184092e | b5025befdf74fff3071252abaa4db09479f2d763 | /Pavan/Aug18/del_emp.py | a013e17945763d3bd6566aec3046de3769721b7a | [] | no_license | sidv/Assignments | d2fcc643a2963627afd748ff4d690907f01f71d8 | d50d668264e2a31581ce3c0544f9b13de18da2b3 | refs/heads/main | 2023-07-30T02:17:19.392164 | 2021-09-23T04:47:56 | 2021-09-23T04:47:56 | 392,696,356 | 1 | 20 | null | 2021-09-23T08:14:11 | 2021-08-04T13:20:43 | Python | UTF-8 | Python | false | false | 223 | py | from emp_class import Employee
from emp_store import employees
def delete_employee():
print(employees)
eid=input("Enter the employye id:")
for i in employees:
if i.empid == eid:
employees.pop(employees.index(i))
| [
"pavan@gmail.com"
] | pavan@gmail.com |
7907a27fa5a8dee4b8c90e3355e3f3693355096e | 8407cf938cbfcd2fae5451e41b515830b3fa6e13 | /pypits-runtime/libspitz/TaskPool.py | 07b2e3ddb4637d08f7c63ca633fa8b2807534477 | [
"MIT"
] | permissive | eborin/pypits | 4bf79197320df62ce636749f31be8bb2700f4dfa | 79b6ef3997c22e3a86f977413097678e5d30eeaa | refs/heads/master | 2021-01-22T17:02:47.400075 | 2016-09-15T16:52:27 | 2016-09-15T16:52:27 | 68,294,687 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,771 | py | #!/usr/bin/env python
# The MIT License (MIT)
#
# Copyright (c) 2015 Caian Benedicto <caian@ggaunicamp.com>
# Copyright (c) 2016 Edson Borin <edson@ic.unicamp.br>
#
# Permission is hereby granted, free of charge, to any person obtaining a copy
# of this software and associated documentation files (the "Software"), to... | [
"borinho@gmail.com"
] | borinho@gmail.com |
c3ffa2f7fd697fedaeff365aad383ebde8194b69 | e7f855c1507e8d5fc0265ea72f017ca942894a90 | /profit_comparison.py | c85765b1329e5bf37d270a8c856f094bd65960d0 | [] | no_license | zennpng/avocado_supply | cff940ac8196ed89f0dea6b7d73739fae0d80959 | b8c07209def6033bc64d49cbfb49de7ea2bac735 | refs/heads/master | 2022-12-11T20:33:14.643634 | 2020-08-25T06:32:52 | 2020-08-25T06:32:52 | 279,087,171 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 159 | py | import pandas as pd
from profit_preprocessing import profit_dict
final = pd.DataFrame(data=profit_dict, index=[0])
final.to_excel("profits_final.xlsx") | [
"noreply@github.com"
] | zennpng.noreply@github.com |
1702e565423744b7b7eefe5233124694e5140c5d | 46061620bd6cfd89f3c21ee94abf283455205fdb | /2.2.6.py | 1ac7e77106b16137e1c3a02822b03457706e0ab7 | [] | no_license | b0rn2rage/stepik---auto-tests-course | cb351d1746ab8cb088ca4be0f769a9e34c774d0a | 043b1da3fb365c16edf1baa6f594b28098985a56 | refs/heads/master | 2022-11-17T08:32:21.520264 | 2020-07-15T10:18:12 | 2020-07-15T10:18:12 | 276,615,956 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 747 | py | import time
import math
from selenium import webdriver
def calc(x):
return str(math.log(abs(12 * math.sin(int(x)))))
try:
browser = webdriver.Chrome()
link = 'http://suninjuly.github.io/execute_script.html'
browser.get(link)
element_x = browser.find_element_by_id('input_value').text
result =... | [
"b0rn2rage@bk,ru"
] | b0rn2rage@bk,ru |
fba550631baba462a141361bd6c32d21b3e001e9 | 9b047c0d415320f3988ed767ab011ea7e6bba2a3 | /accounts/views.py | 0cb45e055a7e88ad54e91851c27ced83ac467479 | [
"MIT"
] | permissive | Raistlin11123/beabacdefrancais | f9fe8c4323aba3d9201c02cf23aeee4998a32a60 | b72a1ae631c0fc85a80e5ecfdf433d8a8eab1c68 | refs/heads/master | 2022-06-03T18:05:02.528499 | 2019-06-29T15:30:13 | 2019-06-29T15:30:13 | 194,418,866 | 0 | 0 | MIT | 2022-04-22T21:47:19 | 2019-06-29T15:12:21 | HTML | UTF-8 | Python | false | false | 1,712 | py | #all the imports needed
from django.shortcuts import render, redirect, get_object_or_404
from django.contrib.auth import authenticate, login, logout
from django.http import HttpResponse, Http404, HttpResponseRedirect
from django.contrib.auth.decorators import login_required
from .forms import LoginForm, SignupForm
from... | [
"37593164+Raistlin11123@users.noreply.github.com"
] | 37593164+Raistlin11123@users.noreply.github.com |
6296a611321521ffd2004163b14e0bc37d43db87 | 4d2238210813c1581bf44f64d8a63196f75d2df4 | /dfs.py | d9fd93c39b98cb91429e37fb06a310f3bc3625f3 | [] | no_license | wwtang/code02 | b1600d34907404c81fa523cfdaa74db0021b8bb3 | 9f03dda7b339d8c310c8a735fc4f6d795b153801 | refs/heads/master | 2020-12-24T14:10:33.738734 | 2012-12-14T04:24:47 | 2012-12-14T04:24:47 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,172 | py | class Vertex:
def __init__(self, data):
self.data =data
self.successor = []
#generate a Graph
def petersenGraph():
v = [Vertex(i) for i in xrange(10)]
edges = \
[(0,1), (1,0), (1,2), (2,1), (2,3), (3,2), (3,4), (4,3), (4,0), (0,4),
(5,6), (6,5), (6,7), (7,6), (7,8), ... | [
"andytang1994@gmail.com"
] | andytang1994@gmail.com |
6211333b5fe994c928e4114d2b753d174182ad8f | 20107ab08888c2098d547d095ad3832b0095e8d2 | /getMovieDetail.py | 3e120199de9d713108d5407a51259d36ef1b1091 | [] | no_license | abhishek-pes/Moviebot-NLP | 44ed84a765d9ae109d641d97d991dffbaea8ed23 | f1d7a7cda1b7b80889af1ac1d4f849e8db395efb | refs/heads/master | 2022-12-12T05:50:59.236466 | 2020-08-31T16:01:04 | 2020-08-31T16:01:04 | 275,515,354 | 0 | 0 | null | 2020-06-28T05:40:55 | 2020-06-28T05:40:54 | null | UTF-8 | Python | false | false | 1,354 | py | import imdb
ia = imdb.IMDb()
#Function to get all details of a movie searched by user
def searchbymovie(search):
movies = ia.search_movie(search)
id = movies[0].getID()
movie = ia.get_movie(id)
title = movie['title']
year = movie['year']
rating = movie['rating']
directors = movie['director... | [
"54174670+Abhishek4848@users.noreply.github.com"
] | 54174670+Abhishek4848@users.noreply.github.com |
53ada0ecfaecf3ab5387b1256473be65d4e89aba | 29fa630629322837479772f048cd78f9fc4f04f2 | /code/TaxiSystem/NonPeakCode/Extras/taxi1.py | f5f488a508cf9a1bb2b75a23fe9b6d6e7d0f95e4 | [] | no_license | MU-Smart/CareShare | 59811b931d1d0f6fbf8bdf77c82a5228ed1e9299 | 07b65aa9f061a68b0a2f35a53c60973547ed3e23 | refs/heads/main | 2023-03-28T10:25:24.180701 | 2021-03-31T16:13:01 | 2021-03-31T16:13:01 | 353,168,291 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 14,144 | py | from flask import Flask
import threading
import time
from flask import request
import json
import requests
import math
import AntColonyAlgo.ACO as aco
import matplotlib.pyplot as plt
app = Flask(__name__)
taxi_ip = ["5000","5001","5002"]
other_taxi_ip = ["5001","5002"]
url_taxi = "http://0.0.0.0:"
taxi = {'id': 1, 'c... | [
"aishwarya.9711@gmail.com"
] | aishwarya.9711@gmail.com |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.