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 220
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 257
values | content stringlengths 2 10.3M | authors listlengths 1 1 | author_id stringlengths 0 212 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
7d6e145e14233eb01b56f6dce892ea9a75a2610c | bc32158f2085ae8ebf1b3a95911fd0087fd090f2 | /importPkg/rungenerate.py | 1fed5ac1fa9462b79fc604d217d354455db0cc45 | [] | no_license | mwintersperger-tgm/prototype | 77a69558f204b1fbc012f0c877ed95e70419e745 | 9bb1da7119fd17fcf889f42a97e46420ce7a120a | refs/heads/master | 2020-04-07T16:52:08.032189 | 2019-04-07T11:44:45 | 2019-04-07T11:44:45 | 158,546,637 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,135 | py | import argparse
import importPkg.generate as generate
true = True
false = False
parser = argparse.ArgumentParser()
parser.add_argument("-json", "--writejson", help="use this option to generate a JSON file in resources/data", action='store_true')
parser.add_argument("-csv", "--writecsv", help="use this option to gene... | [
"akramreiter@student.tgm.ac.at"
] | akramreiter@student.tgm.ac.at |
6b3290d9a954ea013826a35ff866d0252b5c7e3b | 17151e9c48f3f4771d24b0ad06e2337cc2d81ae8 | /Utils/search.py | d2d31b131c99a729367f5157fdabc13f61ada34d | [] | no_license | 311dada/SQL-TO-TEXT | d0cadbba431c8b5d55d0635dea2cfe99b2b0bd84 | 413170333266b16a135d170a353cdc70c99a5248 | refs/heads/main | 2023-02-01T11:56:01.329080 | 2020-12-17T02:14:17 | 2020-12-17T02:14:17 | 319,224,250 | 7 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,812 | py | '''
Author: your name
Date: 1970-01-01 01:00:00
LastEditTime: 2020-09-08 03:59:35
LastEditors: Please set LastEditors
Description: search
FilePath: /Tree2Seq/Utils/search.py
'''
from torch.utils.data import Dataset, DataLoader
import torch.nn as nn
import torch
from typing import List
from Data.spider.data_utils import... | [
"dada10106711@gmail.com"
] | dada10106711@gmail.com |
cbaab6ad95b424b327822a9a87e0cc253af5842c | bfc38084cbcbfb5d25629db634abe1ce4d6694ee | /P0E6/visulizador.py | d8775cbe5bd950a508026401dd189a3a4704206a | [] | no_license | JoaquinGuzmanO/MCOC2021-P0 | a54c25bf78edd3cc107d3c39fe4a9ed6c124521e | 58cf8a7e3936740a4793ee92c5444744330a619d | refs/heads/main | 2023-07-16T18:37:25.610107 | 2021-09-04T01:33:39 | 2021-09-04T01:33:39 | 392,008,328 | 0 | 0 | null | 2021-08-02T15:51:06 | 2021-08-02T15:51:05 | null | UTF-8 | Python | false | false | 2,213 | py | import matplotlib.pylab as plt
##############################
########### Solve ############
##############################
ns1 = []
ns2 = []
dts1 = []
dts2 = []
#Lectura de archivos
n1 = []
dt1 = []
text = open("rendimiento_solve_continua.txt","r")
for line in text:
sl = line.split()
n1.append(in... | [
"jaguzman1@miuandes.cl"
] | jaguzman1@miuandes.cl |
5da15392b61fbee5433962aa065a01f22a496917 | ca7aa979e7059467e158830b76673f5b77a0f5a3 | /Python_codes/p02675/s264656425.py | 2c982c55dd80b0a0be281ffc5f2da71e4b7ffb85 | [] | no_license | Aasthaengg/IBMdataset | 7abb6cbcc4fb03ef5ca68ac64ba460c4a64f8901 | f33f1c5c3b16d0ea8d1f5a7d479ad288bb3f48d8 | refs/heads/main | 2023-04-22T10:22:44.763102 | 2021-05-13T17:27:22 | 2021-05-13T17:27:22 | 367,112,348 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 220 | py | N = str(input())
N = N[::-1]
if N[0] == '2' or N[0] =='4' or N[0] =='5' or N[0] =='7' or N[0] =='9' :
print('hon')
elif N[0] == '0' or N[0] =='1' or N[0] =='6' or N[0] =='8' :
print('pon')
else:
print('bon') | [
"66529651+Aastha2104@users.noreply.github.com"
] | 66529651+Aastha2104@users.noreply.github.com |
af3e3b9bcce575f57877e191b46b2cfb11a4e81c | c243661d9d321b39256ad3dee4f5ce4b30a1fa93 | /packages/compress-stringify/python-web-demo/parse_string_decompress_load_sample_inputs.py | e9a295edc58bd8b9dccffb1a87464cf0883016d1 | [
"Apache-2.0"
] | permissive | InsightSoftwareConsortium/itk-wasm | 409621ea9430065c51759e4398959fe0ea3ab64a | 63369f1439583f27c77a4534ea2ef204c63dfa39 | refs/heads/main | 2023-08-31T13:31:27.333792 | 2023-08-30T04:20:30 | 2023-08-30T04:20:30 | 45,812,381 | 69 | 23 | Apache-2.0 | 2023-09-11T21:09:22 | 2015-11-09T03:20:17 | C++ | UTF-8 | Python | false | false | 761 | py | import js
async def load_sample_inputs(model):
sample_input = bytes([100,97,116,97,58,97,112,112,108,105,99,97,116,105,111,110,47,105,119,105,43,99,98,111,114,43,122,115,116,100,59,98,97,115,101,54,52,44,75,76,85,118,47,83,65,69,73,81,65,65,51,113,50,43,55,119,61,61])
model.inputs["input"] = sample_input
i... | [
"matt.mccormick@kitware.com"
] | matt.mccormick@kitware.com |
e52a5bc26866f9e570d9457dfec4868cfaec0599 | 045dcb3072a2c6426346769fbb60f0fa9e2eddc9 | /models/config_data.py | 60e4abfc116c583a0719efcb22be5838d85a1a3c | [] | no_license | vasilisa/api-brainexp2 | 73a6cf9c77a6961bbe48f755af5a0365166d9920 | b02d6d7f9034fa23d1ce64d9a55fa34667d1b904 | refs/heads/main | 2023-06-16T07:15:47.687602 | 2021-07-06T09:37:06 | 2021-07-06T09:37:06 | 357,216,899 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,078 | py | """User model"""
from sqlalchemy import Column, Integer, ForeignKey, VARCHAR
from models.db import Model
from models.base_object import BaseObject
class ConfigData(BaseObject, Model):
'''
This is the table where we put the prolific id, participatn id and retrieved app handle and start time for the study'... | [
"vasilisaskv@gmail.com"
] | vasilisaskv@gmail.com |
4b868feb0e0ca650d688ee985e71a7e98079fa67 | d38b8c45ef50feace29ab98cdbd3bd22c03e4953 | /WireFrame.py | 32bf222be0cab36839f1bef2dc8528a6f68a2bdd | [] | no_license | Bodil74/RubixCube | aa28b442504076e3b0849fd3b3cf90fd54037180 | dbc37c33de809a7e148b64c7e6bfbb2781a8d3e9 | refs/heads/main | 2023-03-30T09:47:55.927644 | 2021-03-28T02:01:32 | 2021-03-28T02:01:32 | 346,002,508 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,146 | py | import math
import numpy as np
class WireFrame:
def __init__(self):
self.nodes = np.zeros((0, 4))
self.edges = []
self.faces = []
self.colors = []
def addColors(self, colors):
self.colors += colors
def addNodes(self, node_array):
ones_column = np.ones((len(node_array), 1))
ones_added ... | [
"noreply@github.com"
] | Bodil74.noreply@github.com |
bebe60ad32bf377866e8e03ee51d6b6498e4c626 | 9d5ffeb26d7ff6305c85c35057a074e55a7296d7 | /Python Basic Sorts/recursive_quick_sort.py | c28a14e37ebd7388977e5aa147e0114a56ab0b2f | [
"Apache-2.0"
] | permissive | MukulCode/CodingClubIndia | b418ef77666e8159319da8e7f2523c7ac9aa974d | ab709a3f43817818dcfaa87e27ac7240fc1b5587 | refs/heads/master | 2023-06-08T11:36:13.415001 | 2022-10-31T18:28:30 | 2022-10-31T18:28:30 | 214,507,149 | 37 | 355 | Apache-2.0 | 2023-04-25T19:43:38 | 2019-10-11T18:43:36 | Jupyter Notebook | UTF-8 | Python | false | false | 486 | py | def quick_sort(data: list) -> list:
"""
>>> for data in ([2, 1, 0], [2.2, 1.1, 0], "quick_sort"):
... quick_sort(data) == sorted(data)
True
True
True
"""
if len(data) <= 1:
return data
else:
return (
quick_sort([e for e in data[1:] if e <= data[0]])
... | [
"bhattacharyaeshita@gmail.com"
] | bhattacharyaeshita@gmail.com |
6a9cd9dc838ef4b40770ff1ef29b4a3b6ca48a7d | 313d24036239a9d902f230e0de6f579569c675c4 | /Students/lascoli/session04/safe_input.py | c4236bf476b154890e56df2674c04de5e1a30118 | [] | no_license | ARSimmons/IntroToPython | 2fc77bf51856e44755b30d167dbde40c522c72cd | 5c1b9ce46cdc2282161569497f48c918fff8b7b2 | refs/heads/master | 2021-01-17T11:36:58.037594 | 2014-12-13T07:06:00 | 2014-12-13T07:06:00 | 24,920,509 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 254 | py | """Creating Wrapper Function Safe Input """
def safe_input(msg):
"""Function is called when ^C or ^D occurs"""
try:
x = raw_input(user_action)
except (EOFError, KeyboardInterrupt):
return None
else:
return variaxble
if __name__ == "__main__": | [
"lascoli2002@yahoo.com"
] | lascoli2002@yahoo.com |
9cc02927652ccc64258ee31ab1625c66400c04f9 | 6e96fa2a7b7a43291639cc5fc42044e440985a8e | /commands.py | fa8a824e2a81d2e0909af7bb9354f084e485ac0f | [] | no_license | eqbot/eagleiot | 29eb519c3b5ee91f62c459ef391fa5ca79913140 | 7c93b0d2491c40afcc3f3d0d311b1989a050d10c | refs/heads/master | 2021-01-25T14:56:13.020885 | 2018-03-04T14:41:42 | 2018-03-04T14:41:42 | 123,737,197 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,318 | py | import serial
import asyncio
import time
import json
#Serial setup
ser = serial.Serial('/dev/ttyACM0')
configfile = 'commands.json'
class Command:
def __init__(self, devid, timeline=[]):
self.timeline = timeline
self.devid = devid
def addCommand(self, timestamp, pinout, pulse):
timeli... | [
"trentkenn8@gmail.com"
] | trentkenn8@gmail.com |
dda5e6fe7b1134e391fa44b7dc89ec14c9b6a9a3 | 9dc652d06b0b5ee3fd95f75f335de96f33da8947 | /ising/metropolis/data/fss_mag.py | ffd0b54e78a0d83941bd04c2451755ba20d6bac3 | [] | no_license | entangled90/computazionale_m | 24e3175087b14fcb3de4a568185ec271df3fcf8f | a547c9e2607cce2996d032d0014dea974ad4f68f | refs/heads/master | 2016-09-05T12:53:37.817799 | 2014-04-04T15:39:42 | 2014-04-04T15:39:42 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,748 | py | #!/usr/bin/python
import numpy as np
import matplotlib.pyplot as plt
from scipy.optimize import curve_fit
import math
import sys
import glob
from operator import itemgetter
import os
np.seterr(all='warn')
xmin=0.43
xmax=0.44
def par(x,*p):
return p[0]*x**2 + p[1]*x + p[2]
def fit_par(filename):
guess = [-100,100,... | [
"sana.carlo@gmail.com"
] | sana.carlo@gmail.com |
44f1e787c7b23aac5830825fe0b255ac28d4cdf4 | 9689ebc06e7c9a5c1b5b19d34dbcf0f5b5b82cb6 | /callcenter/migrations/0081_auto_20181220_2253.py | 1a65a3e4074be197ec3a50bab2a3e38b75af4f25 | [] | no_license | tigrezhito1/Ramas | 94fe57dc4235616522aa50b36f5a655861ecbb9f | fa894fa69f6bf2a645179cadc11fb8809e82700a | refs/heads/master | 2020-05-02T07:03:03.564208 | 2019-03-26T14:55:29 | 2019-03-26T14:55:29 | 177,808,426 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,875 | py | # -*- coding: utf-8 -*-
# Generated by Django 1.10.8 on 2018-12-20 22:53
from __future__ import unicode_literals
import datetime
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('callcenter', '0080_merge_20181220_2241'),
]
operations = [
... | [
"you@example.com"
] | you@example.com |
18828c20474be640a4f42b6d882cf2466a9d2fcf | 63941b18e90ada65b85ad157db6d17149958d3fe | /center/as_Linux_32bit_3_6_x.py | c20ad5f43a8f98942d0682144c87c9a6da957bbb | [] | no_license | kingsh2012/AllStats | 18141e0d3b3a4c98c4581fc63e85e0c799491c93 | 6f8f7d2727ea54eee80d017026983b29c89b1598 | refs/heads/master | 2023-02-12T04:17:56.191525 | 2021-01-05T04:53:31 | 2021-01-05T04:53:31 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,481,002 | py | # -*- coding: utf-8 -*-
configs = {
'logger': {
'level': 20 # 设置日志级别 ERROR:40, WARNING:30, INFO:20, DEBUG:10, NOTSET:0
},
'socket': {
'data_s2c': 'tcp://*:51201', # 设置数据收集器的地址端口
'data_c2s': 'tcp://*:51202', # 设置数据发送器的地址端口
'command_s2c': 'tcp://*:51203', # 设置命令收集器的地址端口... | [
"mwy5ym@outlook.com"
] | mwy5ym@outlook.com |
85b0d28322503116d50824a2b4a273d189264da5 | 589ff6a1c16c4cace5757149e9f6b7df24e15110 | /temp.py | 2bd8953c8a2f5770ccfeabc30e7c34f5813e554a | [] | no_license | kktkyungtae/web-scraping | a1da2373e2248d8d15432c2a58db4edd0c436a1e | 3d890a3a34cd825a02332281913953652b4eb44a | refs/heads/master | 2022-12-27T18:59:25.589333 | 2020-10-10T09:40:43 | 2020-10-10T09:40:43 | 300,336,630 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 231 | py | # openpyxl 연습
# 뼈대 코드~!!
from openpyxl import Workbook
wb = Workbook()
ws1 = wb.active
ws1.title = "articles"
ws1.append(["제목", "링크", "신문사"])
ws1.append(["1", "2", "3"])
wb.save(filename='articles.xlsx') | [
"14997@global.ul.com"
] | 14997@global.ul.com |
56acff4a5585c520167b6c33508bc2b8fc46e7db | 419f172b672fb0bef506d33e786ddecf64394fe4 | /buybooks/apps.py | 336c6ba6ce8b412a6179a20eaf89292053ebc651 | [] | no_license | jp701/bookportal-blog | 5646ccc072078e02a770546ee66e0d30c5db6638 | 368d368abeffa794ff6d75f44573387dd3d97c1f | refs/heads/master | 2021-06-12T20:29:51.017103 | 2020-04-10T11:47:01 | 2020-04-10T11:47:01 | 254,391,813 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 91 | py | from django.apps import AppConfig
class BuybooksConfig(AppConfig):
name = 'buybooks'
| [
"jinalpanchal041@gmail.com"
] | jinalpanchal041@gmail.com |
3a609a16efcfb9cc302da6c49b28963df1db2ee5 | 23ad911039bee3a795ca41e87c90c15ea078daaa | /SublimeText3_3176/Data/Packages/CSS3-develop/completions/selectors.py | ae05485d49f0aa8c58afffdbae9a9417d0414ece | [
"MIT"
] | permissive | xiexie1993/Tool_Sublime_Text3_for_Windows | ea24fafe457cf15447d8bd0a53037611dd95a8e0 | 51b11ac2d7df36242d68b3b5f85af5f2a8c550e2 | refs/heads/master | 2020-03-27T01:10:50.806869 | 2018-10-01T14:51:31 | 2018-10-01T14:51:31 | 145,688,993 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,010 | py |
at_page = [
(":blank", ":blank "),
(":first", ":first "),
(":left", ":left "),
(":recto", ":recto "),
(":right", ":right "),
(":verso", ":verso "),
]
html_tags = [
("a",),
("abbr",),
("address",),
("area",),
("article",),
("aside",),
("audio",),
("b",),
("ba... | [
"Xzbde163yx@163.com"
] | Xzbde163yx@163.com |
28b49fd7c34f222f9f814ea91717071134d3627f | 7fa176ce9ef29258ea3711612b0605ee82afd799 | /python/3rd_cook_book/Chapter_1/20_Combine_maps.py | a663549ca49d5ae1e85df44091f350d8102075a9 | [] | no_license | fooyou/Exercise | c5137945821ee7f9f21a86f95c06d8e71941c19f | 1a5438d961f1716953b90921aa1ee9d60a97b23e | refs/heads/master | 2022-07-08T13:15:52.481707 | 2018-07-08T03:21:17 | 2018-07-08T03:21:17 | 37,168,041 | 1 | 1 | null | 2022-07-06T20:05:34 | 2015-06-10T01:18:11 | C++ | UTF-8 | Python | false | false | 1,646 | py | #!/usr/bin/env python
# -*- coding: utf-8 -*-
# @Author: joshua
# @Date: 2015-05-23 20:06:31
# @Last Modified by: Joshua Liu
# @Last Modified time: 2015-05-24 19:24:22
from collections import ChainMap
a = {'x': 1, 'z': 3}
b = {'y': 1, 'z': 4}
c = ChainMap(a, b)
print(c)
# 事实上ChainMap并没有真正把多个映射合成一个,而是通过逻辑重新定义了映射的... | [
"liuchaozhenyu@gmail.com"
] | liuchaozhenyu@gmail.com |
2029aeff51b31fb2e24f1e95c740deb621b4268b | 34270cb66280545a37ec58381c9bac819d626a32 | /tests/api/test_request.py | a023918ab092efa85317007b5ef389d2c5734e9e | [
"Apache-2.0"
] | permissive | ArdanaCLM/opsconsole-server | ffc7320138b2635506295bf367bc9e3225a744ca | d98c230aad058616d6b59079842893b290332cd9 | refs/heads/master | 2021-05-16T12:07:23.195171 | 2018-08-03T17:18:17 | 2018-08-03T20:02:39 | 105,184,962 | 1 | 2 | Apache-2.0 | 2018-02-13T05:40:25 | 2017-09-28T18:29:24 | Python | UTF-8 | Python | false | false | 4,058 | py | # (c) Copyright 2015-2016 Hewlett Packard Enterprise Development LP
# (c) Copyright 2017 SUSE LLC
from bll import api
from tests import util
from bll.api.request import BllRequest
class Test(util.TestCase):
def test_chained_creation(self):
req1 = BllRequest(target=util.randomword(),
... | [
"nicolas.bock@suse.com"
] | nicolas.bock@suse.com |
29dc2ec524aa3607260be818205cba9a077c4382 | c060952682d2ccb6207f5ce81a61f3fff6f953df | /LOADER/agr_loader-develop/src/mods/human.py | c8b01874d007632a5a03c1ae11f129d7cd1df19b | [] | no_license | yeastgenome/AGR_POC | 1e246301590c5d9d7d43c46634160916a3831666 | ea047a445d7dfe22a8aed939fa46cb1d22516206 | refs/heads/master | 2021-04-15T13:13:06.451570 | 2018-04-04T18:53:29 | 2018-04-04T18:53:29 | 126,867,072 | 0 | 0 | null | 2018-03-31T00:04:18 | 2018-03-26T17:47:14 | null | UTF-8 | Python | false | false | 1,661 | py | from .mod import MOD
class Human(MOD):
def __init__(self):
self.species = "Homo sapiens"
self.loadFile = "RGD_1.0.4_2.tar.gz"
self.bgiName = "/RGD_1.0.4_BGI.9606.json"
self.diseaseName = "/RGD_1.0.4_disease.9606.json"
self.alleleName = "/RGD_1.0.4_feature.9606.json"
... | [
"gondwefelix8@gmail.com"
] | gondwefelix8@gmail.com |
a16fa2249589283ee9dcfb6f641f0fd3246aa783 | e48b43fd5135d5469d77d41bce6d9e5e26c133cb | /expand.py | b02f99347685bfd5a048b763c414b70183f62677 | [] | no_license | abcp4/SFPNovelty | b62aee179b9000ce8ce041c2ebec61cb00ed3d0f | 99f1a85bafed6f966100b90247a6a73a8b20a120 | refs/heads/main | 2023-07-05T23:57:14.596778 | 2021-08-11T20:41:59 | 2021-08-11T20:41:59 | 359,220,676 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 122 | py | import custom_mcts
def default(node,state):
return [custom_mcts.Node(node, a) for a in state.get_possible_actions()]
| [
"noreply@github.com"
] | abcp4.noreply@github.com |
f486d1091aeb8a5d9df12d121439885eb724645c | 862f3389025650b4ddf46dbb675d380dacc784bf | /proj/proj2/tests/q8aiii.py | d32badea738819321feb0a4234d21e167e18dd9b | [] | no_license | argoc/sp21 | 7db5fbedcd84592bf6f557f7876ba0bdbe6bc552 | 23d31826e2a3bc4125a1e50125f1b99a8350647f | refs/heads/master | 2023-05-02T00:09:33.776158 | 2021-04-26T02:25:14 | 2021-04-26T02:25:14 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 231 | py | test = { 'name': 'q8aiii',
'points': 1,
'suites': [{'cases': [{'code': '>>> 0 <= time_to_create_index <= 10000\nTrue', 'hidden': False, 'locked': False}], 'scored': True, 'setup': '', 'teardown': '', 'type': 'doctest'}]}
| [
"allenshen5@berkeley.edu"
] | allenshen5@berkeley.edu |
2bb8d377c3f0f92ed567eeddc1e97303100d5013 | 9743d5fd24822f79c156ad112229e25adb9ed6f6 | /xai/brain/wordbase/otherforms/_winos.py | 4e2b048338398edd14d25251a3ce0aeb08022260 | [
"MIT"
] | permissive | cash2one/xai | de7adad1758f50dd6786bf0111e71a903f039b64 | e76f12c9f4dcf3ac1c7c08b0cc8844c0b0a104b6 | refs/heads/master | 2021-01-19T12:33:54.964379 | 2017-01-28T02:00:50 | 2017-01-28T02:00:50 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 214 | py |
#calss header
class _WINOS():
def __init__(self,):
self.name = "WINOS"
self.definitions = wino
self.parents = []
self.childen = []
self.properties = []
self.jsondata = {}
self.basic = ['wino']
| [
"xingwang1991@gmail.com"
] | xingwang1991@gmail.com |
a1ee201a21eb545b8d7961c408e2ad9abd2d2fe8 | e7e9370867bee5aff796dcc0bbf85fbbf299d318 | /OOPS/polymorphism.py | d368a629437865ade4d6f5845e78d97b9e40f42a | [] | no_license | suryaraj93/LuminarPython | 7249bc554e4d315260ce90302334a3d6748896b1 | 4e05043c8e70cf5b61b596f77362fa1108b66562 | refs/heads/master | 2022-11-26T06:54:20.627889 | 2020-08-02T14:57:41 | 2020-08-02T14:57:41 | 280,052,183 | 0 | 1 | null | 2020-07-23T02:22:19 | 2020-07-16T04:23:18 | Python | UTF-8 | Python | false | false | 176 | py | class Maths:
def add(self):
print("no arg")
def add(self,num1):
print("single")
def add(self,num1,num2):
print("2 arg")
ob=Maths()
ob.add(1) | [
"suryarajps93@gmail.com"
] | suryarajps93@gmail.com |
8df3aee12fe2091ef72082b52dfeaf03e3b96cdc | 3ffe3f73486a2648d02a4b8a8f1b8afeed49640c | /happymate/forms.py | 5f24f66aa631c711d3e4867ad3b27074c8cc24e4 | [] | no_license | itsmurfs/happymate | d01a8cc6fbf3195f0602a6954031418aaf8200e4 | 9b9fbca888436a6184fcc07ec7a52b1d8106a506 | refs/heads/master | 2020-03-26T05:00:02.448284 | 2015-06-11T19:07:54 | 2015-06-11T19:07:54 | 37,278,711 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,990 | py | from django import forms
from django.contrib.auth.models import User
from django.forms import PasswordInput
from happymate.models import Roommate, Inn
def get_config_inn_form(roommate):
"""
:param roommate:
:return:
"""
class ConfigInnForm(forms.ModelForm):
"""
"""
class ... | [
"blog@itsmurfs.it"
] | blog@itsmurfs.it |
18a2ca85747bb80849a4a1130bcb44bba38e2f13 | fb9719f24c85181771ac983560324d7d83c714c7 | /Personal Assistant/the better assisstant.py | 4d0c370ba2ee9f20d3590a34f4bdac3303230a40 | [] | no_license | rishavghosh605/Python-Scripting-And-Automation | 553d5246f9aba7e59c7e17e1f1a017236d682809 | a52705a5583a6529b51df8fb4722bc0eb88b9621 | refs/heads/master | 2020-05-26T21:07:36.518252 | 2019-05-24T07:31:24 | 2019-05-24T07:31:24 | 188,373,968 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,977 | py | import pyttsx3
import webbrowser
import smtplib
import random
import speech_recognition as sr
import wikipedia
import datetime
import wolframalpha
import os
import sys
import time
# The engine which we will use for the computer to talk back to us
engine = pyttsx3.init('sapi5')
# The wolphram client id to use wolframa... | [
"rishavghosh605@gmail.com"
] | rishavghosh605@gmail.com |
d154ab02b1864b941bb5d7872001d4e49987d525 | 5647dd8abeeb0bbf727341ba8f5017b0640efdec | /plantio/helpers/data_helpers.py | 991c8de76c633ae85498d54e2e1760ad4ac8af63 | [] | no_license | sav-smu/plc-code-integrity | 0eb1621ad72cd37317a11514505971ea53397a3b | 5333b85a56b63761e07cd00e8e8dc6ec7c2875d5 | refs/heads/main | 2023-07-02T12:52:42.547269 | 2021-08-16T05:14:37 | 2021-08-16T05:14:37 | 371,252,395 | 1 | 1 | null | null | null | null | UTF-8 | Python | false | false | 2,286 | py | import json
def convert_key_value(inputDict, special_keys=[]):
"""
Converts dictionary from PlantViz to key/value pair
Parameters
----------
inputDict : dict
Dictionary containing all key, value and type for detector
settings.
special_keys : list, optional
List contain... | [
"59162505+yuqiChen94@users.noreply.github.com"
] | 59162505+yuqiChen94@users.noreply.github.com |
291b2ebec9be4b18d59c63c334bcda47ad4a8d8f | bce1460546bd76481d64185ade89e77f6b5c7d76 | /conf.py | cf09160d9f95ce2516601213744fec68d92a10be | [] | no_license | alexandru-m-g/hdx-hxl-preview | 0415db1f26732f3e292fd2433e298e38d1bba7ff | 76262a814c406d43a713dc5d788e7fbee34f184b | refs/heads/master | 2021-01-23T20:57:39.987832 | 2017-05-08T08:46:06 | 2017-05-08T08:46:06 | 90,668,618 | 0 | 0 | null | 2017-05-09T09:38:08 | 2017-05-08T20:16:29 | TypeScript | UTF-8 | Python | false | false | 10,119 | py | # -*- coding: utf-8 -*-
#
# HXL Preview documentation build configuration file, created by
# sphinx-quickstart on Thu Feb 2 07:58:03 2017.
#
# 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.
#... | [
"aalecs@gmail.com"
] | aalecs@gmail.com |
03ff69f5d49343b455e515bad16a54b876459c51 | de24f83a5e3768a2638ebcf13cbe717e75740168 | /moodledata/vpl_data/88/usersdata/236/58781/submittedfiles/listas.py | 3bd37d6ae7004bd6da0f8a8243ae437e9ce52610 | [] | no_license | rafaelperazzo/programacao-web | 95643423a35c44613b0f64bed05bd34780fe2436 | 170dd5440afb9ee68a973f3de13a99aa4c735d79 | refs/heads/master | 2021-01-12T14:06:25.773146 | 2017-12-22T16:05:45 | 2017-12-22T16:05:45 | 69,566,344 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 347 | py | # -*- coding: utf-8 -*-
def MAIORDEGRAU (A):
maior=0
for i in range (1,N+1,1):
ABS(DEGRAU)=A[i]-A[i-1]
if DEGRAU>maior:
maior=DEGRAU
print(maior)
N= int(input('Digite o número de termos da lista: '))
A=[]
for i in range (1,N+1,1):
numero= int(input('n:'))
A.append('nume... | [
"rafael.mota@ufca.edu.br"
] | rafael.mota@ufca.edu.br |
7937b476fdeb13b71a7c26aaa366efe8709b2a53 | d5fbed884843e80fc5fd23d886cee9c4d94be8bf | /blogapp/migrations/0010_auto_20200418_1551.py | 57ec5c4322740e771e2cd7b077b5953ba6f2e730 | [
"MIT"
] | permissive | michaelm912/blogsite | e71a4ed2f0c7bcbfc6584edc7a72bcce0fb8e701 | 9204e48a5197a221be1473be5933ffd75c25ce22 | refs/heads/master | 2023-08-14T02:18:29.873597 | 2020-10-18T17:13:31 | 2020-10-18T17:13:31 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 460 | py | # Generated by Django 3.0.2 on 2020-04-18 15:51
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('blogapp', '0009_auto_20200418_1551'),
]
operations = [
migrations.AlterField(
model_name='article',
name='status',
... | [
"Piyush488662@gmail.com"
] | Piyush488662@gmail.com |
a0e51880e252a9c72ca47983370b38d33fce2a59 | c768b90abff2a3a812be85dc42d886e44afc4703 | /feb_long_challenge/Highest_Divisor.py | c8eff53ddfaba162e400e2bd9cb606fef47b4027 | [] | no_license | YashMistry1406/Competitve_Coding- | 3285a2717fde16afda29e46f35f52c7aafb3ccb1 | 80ec55d7e634688caf8599692294ce88b3c504ae | refs/heads/master | 2023-07-19T14:19:54.700841 | 2021-09-07T18:43:48 | 2021-09-07T18:43:48 | 274,061,154 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 131 | py | n= int(input())
max_i=0
for i in range(1,11):
if n%i==0 and i>max_i:
max_i=i
else:
continue
print(max_i)
| [
"yashmistry2000@gmail.com"
] | yashmistry2000@gmail.com |
79cb7b546b8f46a829ba709dd32408b256c6d974 | 19f6780d58e3273d284e8ed51009138ff3012f71 | /regex-test.py | b14d89fdd899708db3ebf23c0abe0f991f008073 | [] | no_license | jjli1/python-training-home | b7f50d5ff20644c5802a1ed964fef417879baa93 | 81ec7d441a7e27ed3a573a91ec6dc52adc73a0f4 | refs/heads/master | 2023-03-07T06:41:35.600446 | 2021-02-24T13:10:36 | 2021-02-24T13:10:36 | 340,313,384 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 512 | py | import re
# pattern1='cat'
# pattern2='bird'
# string='dog runs to cat'
# print(pattern1 in string)
# print(pattern2 in string)
# print(re.search(pattern1,string))
# print(re.search(pattern2,string))
# multiple patterns ('run' or 'ran')
# ptn='r[au]n'
# print('ptn=',ptn)
# print(re.search(ptn,'dog ran to cat'))
stri... | [
"jjli1.tw@gmail.com"
] | jjli1.tw@gmail.com |
4106c3ea970f0d3537048fb104d1a911737ab854 | aa90c7cbe0a41ace73439feac8ae5df4e537f099 | /hr_module/wsgi.py | cd40241aad4ddde7388ee895db7c42fbe89eb1be | [] | no_license | khushalt/django-project | df87170570f624467835b6207b5827b373b87cb7 | 59c1346819697aa2229edbc2ba2c777cd37d73a6 | refs/heads/master | 2020-11-28T17:25:33.109655 | 2019-12-24T06:01:39 | 2019-12-24T06:01:39 | 229,880,310 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 395 | py | """
WSGI config for hr_module 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.0/howto/deployment/wsgi/
"""
import os
from django.core.wsgi import get_wsgi_application
os.environ.setdefault("DJANGO_SET... | [
"khushal.t@indictranstech.com"
] | khushal.t@indictranstech.com |
562356c75aee821f248c1dd73644b62c6c530d7a | 3337ac74cd52030183c79dcfc4fe84c42c976036 | /Machine_Learning_Introduction/Task_4(Pandas1)/VMO4(Pandas1).py | d08c88d92da752ef19d1e21e8b8d4c1f564ef2cb | [] | no_license | stoptrollingmymind/UniversityTasks | e4af7d6cffd93654d5aa2606ebf549bf39769891 | b09c064627734d16a1356b92b35fadc7eb21c3cb | refs/heads/master | 2023-05-06T16:17:42.076072 | 2021-05-29T11:38:56 | 2021-05-29T11:38:56 | 263,071,454 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 598 | py | import pandas as pd
import matplotlib.pyplot as plt
import numpy as np
# first part starts
IBM = pd.read_csv('IBM.csv', sep=';')
compressed_IBM = IBM.groupby(np.arange(len(IBM)) // 4).sum() # month = 4 weeks
IBM_months = compressed_IBM.drop(compressed_IBM.columns[[0, 1, 2, 3]], axis=1)
IBM_months.plot.bar()
plt.titl... | [
"65177608+stoptrollingmymind@users.noreply.github.com"
] | 65177608+stoptrollingmymind@users.noreply.github.com |
cf622f0165102d05725c7c6bd9f253806b76add0 | 16e92a745e9d5bccfa5b8bd61a9cb1e2d1f11982 | /myProjet/projetapp/models.py | 081aa4496b87ba04119f6ff61e592314f9f953b7 | [] | no_license | Dagoserge-martial/nan_gestion_projet | 77e082243533186120e513a63d0c8e4452dd2736 | c725022c5a05e70ee5e294bf5aac62d6c650575d | refs/heads/master | 2022-11-26T01:00:46.555630 | 2020-01-10T15:00:05 | 2020-01-10T15:00:05 | 224,997,724 | 0 | 0 | null | 2022-11-22T04:52:03 | 2019-11-30T10:50:15 | JavaScript | UTF-8 | Python | false | false | 4,635 | py | from django.db import models
from django.contrib.auth.models import User
# Create your models here.
from django.db.models.signals import post_save
from django.dispatch import receiver
class Client(models.Model):
nom = models.CharField(max_length=155)
description = models.TextField()
site_internet = models... | [
"46801097+Dagoserge-martial@users.noreply.github.com"
] | 46801097+Dagoserge-martial@users.noreply.github.com |
cf619d6b55feea5e6a12c790b48b2b5f6b631a66 | 0ef814cfd4d35a140cf62ef4227aeb108010381c | /practice53.py | 5bce6716fb977977135f4da38dca8bdf2ffa1c21 | [] | no_license | ikramulkayes/University_Practice | da3941e54d4d6371776de41db603b667b8648f66 | e05b7289f091a9927482bd71d93af3521414ddfe | refs/heads/main | 2023-08-15T22:30:47.898617 | 2021-09-30T11:58:18 | 2021-09-30T11:58:18 | 395,528,267 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 394 | py | file = open("task1.txt")
lst = file.readlines()
maxlen = None
maxword = None
count = 0
for elm in lst:
elm = elm.strip()
elm = elm.split()
for val in elm:
if count == 0:
maxlen = len(val)
maxword = val
count += 1
elif len(val) > maxlen:
... | [
"md.ikramul.kayes@g.bracu.ac.bd"
] | md.ikramul.kayes@g.bracu.ac.bd |
ec14cba8844f5920aa75f3ade5cb5148c6e190a0 | f2b798e424d4d750fe0622e7ea6dadbc5bb3d254 | /urls.py | 305e37c4140577161cc99f01bb25159e0612dd4a | [] | no_license | somyakrishna2000/tropical-and-chatbot | f5921d11bf6cf9df405e49c592309a05803cdd7c | 758b61821377b5afe769fee826dce75b4edae6b6 | refs/heads/main | 2023-01-25T02:26:26.998707 | 2020-11-29T12:22:06 | 2020-11-29T12:22:06 | 316,759,245 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 974 | py | """Website URL Configuration
The `urlpatterns` list routes URLs to views. For more information please see:
https://docs.djangoproject.com/en/2.2/topics/http/urls/
Examples:
Function views
1. Add an import: from my_app import views
2. Add a URL to urlpatterns: path('', views.home, name='home')
Cla... | [
"noreply@github.com"
] | somyakrishna2000.noreply@github.com |
54fc7f74edd373b757ac7259b880e9c45154caab | db8153ee95d0c62ef5c9ce4f59f5290e5fe06c5f | /python3/Kangaroo.py | 5d8aa6e8fa4c60b17bc6cd11c0f3b661672e5f53 | [] | no_license | VoltK/HackerRank | f0cbc529eeb09812d2f5198a26e7a2ba2cd9a0fe | 25303e07b3eb9564f571bdbe771a343fb1f070d2 | refs/heads/master | 2020-04-22T01:42:44.399060 | 2019-04-03T22:40:57 | 2019-04-03T22:40:57 | 170,022,901 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 676 | py | #!/bin/python3
import math
import os
import random
import re
import sys
# Complete the kangaroo function below.
def kangaroo(x1, v1, x2, v2):
if v2 > v1 and x2 > x1 or v1 > v2 and x1 > x2:
return 'NO'
else:
for _ in range(10001):
x1 += v1
x2 += v2
if x1 == x... | [
"khud44@icloud.com"
] | khud44@icloud.com |
fc5617620a61b39b838b9019b42c3cdcf39c9918 | b53cf33b62509e68b3e1d4f3438ff5d131efb535 | /events/admin.py | 59f902e00e1953bf81e56e0f3f1ff65519a6dac4 | [] | no_license | Code-Institute-Submissions/shop-chichi-ms-4 | da4a9e57904b80cdf09cb2ff0ce7d10e9e70ce9d | 1b0e786270445ccfedb8595142834838e88f2167 | refs/heads/master | 2023-03-12T02:46:43.806180 | 2021-03-02T07:43:48 | 2021-03-02T07:43:48 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 271 | py | from django.contrib import admin
from .models import Event
class EventAdmin(admin.ModelAdmin):
list_display = (
'title',
'location',
'date_and_time',
'description',
'timestamp',
)
admin.site.register(Event, EventAdmin)
| [
"gabrieladisalvatore@gmail.com"
] | gabrieladisalvatore@gmail.com |
5d69074bd9fc504d4fdbad740b8914ee15540732 | d2072d56891c12bbcfdb0b1aa5348790c64ba33c | /call_peaks/call_peaks.py | 3403376f5a9cd92297a6b23112f5f552de63b9b6 | [
"MIT"
] | permissive | dfporter/peakCaller | 6ece470c95319a215b2c1c78f00b6c145734aa3b | 523d7d31171a9e518a5703e7975e951abea0a6a4 | refs/heads/master | 2020-12-24T15:22:46.480755 | 2015-10-28T15:35:11 | 2015-10-28T15:35:11 | 28,758,244 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,140 | py | """
Calls peaks in .bam files of CLIP-seq data.
This script needs a .gtf for the whole genome (given with -t).
It will create a .bed file of annotations from the .gtf. The
.bed file can also be given with -a, if it already exists.
A control dataset, such as RNA-seq, can also be provided.
"""
import sys
import os
imp... | [
"dfporter@gmail.com"
] | dfporter@gmail.com |
36fc4d5c62724c7cb409648751a4a4932bb2a56e | 436f4f7cc403404ef7783a2abb6fc8edad840fbe | /setup.py | ce6b6db4a428d84aea07462c74f6f83d9f85f5e0 | [] | no_license | hkage/cookiecutter-django | 6423adc80a9aa6a391e939a63843db146a7bc881 | a2fb572e9ff48daaf0f9a2ed5eea952eb45ee890 | refs/heads/master | 2021-05-03T14:58:10.641976 | 2017-01-20T08:32:05 | 2017-01-20T08:32:05 | 61,019,628 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,013 | py | # !/usr/bin/env python
from distutils.core import setup
setup(
name='cookiecutter-django',
packages=[],
version='0.1.0',
description='Cookiecutter template for Django based projects',
author='Henning Kage',
author_email='henning.kage@gmail.com',
url='https://github.com/hkage/cookiecutter-d... | [
"henning.kage@gmail.com"
] | henning.kage@gmail.com |
a28663acecb2d89b8f370351c352a4f8e00b6b90 | f7e4eb52c9b53543b2f31d2153f512d5de7974ed | /flaskProject/mt-cnn/helper/pdfconverter.py | 04a0e563dc7b8345bf96197974bb72d9bd340756 | [] | no_license | CBIIT/nci-doe-data-sharing | c67b96dc3864c7ff1d6878776c4a5e7ea7f4580c | ccf569bc7fb4d03ebc1ce44779f8938da719ba35 | refs/heads/master | 2023-08-31T21:48:22.866441 | 2023-08-29T20:35:30 | 2023-08-29T20:35:30 | 234,124,480 | 1 | 1 | null | 2023-07-12T22:44:32 | 2020-01-15T16:34:08 | Java | UTF-8 | Python | false | false | 1,041 | py | """
This python file is used to convert pdf to txt document
Written By Mounica Ganta
Data: 10/01/2022
"""
import os
import PyPDF2
# Function to read and extract contents from PDF documents and
# return a text file
def convert_PDF_to_Txt(filename):
file_name, file_extension = os.path.splitext(filename)
print(... | [
"mounica.ganta@gmail.com"
] | mounica.ganta@gmail.com |
76874de05ddf7cf58f7c94f2cdd3d389602dc87a | 70ef7132cff1ccdb0c9ed6cbe35e4dd3686a9f1f | /tweeter_app2/settings.py | 075360d632d06d5a85b90023c52345049a3124fd | [] | no_license | Erinbuu/tweeter_app2 | e03846dd83e2e0621415715e256d88534377143f | 9aef3d3a25a642ba24eee228a15f916f3f11c537 | refs/heads/master | 2022-12-19T15:47:18.446561 | 2020-03-12T00:31:57 | 2020-03-12T00:31:57 | 246,689,502 | 0 | 0 | null | 2022-12-08T03:47:48 | 2020-03-11T22:08:28 | Python | UTF-8 | Python | false | false | 4,445 | py | """
Django settings for tweeter_app2 project.
Generated by 'django-admin startproject' using Django 3.0.4.
For more information on this file, see
https://docs.djangoproject.com/en/3.0/topics/settings/
For the full list of settings and their values, see
https://docs.djangoproject.com/en/3.0/ref/settings/
"""
import ... | [
"erin.phillips424@gmail.com"
] | erin.phillips424@gmail.com |
02bb21280cce17cc249b2e2402eaa7c6392d9123 | 49cbc5f4735152ecd0dfff45fd719f2705c0ab30 | /exp1.py | c058e12eee2b5909adc7ca1fb3b79bc6e56b65b6 | [
"MIT"
] | permissive | praveenpmin/Python | 964cc3652bfe79be93b71094fe504e7b6b072def | 9e2316b990a9c8c379b584339f918d23db32821a | refs/heads/master | 2023-09-02T21:42:19.287328 | 2023-06-28T05:53:41 | 2023-06-28T05:53:41 | 157,956,206 | 0 | 0 | MIT | 2023-08-30T03:40:37 | 2018-11-17T06:08:21 | Python | UTF-8 | Python | false | false | 166 | py | a = 4
b = 9
if b % a == 0 :
print ("b is divisible by a")
elif b + 1 == 10:
print ("Increment in b produces 10")
else:
print ("You are in else statement") | [
"pbabu1@lenovo.com"
] | pbabu1@lenovo.com |
a750fe157a5385d4b786f5adba38f7e415538c91 | 6aed618ca49473fadf7342c43764d781783f51d2 | /Reputation.py | 207ef82a9f45ae464f455c5819f968a37e9dbbf1 | [] | no_license | saikrishnaimmadisetty/reputation | 988b04eef625e1944757514ddfcc044aa7fef94a | 003aa94d939d7738044ff6789c3cf332ed81d6b5 | refs/heads/main | 2023-07-09T05:29:38.089740 | 2021-08-06T04:49:58 | 2021-08-06T04:49:58 | 367,807,702 | 0 | 0 | null | 2021-08-06T04:49:59 | 2021-05-16T07:01:57 | null | UTF-8 | Python | false | false | 22,396 | py | from abc import ABC, abstractmethod
import json
import base64
import logging
import requests
from netaddr import IPAddress
logging.basicConfig(format='%(asctime)s [%(levelname)s] %(message)s', level=logging.INFO)
logger = logging.getLogger()
class Common(ABC):
def __init__(self, ip=None, domain=Non... | [
"noreply@github.com"
] | saikrishnaimmadisetty.noreply@github.com |
a48f9ba0ac214cdf30e63988763c825f40f68cb8 | 0cd4b4d80275e38966b805d3ac9f542e4d17ea97 | /StorageProxy/models.py | af0c15bdd1220e86d2e608c5e58c4561b377a87e | [] | no_license | Shekeen/DataUploader | 657e66413070b28714f6b9a56ebe111af0d5d643 | 0a3e7ac57d52c53d5321ca022c4cc19b6e031577 | refs/heads/master | 2021-01-10T15:40:11.381323 | 2016-02-17T09:43:29 | 2016-02-17T09:43:29 | 51,646,868 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 522 | py | from __future__ import unicode_literals
from django.db import models
from django.utils import timezone
class StoredData(models.Model):
class Meta:
unique_together = ('key',)
key = models.CharField(max_length=1000)
sha1_hexdigest = models.CharField(max_length=100)
byte_size = models.BigIntege... | [
"guryanov91@gmail.com"
] | guryanov91@gmail.com |
cbc8d9a403e89fb536274d56d9dada624be9462b | 743d58c35caf21568feddc86946bbee340174721 | /automatic_office/__init__.py | 8ef015868a5b83dad235c019f43a2dcef24c5a89 | [] | no_license | klgentle/lc_python | 38009ed82614c8f21ca9af6e3779a2e0898af09f | aabe56e690b40e4b93afef99bfe46d9a06e20cea | refs/heads/master | 2022-12-02T05:23:55.585659 | 2022-08-07T12:11:38 | 2022-08-07T12:11:38 | 176,750,473 | 2 | 0 | null | 2022-11-15T23:42:06 | 2019-03-20T14:21:51 | Python | UTF-8 | Python | false | false | 115 | py | import os
import sys
# 绝对路径的import
sys.path.append(os.path.dirname(os.path.abspath(__file__)) + "/../")
| [
"klgentle@sina.com"
] | klgentle@sina.com |
1ded1744c1aa400c4c0597ca24fe2f07d432bd14 | fd6a71fa6ab8e6e1ef68e829c6d8ae7464693a47 | /shells/doctor/create_random_doctor.py | 07e2da419163d55e8e0d7bb13c1fdc382d2eec60 | [
"MIT"
] | permissive | fatpo/doctor_server | e4b95a423d149698398e7cf3f30671a712be0a34 | 6369b26a4ef87ca2546c94d9085eea92cb37df34 | refs/heads/master | 2022-01-12T19:05:56.626399 | 2019-04-29T13:45:34 | 2019-04-29T13:45:34 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 12,326 | py | # coding=utf-8
"""
2018年08月05日 星期日
随机生成10000个医生,和他们的排行
"""
import json
import logging
import random
import pymysql.cursors
mydoctory_read_config = {
'host': '47.106.101.39',
'port': 3306,
'user': 'root',
'password': 'Aa12j3kljdskj=',
'db': 'doctor',
'charset': 'utf8mb4',
'cursorclass': py... | [
"xihuanjianguo@gmail.com"
] | xihuanjianguo@gmail.com |
d4f8804f958e645f271a475c761830dd24d1f1ae | a3375aeabc2782d92dc2c3208e5badb00daa3703 | /BtsShell/dongle_lib/altair_control.py | 9b5c38cd038ed112bf342d2b2d000e45458f3d6f | [] | no_license | jufei/BtsShell | f256ff573cbbb7a834ae608eb991eb337503f159 | 75487a40ac2cc5f24f70d011ad6cd3924908f783 | refs/heads/master | 2021-01-10T09:25:02.656231 | 2016-03-29T05:42:04 | 2016-03-29T05:42:04 | 54,948,974 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 11,923 | py | import serial, re, os, time
from optparse import OptionParser
ALTAIR_LOG_DIR="C:\Documents and Settings\All Users\Application Data\Altair\ALT3100\logs"
IP_PATTERN = "([01]?\d\d?|2[0-4]\d|25[0-5])\.([01]?\d\d?|2[0-4]\d|25[0-5])\.([01]?\d\d?|2[0-4]\d|25[0-5])\.([01]?\d\d?|2[0-4]\d|25[0-5]).*"
class serial_relay():
... | [
"fei.ju@nsn.com"
] | fei.ju@nsn.com |
eeff489730647e3d2a0385f5477cac71e9f7f069 | 5486a1efdba020cafd20203dc487443c59f93556 | /Divide and Conquer/week2/binary_search.py | f9bda992343998b6f430dd7d8d49f2a9a3a80ec9 | [] | no_license | Sergei-Morozov/Stanford-Algorithms | a9a98230d2aa5fff779b1f2a407131cf3c11a630 | 308c1fa5b3d8239c46dfb38ec32dad5158b73898 | refs/heads/master | 2022-10-01T15:17:50.433860 | 2020-06-02T20:12:06 | 2020-06-02T20:12:06 | 68,811,319 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,011 | py | """
Binary search in sorted array
1. Split in 2 parts
2. Compare with middle point
3. Repeat
"""
def binary_search(x, input):
"""
Search for value in array using slice
"""
n = len(input)
if n == 0 :
return False
if n == 1 and input[0] != x:
return False
mid_point = input[... | [
"smarozau@bloomberg.net"
] | smarozau@bloomberg.net |
e2cdfa91be2e10c66390abb30710154df0025b3f | 5cc78e9f53924636cc36b4212d6f36163159b0f7 | /knock/knockpy/modules/virustotal_subdomains.py | b8101e18daa744e2b65820747db9d2f6eeb38884 | [] | no_license | No4l/MyTools | 952752d3fb6e168039c7734106c76da01c3b56c0 | 42da6904b550e19a36f3bf5a04dcbf07bd64b90a | refs/heads/master | 2022-12-13T03:21:36.511141 | 2022-01-10T09:28:53 | 2022-01-10T09:28:53 | 178,847,708 | 9 | 14 | null | 2022-11-11T14:24:31 | 2019-04-01T11:21:26 | Ruby | UTF-8 | Python | false | false | 361 | py | import json
import urllib
def get_subdomains(domain, apikey):
url = 'https://www.virustotal.com/vtapi/v2/domain/report'
parameters = {'domain': domain, 'apikey': apikey}
try:
response = urllib.urlopen('%s?%s' % (url, urllib.urlencode(parameters))).read()
response_dict = json.loads(response)
return response_di... | [
"yubanbanz@gmail.com"
] | yubanbanz@gmail.com |
909e0ec16868a17406a5e413e8b1cb88494eed87 | 1e2cc06371b17c501de0680d44a5051be605268b | /lab2/client.py | 4db9618105f33bb8578f472c0431fa33a620f8c1 | [] | no_license | MichaelQi11/CMPUT404 | 34fb6cb681d3e18437a816440be6dcda1faa6f7a | 7401249a831227e38a280d11e23548ecf1642a88 | refs/heads/master | 2023-03-06T05:45:13.514310 | 2021-02-23T01:29:56 | 2021-02-23T01:29:56 | 328,845,265 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,543 | py | import socket, sys
def create_tcp_socket():
print("Creaeting socket")
try:
s = socket.socket(socket.AF_INET, socket.SOCK_STREAM)
except (socket.error, msg):
print('Failed to create socket. Error code: {}'.format(str(msg[0])))
sys.exit()
print("Successfully created socket")
r... | [
"noreply@github.com"
] | MichaelQi11.noreply@github.com |
d5760a348c43a12b272767d6a7e91178beb9c9ac | d1313d684f4586959ec6f8f929bf4204e4b4fd02 | /dogcollector/main_app/migrations/0004_photo.py | e41a6ff3aa1d5b179fa15110bf16f1f19bb7519e | [] | no_license | rjohnson0707/dogcollector | 6ce5d345c79ddd3cf6d6739b79494f9a150421df | 91d810d93a60cd928e6c8cf72f5657bc4e5f51da | refs/heads/master | 2022-04-10T02:18:21.480209 | 2020-03-26T18:41:27 | 2020-03-26T18:41:27 | 250,273,908 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 654 | py | # Generated by Django 3.0.3 on 2020-03-19 19:20
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
dependencies = [
('main_app', '0003_auto_20200318_2241'),
]
operations = [
migrations.CreateModel(
name='Photo',
... | [
"rwilljohnson@icloud.com"
] | rwilljohnson@icloud.com |
c95ab42794aebe2fc7fa75e3ad167d823af2be60 | db3416443fec0b13d60d5be50e7ec8da19a04f88 | /src/lexer/token.py | 2b57a131f30cc9df27bd11f56b489c839673b4c5 | [] | no_license | jgroc-de/computorV1 | 3651c73399fb889bad107797783250ed6eda4d58 | a6602d9a58b9b454b114c908d53bec79a81deaad | refs/heads/master | 2021-07-10T00:20:28.920034 | 2021-07-02T08:46:48 | 2021-07-02T08:46:48 | 245,022,043 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 161 | py | class Token:
def __init__(self, lexeme: str, l_type: str, error: str):
self.lexeme = lexeme
self.l_type = l_type
self.error = error
| [
"jgroc-de@student.42.fr"
] | jgroc-de@student.42.fr |
ef8d8a974c26443461f2ad00e400c31222442c4d | 4d9f14ae3ccdaa4f8c8d04733e3920f25b935acd | /ftp_proxy/__init__.py | 5f718cf64ebcae245531af85ec37e6791f169cd8 | [
"Unlicense"
] | permissive | viniciussalmeida/ftp_proxy | 92274055c4508aae0cb0b6e3765cb3a2d0e5ba29 | 78f0c420b10777600652d65e8760558ae208031c | refs/heads/master | 2022-11-16T08:28:23.834606 | 2020-07-10T18:51:36 | 2020-07-10T18:51:36 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 81 | py | from .ftp_proxy import ftp_proxy
from .ftp_proxy_exceptions import ProxyException | [
"Robert.Wilcox@us.nationalgrid.com"
] | Robert.Wilcox@us.nationalgrid.com |
c5f111c67fc7798e0f65a57749a0a1c501f1932b | 89811d86e46a3becaecfd14bf8ee087342a40804 | /set1/6/single_key_xor.py | 29099dfc301e49b0870ef5e4ba932fa660edbb7e | [
"MIT"
] | permissive | jaybosamiya/cryptopals-solutions | c2913442159450b6546562466bb46407d4d7040e | e85cfb6db3b8bc49bb24e383b1e2a405850cd3b4 | refs/heads/master | 2016-09-05T17:30:50.378723 | 2015-08-02T11:00:18 | 2015-08-02T11:00:18 | 40,076,797 | 17 | 9 | null | null | null | null | UTF-8 | Python | false | false | 1,113 | py | #! /usr/bin/env python
from curses.ascii import isprint
from binascii import a2b_hex, b2a_hex
def score(string):
freq = dict()
freq['a']=834
freq['b']=154
freq['c']=273
freq['d']=414
freq['e']=1260
freq['f']=203
freq['g']=192
freq['h']=611
freq['i']=671
freq['j']=23
freq['k']=87
freq['l']=42... | [
"jaybosamiya@gmail.com"
] | jaybosamiya@gmail.com |
b13b1ff07cfceae43698acd9bd0ee86f222d7767 | 27aee91c381ed08e7fe08d407c523665a68bf927 | /ofagent/loxi/of14/table_mod_prop.py | eee9b2ebc8f33125d0aa43671b0ff0d6f656d7da | [
"Apache-2.0"
] | permissive | jonohart/voltha | f6561d55e6884cb3bc837657fe84039963ded305 | 87314cd53cb4c61e7e62b0ed3fc6da94603cc507 | refs/heads/master | 2021-01-24T16:19:05.018989 | 2018-02-13T01:15:35 | 2018-02-27T19:38:18 | 123,180,156 | 0 | 0 | Apache-2.0 | 2018-02-27T19:51:40 | 2018-02-27T19:51:40 | null | UTF-8 | Python | false | false | 1,720 | py | # Copyright (c) 2008 The Board of Trustees of The Leland Stanford Junior University
# Copyright (c) 2011, 2012 Open Networking Foundation
# Copyright (c) 2012, 2013 Big Switch Networks, Inc.
# See the file LICENSE.pyloxi which should have been included in the source distribution
# Automatically generated by LOXI from ... | [
"nathan.knuth@tibitcommunications.com"
] | nathan.knuth@tibitcommunications.com |
4ca05416e1e374be67522ed44acd2661d4c46680 | a5841ce4fec72bcb7bf37e0f1849cdd08699b609 | /forms.py | 669ee3267ed7002a6ff62959ec204478fcc1ac58 | [] | no_license | mge19/database-systems | 423da19915fc5a1950a085a035fcbd248480e316 | c4170ec6f66448f64e35313153d30d023cbb0773 | refs/heads/master | 2021-01-04T10:37:31.457910 | 2020-09-13T16:18:11 | 2020-09-13T16:18:11 | 240,509,029 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,049 | py | from flask_wtf import FlaskForm
from wtforms import StringField, PasswordField, BooleanField, SubmitField
from wtforms.validators import DataRequired
from wtforms import validators, Form
class LoginForm(FlaskForm):
username = StringField('Username', validators=[DataRequired()])
password = PasswordField('Passwo... | [
"noreply@github.com"
] | mge19.noreply@github.com |
3f5afdfe7cce381b91c73683aea25c0487b652de | 1aa53d09d8e4559d6111f6471bd5a8b24ac4bb99 | /ion/services/sa/observatory/mockutil.py | ff5049c906d2f0e2caec24729d66e3fae224282a | [] | no_license | blazetopher/coi-services | 8b2f2bfb90534db752761d70cd1e5603665a0184 | af5ff7c9bdf94ee2cc0c2da3b5f7d59248af0bad | refs/heads/master | 2021-01-16T22:38:30.525100 | 2013-03-04T15:41:37 | 2013-03-04T15:41:37 | 2,883,532 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 3,929 | py | #!/usr/bin/env python
__author__ = 'Michael Meisinger'
from mock import Mock, patch
from nose.plugins.attrib import attr
from pyon.ion.identifier import create_unique_resource_id, create_unique_association_id, create_unique_event_id
from pyon.public import IonObject
from pyon.util.containers import get_ion_ts
class... | [
"mmeisinger@ucsd.edu"
] | mmeisinger@ucsd.edu |
5cadf02e30e09f5e45d971443b60f40fc67b60c7 | ff05b85beac58f1de6bd656e76d39b26bfb817d9 | /OldScripts/radParallel.py | f4d08e2931eb97c2bd2ee384f1649e1e6c9260a5 | [] | no_license | 1013mbar/InternalMigModels | 7dd1129afabce78483380f57cdfceb30dee6d6d9 | 18d3f0ceee4c7c7a9deb1f116bcd266422d402b3 | refs/heads/master | 2020-12-28T17:18:51.899990 | 2020-02-06T08:54:32 | 2020-02-06T08:54:32 | 238,420,052 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,227 | py | import numpy as np
import matplotlib.pyplot as plt
from scipy.spatial import distance
import random
import collections
import operator
import time
import multiprocessing as mp
def avgMove(pop1,pop1Climate,pop2Climate,movingRatio,OppClimate,dist):
if((pop1Climate+OppClimate)*(pop1Climate+pop2Climate+OppClimate) != ... | [
"lucas.kluge@web.de"
] | lucas.kluge@web.de |
b3c6d1274b77e22e9e0e5665ec9509b7c14f797a | 146c83424e199e1bdf9d23824c78998c457472d0 | /Swiggyproject/Swiggyproject/urls.py | a4798d4405a924b61e27ade8423f012d552dc748 | [] | no_license | Narayanaraodumpala/NFCfoodproject | 328515fd2a95a6282c80ec65722b826ed731a0a2 | ef8bb64324af47a8d78e075ec28bcb3a7646b374 | refs/heads/master | 2022-12-07T13:58:38.483717 | 2020-08-23T05:43:18 | 2020-08-23T05:43:18 | 289,623,855 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 784 | py | """Swiggyproject URL Configuration
The `urlpatterns` list routes URLs to views. For more information please see:
https://docs.djangoproject.com/en/3.0/topics/http/urls/
Examples:
Function views
1. Add an import: from my_app import views
2. Add a URL to urlpatterns: path('', views.home, name='home')
Class... | [
"63154449+Narayanaraodumpala@users.noreply.github.com"
] | 63154449+Narayanaraodumpala@users.noreply.github.com |
37fde7fc6869ae1c0efa38387acb8143a1a17e66 | 0cf0ed3da6f821f8161c0aa5d9753605b0b145ab | /segmentron/models/pspnet.py | bd7a6b90bc744b5c68eb19fbca41648c5351cd3d | [
"Apache-2.0"
] | permissive | liyongsheng-tech/SegmenTron | 63844a7711eff00793103a56796245aabe192509 | 4deac8b4c22d1a4db56e8e1341c8281b9341194c | refs/heads/master | 2021-01-02T03:29:54.233596 | 2020-01-18T07:05:49 | 2020-01-18T07:05:49 | 239,470,984 | 1 | 1 | Apache-2.0 | 2020-02-10T09:16:15 | 2020-02-10T09:16:14 | null | UTF-8 | Python | false | false | 1,822 | py | """Pyramid Scene Parsing Network"""
import torch
import torch.nn as nn
import torch.nn.functional as F
from .segbase import SegBaseModel
from .model_zoo import MODEL_REGISTRY
from ..modules import _FCNHead, PyramidPooling
__all__ = ['PSPNet']
@MODEL_REGISTRY.register()
class PSPNet(SegBaseModel):
r"""Pyramid Sc... | [
"llj112868@163.com"
] | llj112868@163.com |
5a764b9d1f83295b53c138b54564aa7b5d56446d | a74af4b480bf2962dc8ec6e4bca793fed7c7a2ab | /multilang_system-master/Client/root/uipetsystem.py | 07ad8f6ace4bc69fa397ef1b967da148dd17be95 | [] | no_license | Bobo199/Metin2 | 50c372d0f99fe37741e1c8826342898451f10ae7 | 43e90898df54ad201011b3bd8a6fec63cdb6a842 | refs/heads/master | 2022-11-14T21:20:04.196159 | 2020-06-28T15:39:14 | 2020-06-28T15:39:14 | 275,601,572 | 2 | 0 | null | 2020-06-28T15:34:35 | 2020-06-28T14:27:03 | C++ | UTF-8 | Python | false | false | 304 | py | # Search
PET_FILE_NAME = "%s/pet_skill.txt" % rgcapplic.GetLocalePath()
PET_FILE_SKILL = "%s/pet_skill_bonus.txt" % rgcapplic.GetLocalePath()
# Replace for:
PET_FILE_NAME = "%s/pet_skill.txt" % app.GetMyLang()
PET_FILE_SKILL = "%s/pet_skill_bonus.txt" % app.GetMyLang()
| [
"noreply@github.com"
] | Bobo199.noreply@github.com |
14f8614979109bee2310aadc226f7618085647fe | a9e81c87022fdde86d47a4ec1e74791da8aa0e30 | /opencv-learning/python/edge-contours/01-skimage-find-contours.py | b5a91580babf45677516275a9c3d97ff92b61bb1 | [
"Apache-2.0"
] | permissive | ymli1997/deeplearning-notes | c5c6926431b7efc1c6823d85e3eb470f3c986494 | f2317d80cd998305814f988e5000241797205b63 | refs/heads/master | 2020-07-29T11:15:43.689307 | 2018-05-05T10:58:18 | 2018-05-05T10:58:18 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 815 | py | # -*- coding: utf-8 -*-
'''
使用skimage 查找轮廓
'''
import numpy as np
import matplotlib.pyplot as plt
from skimage import measure,draw
import cv2
#生成二值测试图像
img=np.zeros([100,100])
img[20:40,60:80]=1 #矩形
rr,cc=draw.circle(60,60,10) #小圆
rr1,cc1=draw.circle(20,30,15) #大圆
img[rr,cc]=1
img[rr1,cc1]=1
src = cv2.imread('../d... | [
"kkoolerter@live.cn"
] | kkoolerter@live.cn |
8e938aec1e78670edb550d87b2726fd38eb3ecac | c4461add183a85fff6de67a133b18f6453c8d8de | /LSTM/model.py | 47ed26e8a658d5d36d88b50effc76a206fcb49fd | [] | no_license | N1700576J/Voice-Conversion | 5aafba0562eb2df0a046139d85e9eefb702c31bd | ec746bdf329c6377429e2887609cfd7e09fb60a8 | refs/heads/master | 2020-03-22T14:36:09.653757 | 2018-08-01T10:29:39 | 2018-08-01T10:29:39 | 140,191,623 | 4 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,918 | py | import torch
import torch.nn as nn
from torch.autograd import Variable
class McepNet(nn.Module):
def __init__(self, in_dim, out_dim, hidden_dim, num_layers, bidirectional):
super(McepNet, self).__init__()
self.num_layers = num_layers
self.num_direction = 2 if bidirectional else 1
... | [
"N1700576J@e.ntu.edu.sg"
] | N1700576J@e.ntu.edu.sg |
585652b3bb0542d4e7e8680bdd6198b96f3d6506 | 35877a199dd9d2cdbb0ef395f4fae16a2a0345d7 | /apps/user/urls.py | c6454ed78c36185f48466a647b4d2b428d95823c | [] | no_license | anmutu/szumooc190528 | f86989458a5bf1dc65830b160b09cda608609f32 | 2c9f5ecbc2695be2cae1f9bc710c22f755c7c3e7 | refs/heads/master | 2022-12-22T23:36:03.921140 | 2019-12-05T10:38:34 | 2019-12-05T10:38:34 | 189,022,652 | 11 | 1 | null | 2022-12-08T05:19:24 | 2019-05-28T12:19:35 | JavaScript | UTF-8 | Python | false | false | 412 | py | # _*_ coding :utf-8 _*_
__author__ = 'du'
__bolg__ = 'www.cnblogs.com/anmutu;www.zmfei4.com;'
__date__ = '2019/5/31 8:11'
from django.conf.urls import url
from user.views import UserinfoView, UploadImageView
urlpatterns = [
# 用户信息
url(r'^info/$', UserinfoView.as_view(), name="user_info"),
# 用户头像上传
ur... | [
"anmutu@hotmail.com"
] | anmutu@hotmail.com |
940461a00d7c2aadf22e0a960479714a1c3d2055 | 225198561b0902fd267f3af95be50b0c8fbe4ca0 | /python/fpga_sdrlib/fft/qa_fft.py | bdc1d23d7e69614f34760e7aff02e545ae83cf56 | [
"MIT"
] | permissive | benreynwar/fpga-sdrlib | 84c2a3989e8264ea5300517dde424f6d62c68bc0 | 8f31883a11f04f10ff065baedfc8e4cc913aef99 | refs/heads/master | 2021-01-18T17:17:52.926427 | 2012-12-31T03:33:53 | 2012-12-31T03:33:53 | 5,812,896 | 11 | 6 | null | null | null | null | UTF-8 | Python | false | false | 11,949 | py | # Copyright (c) 2012 Ben Reynwar
# Released under MIT License (see LICENSE.txt)
import os
import random
import unittest
import logging
import shutil
from numpy import fft
from fpga_sdrlib.message import msg_utils
from fpga_sdrlib.conversions import int_to_c
from fpga_sdrlib.generate import logceil
from fpga_sdrlib im... | [
"ben@reynwar.net"
] | ben@reynwar.net |
8064f3a897deee33d76a87bb9cb9f93decec4b04 | e0dae451c6bc4a1c75eb22c5fd8d3d018d626ea4 | /setup.py | dcf6f95abde8f104393e43c83a71f66b62f2eae2 | [] | no_license | Martronic-SA/Solgema.EnvironmentViewlets | 090263bbb2da0b3ddcf934cb16a30e3a1997cfac | 1b0068a43883e82b57534d2473c657e761199c7f | refs/heads/master | 2020-12-04T09:29:24.648459 | 2016-10-03T09:08:37 | 2016-10-03T09:08:37 | 67,020,745 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,275 | py | from setuptools import setup, find_packages
import os
version = '0.7'
long_description = '\n\n'.join([
open('README.rst').read(),
open('CHANGES.rst').read(),
])
setup(name='Solgema.EnvironmentViewlets',
version=version,
description="Solgema EnvironmentViewlets",
long_description=long_descri... | [
"martronic@martronic.ch"
] | martronic@martronic.ch |
671ba426cee594d296eb067b290e0aa54e3cb424 | 51bd144b71a7c6c80d7713f29e16ec7c2c6b5d83 | /location.py | 14892b8884d2a454f9a5c8770e05109906b85cda | [] | no_license | po1yak/coursera_python | 151624632dc29d4fc51e8521d1fc703c3ed4c210 | ddc11125d07e973b3fe35f30e7f1ecaded9ec45b | refs/heads/master | 2020-03-09T17:05:28.620147 | 2018-04-13T08:19:28 | 2018-04-13T08:19:28 | 128,901,437 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 188 | py | import requests
import pprint
def get_location_info():
return requests.get("http://www.freegeoip.net/json/").json()
if __name__ == "__main__":
pprint.pprint(get_location_info())
| [
"s.v.polyakov@gmail.com"
] | s.v.polyakov@gmail.com |
45997b82d56895703ff4a3a134de0adc9dd4a8a1 | 7437ad1203ff272a482e4a7c7266afdbc7a0e619 | /lra/models/gpu_16g/linear_transformer_exp/listops/r1/config.py | e995e9eec539a6581e7a43ebafb563a58630585f | [] | no_license | maximzubkov/spe | 4ccc59d538a2cb4e5f9b0118ef79933eed0b8d95 | d877feb0f6b935152e5431ce374606ba72c08d65 | refs/heads/main | 2023-08-23T02:08:14.253693 | 2021-10-05T17:25:36 | 2021-10-05T17:25:36 | 385,636,912 | 0 | 0 | null | 2021-10-05T17:25:37 | 2021-07-13T14:42:19 | Jupyter Notebook | UTF-8 | Python | false | false | 1,311 | py | # Copyright 2020 Google LLC
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
# https://www.apache.org/licenses/LICENSE-2.0
# Unless required by applicable law or agreed to in writing, sof... | [
"zubkov.md@phystech.edu"
] | zubkov.md@phystech.edu |
41d8cdb6e44e79768180bf8dbcfb02505cbad4d5 | f7b67bbbc4b6db3ffde1b7b32c264348cd845907 | /polarity.py | f53f2c635e4c2587214e98489369afadd6de980b | [] | no_license | dray19/Yelp_App | 7ecba8f8b499c82571db270c0f5d9cda63b9785b | a30fabcb602242d899d85c27ad957245aec3a77a | refs/heads/master | 2021-01-09T09:53:01.351685 | 2020-02-22T01:15:03 | 2020-02-22T01:15:03 | 242,257,343 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,226 | py | import pandas as pd
import numpy as np
def ngrams(input, n):
input = input.split(' ')
output = []
for i in range(len(input)-n+1):
output.append(input[i:i+n])
return output
class zack_pol:
def __init__(self,text, lex2):
self.text = text
self.lex2 = lex2
def score(self... | [
"noreply@github.com"
] | dray19.noreply@github.com |
6c602b72c293927fb1d528411a5844309da2a86d | 89dedd7f3c7acc81d12e2bcb2e716f9af9e5fa04 | /base/third_party/libevent/libevent_nacl_nonsfi.gyp | 91e2557b765dae92c5247763243dd8bc9e04f7ce | [
"BSD-3-Clause"
] | permissive | bino7/chromium | 8d26f84a1b6e38a73d1b97fea6057c634eff68cb | 4666a6bb6fdcb1114afecf77bdaa239d9787b752 | refs/heads/master | 2022-12-22T14:31:53.913081 | 2016-09-06T10:05:11 | 2016-09-06T10:05:11 | 67,410,510 | 1 | 3 | BSD-3-Clause | 2022-12-17T03:08:52 | 2016-09-05T10:11:59 | null | UTF-8 | Python | false | false | 1,223 | gyp | # Copyright 2014 The Chromium Authors. All rights reserved.
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
{
'includes': [
'../../../build/common_untrusted.gypi',
],
'conditions': [
['disable_nacl==0 and disable_nacl_untrusted==0', {
'targets':... | [
"bino.zh@gmail.com"
] | bino.zh@gmail.com |
236fdf54b2d3fcd15b507207ae5de9803aa91ee5 | 4d7753c99dbd5fde9b18787c961186db2cfc8396 | /Indeed/indeed.py | d06ae3e20fa5032db78c154d27567706a6929b60 | [] | no_license | jhansikunam/Web-Analytics | 745538342a307dfbcc09638591342b4203c24eff | 3087e8ce849eb6a7533137073f093b99e1244ddc | refs/heads/master | 2021-01-12T10:45:41.989592 | 2017-01-09T19:16:40 | 2017-01-09T19:16:40 | 72,681,221 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 1,679 | py | from bs4 import BeautifulSoup
import requests
import time
import re
import urllib2
import wget
import os
def getPage(url):
html = None
for i in range(5):
try:
response = requests.get(url, headers={
'User-Agent': 'Mozilla/5.0 (Windows NT 6.1) AppleWebKit/537.36 (KHTML, like ... | [
"jalla@stevens.edu"
] | jalla@stevens.edu |
2d297b6201f59e67d8543a6fc8dcc4d29204b0d0 | 3107b28d397f62fe913996fa50f099dc38fda20e | /qcfractal/services/gridoptimization_service.py | 4234942c56c4e89fa84931630e001f15de75b3ca | [
"BSD-3-Clause",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | yudongqiu/QCFractal | 71ccfcdd194cdf3c6b807d4317d2439aa8b37394 | 43b5b4807dfe19f78177288f204aab1066de2dea | refs/heads/master | 2020-04-27T09:53:56.291827 | 2019-07-29T19:46:39 | 2019-07-29T19:46:39 | 174,233,001 | 0 | 0 | BSD-3-Clause | 2019-03-06T22:49:09 | 2019-03-06T22:49:09 | null | UTF-8 | Python | false | false | 7,849 | py | """
Wraps geometric procedures
"""
import json
from typing import Dict, Set
import numpy as np
from .service_util import BaseService, expand_ndimensional_grid
from ..extras import get_information
from ..interface.models import GridOptimizationRecord, Molecule, json_encoders
__all__ = ["GridOptimizationService"]
c... | [
"malorian@me.com"
] | malorian@me.com |
c8da8972f4342db1c68d17d34b53f79e2024fc47 | 09d0f27f6d021b74bc4e57c83f7f72cf6f91f10e | /bb.py | 137a839c15980fc0e977494eafcc2c1cd476441c | [] | no_license | adithak/avu | 96b7074a8d47944fe45f7d1c5e4de3571b8b7044 | 56381ef4587dbc885a977044f4edafea296c4ba1 | refs/heads/master | 2020-03-30T06:18:36.514453 | 2019-01-18T08:28:16 | 2019-01-18T08:28:16 | 150,851,406 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 131 | py | try:
n=int(input())
m=int(input())
s=n-m
if s%2==0:
print('even')
else :
print('odd')
except:
print('invalid')
| [
"noreply@github.com"
] | adithak.noreply@github.com |
e0034c5c9e11128257ce679a578aa5b90325d974 | 918bde048e2656db417a82fd5c9854cc124cdc70 | /src/retina_detection/model/fpn.py | 38cd110d562ecb2f4ea54175117d5d445d353e78 | [] | no_license | alexwitt23/retinanet_ros | 515dc4ae00c196a7c7ed3ab5cb003d2d0b230aa2 | bc2534bc29fc8a24bfe42856eef5811f8f77da0e | refs/heads/main | 2023-04-21T04:12:40.378539 | 2021-05-19T20:11:04 | 2021-05-19T20:11:04 | 368,989,073 | 0 | 0 | null | 2021-05-19T20:07:52 | 2021-05-19T20:07:52 | null | UTF-8 | Python | false | false | 3,891 | py | """ A FPN similar to the one defined in Dectectron2:
https://github.com/facebookresearch/detectron2/blob/master/detectron2/modeling/backbone/fpn.py
"""
from typing import List
import collections
import torch
def depthwise(in_channels: int, out_channels: int):
""" A depthwise separable linear layer. """
retu... | [
"steveminq@gmail.com"
] | steveminq@gmail.com |
3badc63b7edb724c24a973296619a89fb638a68a | baa87444dcb36c16b5beff5ed85c822a7a87235d | /xiyue/settings.py | 99db29cf4f551b55b4bcf5d1c46816b1c4a4dcc4 | [] | no_license | zbzzbd/xiyue | 889888ed19f7f312c40310cddfb57107969f5d7a | 23d9c6af4048c5f4b002cffec35fc57c1769cbff | refs/heads/master | 2020-07-05T13:40:47.608800 | 2016-11-18T09:54:04 | 2016-11-18T09:54:04 | 74,117,178 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,104 | py | """
Django settings for xiyue project.
Generated by 'django-admin startproject' using Django 1.11.
For more information on this file, see
https://docs.djangoproject.com/en/dev/topics/settings/
For the full list of settings and their values, see
https://docs.djangoproject.com/en/dev/ref/settings/
"""
import os
# Bu... | [
"zhangbingzhen@chinarun.com"
] | zhangbingzhen@chinarun.com |
60394a050be5f016947beab3962ae6f1d75c5afb | bc00fec86a52df7a0c62e56732a745516512d14b | /frontend.spec | 66f831ab0e658a905c3a505c91dcef1dc4d74c6c | [] | no_license | rishivyas1969/BookStore | 83e58e84d7b5594a2fb5434910668711aec34234 | 13ca9df4f04d64e405fc466e8812ba1283bd1d42 | refs/heads/main | 2023-08-15T14:08:53.542872 | 2021-09-10T21:27:08 | 2021-09-10T21:27:08 | 404,896,428 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,033 | spec | # -*- mode: python ; coding: utf-8 -*-
block_cipher = None
a = Analysis(['frontend.py'],
pathex=['P:\\Python\\VSCode\\BookShop'],
binaries=[],
datas=[],
hiddenimports=[],
hookspath=[],
hooksconfig={},
runtime_hooks=[],
... | [
"rishivyas2424@gmail.com"
] | rishivyas2424@gmail.com |
5002218b34ce893201d9e6252947b323554ba638 | 34e53150928e94855ee587c0ddd927a3c893d511 | /docs/conf.py | 6642590b7ad60b5cfc3294480323cd1d58650405 | [
"MIT"
] | permissive | uw-pycert-course-01/circle-class | 2b0c15317f653b397a0ed33cd80d10e6a68dc3fd | df5a7468e36a894fa8785dc6c5ea112f5c6db81d | refs/heads/master | 2023-09-05T03:32:37.591657 | 2021-11-23T14:54:50 | 2021-11-23T14:54:50 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 9,481 | py | # This file is execfile()d with the current directory set to its containing dir.
#
# This file only contains a selection of the most common options. For a full
# list see the documentation:
# https://www.sphinx-doc.org/en/master/usage/configuration.html
#
# All configuration values have a default; values that are comme... | [
"akmiles@icloud.com"
] | akmiles@icloud.com |
af28018bef7fa182155af4c1a13cb70634a519b2 | 37c08c059c86a826cdae31c40152ec1bdad3b909 | /lambdaFunc/verification1.py | da2b6c4337b51bd7cdd51e9b1e77833a19880652 | [] | no_license | lulukoukou/EE-596B-Conversational-AI | e8d2afb9c4607b9783c1c181f909a514f2667fff | 6bb018a627093837a4c1ebe78e797bc6ab029592 | refs/heads/master | 2021-07-07T10:42:31.433950 | 2019-01-21T22:33:01 | 2019-01-21T22:33:01 | 143,390,479 | 0 | 1 | null | 2020-07-25T23:57:22 | 2018-08-03T07:00:02 | Python | UTF-8 | Python | false | false | 8,690 | py | """This contains verification functions.
"""
import sys
sys.path.append("verification/verification1/")
from gensim.models import KeyedVectors
import urllib
import urllib2
import json
from contextlib import closing
class Verification(object):
def __init__ (self, word, input_syn, input1, input2, inputs=None):... | [
"qzhao17@uw.edu"
] | qzhao17@uw.edu |
3fa8ad9bf8dcf4c2234c5ec866fe49c9c873c6f7 | 89d163ca458f48249969539bacba605772d2b4d6 | /packet_sniffer.py | 1d3478289d97eb0a5347e4c139b9567dc4494343 | [] | no_license | alhaponyfaraj/python_network_automation | d9d8e3685a3ccac2a2a9dc0c3b64b15f35c85173 | 228b3933eef8d481d14ad9ccff7fd048fdadf0fa | refs/heads/master | 2023-02-19T16:00:20.358993 | 2021-01-09T20:29:42 | 2021-01-09T20:29:42 | 327,952,199 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 334 | py | #! /usr/bin/env python3
import netifaces
from scapy.all import ARP, sniff
def arp_display(pkt):
if pkt[ARP].op == 1: #who-has (request)
return f"Request: {pkt[ARP].psrc} is asking about {pkt[ARP].pdst}"
if pkt[ARP].op == 2: #is-at (response)
return f"*Response: {pkt[ARP].hwsrc} has address {pk... | [
"alhaponyfarag@gmail.com"
] | alhaponyfarag@gmail.com |
a1841ade04b9e0fa53a922e23e43bb64bff106c8 | 512bbf611ee5a4007ad68e676d312283cc7ade6e | /Exercise21/ex21_drills.py | ecbf84f28befb4fbebc7b923109ebf35ba55677b | [] | no_license | cdesisto/lpthw | cdbf10e8584868a6b993d4739d029c3817e7b724 | d220cfb74e11a67547bdc47202d3dd11c5416df3 | refs/heads/master | 2021-05-14T14:54:47.422544 | 2019-02-25T05:12:03 | 2019-02-25T05:12:03 | 115,979,258 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,854 | py | # add a bunch of functions to simulate arithmetic
def add(a, b):
# this print is basically a debug to show you what values are having arithmetic done.
print(f"ADDING {a} + {b}")
# puts the value of a + b into the function output so it can be stored
return a + b
def subtract(a, b):
# this print is basically a d... | [
"chris.desisto@socrata.com"
] | chris.desisto@socrata.com |
3cd41709b1409e8e8c53ca77f1b68be35db2c15f | 9e7483cca39a82bcc219a51e9ccfeadeb026bff3 | /4_Flask_MySQL/6_users/server.py | 6cfc5605456d5ca529de90fb8c461ed66f74bd8b | [] | no_license | nramiscal/PYTHON | 2489cbfbe8d22fb6a96b5d2beab0218d0be30fe9 | 75bd1ef9e22abb7d17b6c92196f62cfbbd749199 | refs/heads/master | 2021-04-29T16:53:55.591187 | 2018-02-15T17:17:56 | 2018-02-15T17:17:56 | 121,657,850 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,833 | py | from flask import Flask, request, redirect, render_template, session, flash
from mysqlconnection import MySQLConnector
app = Flask(__name__)
mysql = MySQLConnector(app,'users')
app.secret_key = 'ThisIsSecret'
@app.route('/')
def home():
return redirect('/users')
@app.route('/users')
def index():
users = mysql... | [
"nramiscal@gmail.com"
] | nramiscal@gmail.com |
c6f685126f8d2a78c45501f0fa494435e9279d37 | 073771f3a9c4b487c80e82611336c4457f3e39bb | /analysis/code.py | fa79b8eefe42b9776f730b4889827dc4467815d6 | [] | no_license | wenbochang/Hearthstone | b4cb91f23ce09ca82ede86ab3b8f84981c4c7c92 | 486ef02dbf455854b3e5b5864cd3c7b31ba720ff | refs/heads/master | 2020-04-15T19:06:11.075855 | 2015-08-19T15:50:46 | 2015-08-19T15:50:46 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,772 | py | # find out if class is druid
# find out what turn ramp is played
# find out win/loss
import collections
import re
import pprint
logfile = 'output_log.txt'
players = collections.defaultdict(dict)
def set_key_value_by_player_name(match, key):
"""
Takes a 'key' string and sets value in players di... | [
"enquea@gmail.com"
] | enquea@gmail.com |
feb797b7cd2da7774b7b4ba9ce4cedc3e41433ed | 4728aab32498ca5cd06f7be2c9e56f2bfcaf4858 | /test_config.py | 828b63e042f96d70cfe3010d9b1d141b307684b0 | [] | no_license | Daniega/SCE-Tirgul-2 | f741724de6cfffdbf510ca5fe4855117699611ca | 3b69674cbd18b59a4837287bb2bab4893d4842b5 | refs/heads/master | 2020-12-31T07:32:28.153992 | 2017-06-21T09:24:07 | 2017-06-21T09:24:07 | 86,561,386 | 0 | 0 | null | 2017-03-29T09:09:11 | 2017-03-29T09:09:11 | null | UTF-8 | Python | false | false | 298 | py | import os
basedir = os.path.abspath(os.path.dirname(__file__))
CSRF_ENABLED = True
SECRET_KEY = 'SCE'
TESTING = True
SQLALCHEMY_DATABASE_URI = 'sqlite:///' + os.path.join(basedir, 'test.db')
SQLALCHEMY_MIGRATE_REPO = os.path.join(basedir, 'db_repository')
SQLALCHEMY_TRACK_MODIFICATIONS = False
| [
"illyax@walla.com"
] | illyax@walla.com |
cfb1d1fad72c5c899ab7cf3e94f854cfd11ddc76 | d3efc82dfa61fb82e47c82d52c838b38b076084c | /Autocase_Result/FXJSMM/YW_FXJSMM_SZSJ_302.py | 68de52e02daf69b9998018265070985ae3fe4143 | [] | no_license | nantongzyg/xtp_test | 58ce9f328f62a3ea5904e6ed907a169ef2df9258 | ca9ab5cee03d7a2f457a95fb0f4762013caa5f9f | refs/heads/master | 2022-11-30T08:57:45.345460 | 2020-07-30T01:43:30 | 2020-07-30T01:43:30 | 280,388,441 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,023 | py | #!/usr/bin/python
# -*- encoding: utf-8 -*-
import sys
sys.path.append("/home/yhl2/workspace/xtp_test/xtp/api")
from xtp_test_case import *
sys.path.append("/home/yhl2/workspace/xtp_test/service")
from ServiceConfig import *
from mainService import *
from QueryStkPriceQty import *
from log import *
sys.path.append("/h... | [
"418033945@qq.com"
] | 418033945@qq.com |
72e320d98756c09ee6dd864fbba3dbf8e415eecb | a516e56eb63160bbe90c62ab7beeef07f5a55eab | /NLPWebPortal/form.py | 48b7714bce784eb57f67b37e64790887d7aa6a97 | [] | no_license | daylanvig/NLPWebPortal | 107572d9856f8e00949483210c5cd1846e821591 | 097626b5beffef53c81efefbee35e3fab83138be | refs/heads/master | 2020-04-05T02:17:35.304075 | 2018-12-25T01:30:58 | 2018-12-25T01:30:58 | 156,471,049 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,441 | py | from flask_wtf import FlaskForm
from wtforms import StringField, PasswordField, BooleanField, SubmitField, MultipleFileField
from wtforms.validators import InputRequired, Email, ValidationError, EqualTo
def valid_password(form, field):
"""
Validates password requirements
Custom validator for ensuring passwor... | [
"daylanvig@gmail.com"
] | daylanvig@gmail.com |
e1881ded3dce36b78149971eeb52f0be86908022 | b62599ac4093da825708638a4a25f252a83e9f37 | /object_detection/object_detection_rt.py | d2a4c5443ef1178afc36c91e7053405948f18f7b | [] | no_license | raspberry-pi-maker/NVIDIA-Jetson | 25ca2033d36aa8c6f837ed2a8c49281d646be29b | 30a5596aa0d9a6a960f2fef4d084eb42a94a2b66 | refs/heads/master | 2023-06-23T04:17:15.675476 | 2023-06-10T02:23:33 | 2023-06-10T02:23:33 | 211,216,972 | 40 | 30 | null | null | null | null | UTF-8 | Python | false | false | 4,250 | py | import argparse
import numpy as np
import os
import six.moves.urllib as urllib
import sys
import time
import tarfile
import tensorflow.contrib.tensorrt as trt
import tensorflow as tf
import zipfile
from distutils.version import StrictVersion
from collections import defaultdict
from io import StringIO
from matplotlib i... | [
"raspberry.pi.maker@gmail.com"
] | raspberry.pi.maker@gmail.com |
3be50e255a855d3522d0cc617961d87a689ad9a0 | c41cf32afc8405acaef7fc6051876972e14a7965 | /functional_annotation/pathway/top10_pathway.py | c0b74e45641a6df67f8f1a210ecebec68cea2f8b | [] | no_license | Arya-bioinformatics/ukb-comorbidity | b572bfb8eae72c9aa5125e3fc47c17b1758adfc9 | 370bacee55a557908581e0c8e739c1fe566b69a4 | refs/heads/master | 2023-02-16T13:05:01.201484 | 2021-01-16T13:08:43 | 2021-01-16T13:08:43 | 318,766,558 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,459 | py | import pandas as pd
from matplotlib import pyplot as plt
from collections import Counter
for flag in ['with', 'without']:
print('\n' + flag + '\n')
if flag == 'with':
path1 = '../overlap/comorbidity_pathway.txt'
path2 = 'a.pdf'
if flag == 'without':
path1 = '../overlap/comorbidity_... | [
"dongguiying2017@163.com"
] | dongguiying2017@163.com |
969ed99cd21afcd3da9a174370c33bc7f2bc6e6f | e3eb83ef03ed0cbc006e289633c3654de6647e4d | /main/models/company.py | c77f4210ba378209b9e93efa0594d30291c76dd4 | [
"MIT"
] | permissive | snowind/CoopApp | 5de1b3d8ab867856d9f132cdbce2a8610d0f212c | 0457a723b025d858cbad81de95e2403ce202b519 | refs/heads/master | 2023-05-03T21:43:17.569832 | 2021-03-03T09:20:27 | 2021-03-03T09:20:27 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 495 | py | from main import db
import uuid
class Company(db.Model):
uuid = db.Column(db.UUID(as_uuid=True), default=uuid.uuid4, primary_key=True)
company_name = db.Column(db.String(50))
address = db.Column(db.String(100))
phone = db.Column(db.String(50))
mobile = db.Column(db.String(50))
total_fund = db.C... | [
"romelfernando09@gmail.com"
] | romelfernando09@gmail.com |
2b231af252c437dab60465f3869bf5227a4f0127 | 5eb2eba8a2c6901f6ce686abf3309e44e3599270 | /securenode.py | 85f5827c6ad27dd451cdb221c4ed3927ac5e7f41 | [] | no_license | gpanneeru/p2p_phase2 | d9f479950d5bfbb861de86b39294e133f03bea9e | 7a4e281bf3f5e4a167161988897ec1046e35cc66 | refs/heads/master | 2022-07-29T02:11:51.266360 | 2020-05-23T05:07:49 | 2020-05-23T05:07:49 | 265,376,488 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 15,845 | py | import time
import json
import hashlib
from Crypto.PublicKey import RSA
from Crypto.Cipher import PKCS1_v1_5 as PKCS1_v1_5_Cipher
from Crypto.Signature import PKCS1_v1_5 as PKCS1_v1_5_Signature
from Crypto.Hash import SHA512
from base64 import b64decode, b64encode
from p2pnetwork.node import Node
class SecureNode (N... | [
"gp1521@nyu.edu"
] | gp1521@nyu.edu |
ea25ee56cca7013f02f14fc8415eeec027b1c508 | c40b8fa1d4ec02a515fb135c2b538a4e4f7af5ae | /nethackStartScummer.py | 96a790c8372660a9d1d2b439dd079eb6eff63527 | [] | no_license | blakeyjason/nethackStartScummer | d6cc6c15bbb92a58aeac916a162f12464986eb6a | 7b9b36053377af60d7d0eb321150a44a7b85f0f5 | refs/heads/master | 2020-12-29T22:44:14.565158 | 2020-02-07T14:26:40 | 2020-02-07T14:26:40 | 238,759,707 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,398 | py | import pexpect, sys, time
# This script can be used to repeatedly start and toss nethack games
# in order to get the character you want.
# by
# jblakey@gmail.com
############################# CONFIGURATION ################################
# Make sure these items are in the order that they normally appear
# in your in... | [
"jblakey@gmail.com"
] | jblakey@gmail.com |
2a90756b5c4afef97742e9404a1f5de3559ba515 | d322d43448413fd1362c27b2898495db92382b14 | /django/bitcoinalafuture/bitcoinalafuture/util.py | 423f740ad0af623e144a3d33dd9ed9db4654c706 | [] | no_license | iancoleman/bitcoinalafuture | 9531230be2b0c75be50bbc9237e112cb4033f3c2 | 84bbc3dac7f462936671114467f39122e34c3b58 | refs/heads/master | 2021-01-18T15:17:13.549614 | 2013-05-26T00:22:23 | 2013-05-26T00:22:23 | 10,291,599 | 1 | 3 | null | null | null | null | UTF-8 | Python | false | false | 2,594 | py | from django.utils.timezone import make_aware, utc, now
from django.conf import settings
from jsonrpc import ServiceProxy
import datetime
import decimal
import pickle
import time
import urllib
def price(price_val):
try:
#TODO prec != decimal places
decimal_places = 5
decimal.getcontext(... | [
"coleman.ian@gmail.com"
] | coleman.ian@gmail.com |
970482177f77ea6ef1b252cf104ab12ed8549ce8 | 6385bdeb17e608abd5259746bbcd4835aa85bbd6 | /day008/para.py | 23e281e383d74cba46e05447f8a9a5d4b84f9915 | [] | no_license | chenyidao110/python | e918637361c2316a4e4b0fc54f0335dc89e51f94 | 664d29b3fc02e26b523846562df0509e936b1868 | refs/heads/master | 2022-10-19T18:08:57.758336 | 2020-06-15T13:19:42 | 2020-06-15T13:19:42 | 260,908,509 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 193 | py | """
可变参数
"""
def add(*args):
total = 0
for val in args:
total += val
return total
print(add())
print(add(1))
print(add(1,2))
print(add(1,2,3))
print(add(1,3,5,7,9)) | [
"408624578@qq.com"
] | 408624578@qq.com |
f162c2cd3ad9eca80bb6651150a719e9bea936ba | 1cee813d7f4e6663905a87e2dd32b0ae15aed8fc | /Project 2/main.py | 15ac2067bf62ca3548cc31d3ffa5aa3d2d49dfda | [] | no_license | AnoopMasterCoder/python-course-docs | f569ea19287b73987d91be6895959376f9a3b58b | 1f8ba886dcf2599fd828ceb74b40e3a27339e6d1 | refs/heads/main | 2023-06-29T18:25:12.837913 | 2021-08-09T08:09:06 | 2021-08-09T08:09:06 | 394,204,424 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 460 | py | import random
number = random.randint(1, 100)
attempt = 1
guess = int(input("Guess the number: "))
while(True):
if(guess>number):
guess = int(input("Guess another number. This one is too big: "))
attempt += 1
elif(guess<number):
guess = int(input("Guess another number. This one is too... | [
"anoop.github@gmail.com"
] | anoop.github@gmail.com |
74e324df5b445c4beda1227b5b7b3c2e32be17c0 | aa339aeb2fc101ebe9d4450a4cd448ca9225cc8f | /circle.py | bc207a68f3d1a457226af6f9362a5018f124fd50 | [] | no_license | margaritamatulenkortu/Python-exapmles | 9d1dde95898e6b7e6bb5bf5223a8ae04255ab885 | af830832def8663d35ff4405f021ed1b0818d87f | refs/heads/master | 2022-10-28T08:50:20.221484 | 2020-06-15T20:32:32 | 2020-06-15T20:32:32 | 269,097,350 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 248 | py | from math import pi
import math
def circle(r):
return pi*(r**2)
#tests
radii = [2, 0, -3, 2 +5j, True, "rad"]
message = "Are of circules is r = {radius} is {area}"
for r in radii:
A = circle(r)
print(message.format(radius=r, area=A)) | [
"margarita.matulenko@gmail.com"
] | margarita.matulenko@gmail.com |
8aba275d2e7794c8b662d1833ce303e97804e256 | 3af419239014af416514a37135abf4599d346e45 | /app/migrations/versions/9f51416df6b9_.py | 4863364d2fdac1e112d71b97c2fe3c729e3c9f64 | [] | no_license | PrestonRoberts/mafia-1 | 9e9931e0b9e2f13b3630f2cdf13435ab0db6dc06 | c2f79eec9525d0f7d6a18e5a5c1b078f0421d519 | refs/heads/master | 2023-04-04T05:24:30.271715 | 2019-07-13T15:40:42 | 2019-07-13T15:40:42 | 196,737,929 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 668 | py | """empty message
Revision ID: 9f51416df6b9
Revises: e50b5600b80c
Create Date: 2019-03-10 00:00:30.179637
"""
from alembic import op
import sqlalchemy as sa
# revision identifiers, used by Alembic.
revision = '9f51416df6b9'
down_revision = 'e50b5600b80c'
branch_labels = None
depends_on = None
def upgrade():
# ... | [
"noreply@github.com"
] | PrestonRoberts.noreply@github.com |
459f2fe6f06ca5173f79af45535990821783558e | ecba5d80c4c88ef43d06d741db842c4f88d7e4c8 | /api/views.py | 537765008c7b2dd69d79d742694f1b7679e8aab0 | [] | no_license | rammsteinlifada/DjangoECommerceAPI | 5a610bebe44645c8fd4ce07ba1a004bab1e2508c | ec4c511185398bba0953787d51cc324625d833d6 | refs/heads/master | 2023-01-23T00:54:40.160649 | 2020-11-18T08:23:59 | 2020-11-18T08:23:59 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,384 | py | from django.http import HttpResponse
from rest_framework import viewsets, permissions, mixins, views
from rest_framework.authtoken.views import ObtainAuthToken
from rest_framework.parsers import FileUploadParser
from rest_framework.response import Response
from .serializers import OrderSerializer, ProductSerializer, Cu... | [
"zaysev100@gmail.com"
] | zaysev100@gmail.com |
990b09b2cd6a1d3d06e7780e0d81d8bdddb4ec54 | 3e65fff7ebb3418aa8a3141ba7ae6cb6115edf54 | /catalog/migrations/0002_auto_20180314_2321.py | ca7cb784a4dcc8aa888f2e55eafdb220dd7f0839 | [
"MIT"
] | permissive | pcsteppan/django_tiny_library | 805705247a31e2ac5f906bc521447670c97d7806 | a4084c01aa3bcb5a3215ce9e6d429cd54d52c64d | refs/heads/master | 2021-04-15T10:45:01.054096 | 2018-03-24T20:10:23 | 2018-03-24T20:10:23 | 126,556,066 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 842 | py | # Generated by Django 2.0.3 on 2018-03-15 04:21
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
dependencies = [
('catalog', '0001_initial'),
]
operations = [
migrations.CreateModel(
name='Language',
... | [
"patrick.steppan@gmail.com"
] | patrick.steppan@gmail.com |
cd4eddc74f7ae072466c80af346588f872e0e288 | e05620d9f7d27cce822d5d7defac553813d29aa0 | /setup.py | e31dce67683468e97cd3c2858af7859a0893a133 | [] | no_license | gunnarnewell/Calculator | fa702afab48ebb81d2209b02d8f5687805ff15ae | ffdf7cc5a190a6ed064db4ea523be80b397dfaba | refs/heads/master | 2023-07-18T15:23:25.884330 | 2021-08-31T18:41:05 | 2021-08-31T18:41:05 | 401,778,736 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 340 | py | import sys
from cx_Freeze import setup, Executable
if sys.platform == "win32":
base = "Win32GUI"
options = {"include_files":["Icon.ico"]}
setup(
name = "Calculator",
version = "0.1",
description = "A calculator program",
options = {"build_exe": options},
executables = [Executable("main.py", base=base, ... | [
"gunnar.newell@treetop.com"
] | gunnar.newell@treetop.com |
0c3f52b0dcd6a2a978142a858d3fed4a8d00e023 | a0cde41c20d4ffdcc1ace0e217e3338f1cd93cde | /src/batchDefinition/slanTour/batchDefSTWeightedAVG.py | 2ec97b0b75915ffa295f2489348f02040b01fc35 | [] | no_license | sbalcar/HeterRecomPortfolio | ea15a3277774d1b37d69b527406e5a8558cc3cbf | a8714902a1f45b5e9bfe0f9af40cce87e36c7471 | refs/heads/master | 2022-05-30T00:59:36.693858 | 2022-04-09T16:12:34 | 2022-04-09T16:12:34 | 219,495,240 | 1 | 3 | null | 2021-01-17T12:44:59 | 2019-11-04T12:21:41 | Jupyter Notebook | UTF-8 | Python | false | false | 3,061 | py | #!/usr/bin/python3
import os
from typing import List
from typing import Dict #class
from pandas.core.frame import DataFrame #class
from portfolioDescription.portfolio1AggrDescription import Portfolio1AggrDescription #class
from evaluationTool.aEvalTool import AEvalTool #class
from evaluationTool.evalToolDHondt imp... | [
"bc.stepan.balcar@gmail.com"
] | bc.stepan.balcar@gmail.com |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.